liveBook · Manning

Collaborative filtering

As explained in AI-Powered Search

Collaborative recommendation predicts items or content a user may prefer from the behavior and preferences of similar users.

A shopper interested in fertilizer may also want soil or mulch. Collaborative filtering makes that recommendation from other shoppers’ interactions, not from product descriptions: people who interacted with fertilizer also clicked, added to cart, or purchased soil and mulch. It predicts a user’s preferences from patterns shared with other users. section 9.2.2 section 4.2.3

For a search application, this is personalized relevance rather than a popularity boost applied to everyone. Pure collaborative filtering needs item IDs and records of which users interacted with which items; it does not need item titles, text, or attributes. Recommendations can also be combined with keyword search to personalize results while retaining the user’s explicit query. section 9.2.2 section 9.1

A practical recommendation pipeline follows these steps:

  • Collect clicks, purchases, ratings, or other interactions, then map users to items. Use positive interaction strength to populate a user–item matrix. section 4.2.3
  • When interactions provide enough overlap, find users who interacted with the same item and recommend other items they interacted with. section 4.2.3
  • When the matrix is too sparse for direct lookup, use matrix factorization to learn latent user and item features from interaction patterns, then generate recommendations from those learned relationships. section 4.2.3 section 9.3
  • Log interactions with the recommendations and use them as signals when rebuilding the model. section 4.2.3

Few or no interactions create a cold-start problem. A hybrid recommender can use content-based matching as a baseline, letting collaborative signals have greater influence where they are plentiful. Personalization also needs restraint: preserve user privacy and avoid pushing results too far outside a user’s interests. section 9.2.3 section 9.6

How AI-Powered Search covers it

How deep it goes
Develops the workflow from interaction signals and user–item matrices through sparse-data factorization, latent features, and recommendation generation.
Examples
Illustrates overlapping behavior with fertilizer shoppers who also interact with soil or mulch, rather than an unrelated tool cluster.
What it assumes
Assumes access to item IDs and user-interaction signals, while introducing latent features as something learned from those signals.
What you can do after
Build it from scratch using user–item interaction signals to learn preferences and generate item recommendations.
How it connects
Connects collaborative filtering to personalized search, matrix factorization, content-based recommendation, and reflected-intelligence feedback loops.

Also explained in

Compare how 4 books explain collaborative filtering →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI-Powered Search. The section links point to the parts of the book it draws on.