What you will learn in AI Recommender Systems
Transformers, LLMs, agents, and RAG
Chapter by chapter
Chapter 1: Recommendations, recommender systems, and components
The introduction establishes why recommender systems matter in everyday online experiences and previews the chapter’s topics.
What you learn in chapter 1 →Chapter 2: Implementing a simple recommender model
The chapter introduces simple recommender models as reference points for later evaluation and explains why personalized predictions need a user or session context.
What you learn in chapter 2 →Chapter 3: Embedding-based recommender systems
Introduces embeddings as similarity representations for recommenders and contrasts behavioral, content-based, and LLM embedding sources.
What you learn in chapter 3 →Chapter 4: Evaluating what makes a good recommendation
The introduction explains why recommender evaluation must compare alternatives and help teams make product decisions.
What you learn in chapter 4 →Concepts explained in this book
- collaborative filteringA collaborative-filtering technique that recommends items using the preferences of users with similar interaction patterns.
- embeddingA learned vector representation generated by a large language model that encodes semantic, relational, and contextual information about text or entities.
- content-based recommenderContent-based filtering is a recommendation technique that uses item metadata or content features to recommend items similar to those relevant to a user.
- normalized discounted cumulative gainNDCG, or normalized discounted cumulative gain, measures ranked retrieval quality by rewarding relevant items more heavily when they appear near the top.
- qualityThe recommender-system stage that assigns predicted relevance or affinity scores to eligible candidate items.
- rerankingFinal result ordering is the stage of a recommendation pipeline that arranges selected candidates into the presented order.
- recommender systemA recommender system is a software system that selects and presents items or content to users based on data about items, users, behavior, or context.
- filteringA recommendation-stage technique that removes candidate items that should not be shown because they violate eligibility, quality, or other constraints.
- baselineA popularity baseline recommends items according to their overall popularity and serves as a reference for personalized methods.
- user-item interaction matrixA matrix whose rows represent users, columns represent items, and entries encode user-item interactions.
- item metadataItem metadata is structured descriptive information associated with an item, such as its attributes, category, text, sound, or images.
- information retrievalA candidate-generation technique that finds potentially relevant items or documents from a larger collection.
- behavioral dataData recording how users interact with items, including actions such as clicks, purchases, ratings, and skips.
- alternating least squaresAlternating least squares is a matrix-factorization algorithm that iteratively estimates latent factors for users and items by minimizing weighted reconstruction error.
- diversityDiversity measures the variety among items within a recommendation list, including differences in genres or other item characteristics.
- code coverageCoverage is a recommendation metric measuring the breadth of users, items, or catalog content that a recommender system serves.
- contextContext is an external circumstance such as companions, mood, time, or prior activity that influences the relevance of a recommendation.
- rank-aware metricA ranking metric evaluates recommendation quality while accounting for the positions of relevant items in an ordered list.
- mean reciprocal rankMean reciprocal rank is the average reciprocal of the position of the first relevant result across users or queries.
- matrix factorizationMatrix factorization is a technique that decomposes a user-item interaction matrix into lower-dimensional factor matrices representing users and items.
- item-item recommendationAn item-to-item recommendation is generated from relationships or similarity between items, often using the item currently being viewed.
- mean average precisionMean average precision is the mean across users or queries of average precision values computed at positions containing relevant items.
- continuous improvementA feedback loop is a cycle in which system outputs prompt user interactions that are logged and fed back to improve subsequent outputs.
- user-item recommendationA user-to-item recommendation selects items for a particular user based on information about that user.
- retrieval rankingThe process of ordering candidate items according to a relevance or preference score.
- cosine similarityCosine similarity is a measure of the angular similarity between two vectors, typically ranging from zero to one for nonnegative vectors.
- candidate sourcingA recommendation-stage technique that produces the set of items eligible for further processing.
- taste driftTaste drift is the gradual or sudden change in a user's preferences over time.
- recommendationA recommendation is a suggestion that a user consider or consume a particular item or piece of content.
- beyond-accuracy metricA beyond-accuracy metric evaluates recommendation qualities such as coverage, diversity, or serendipity that are not captured by relevance accuracy alone.
- sparse representationA sparse matrix is a matrix representation that stores only nonzero or nonempty entries rather than allocating storage for every cell.
- four-stage recommender systemA four-stage recommender system is an architecture that organizes recommendation processing into candidate retrieval, eligibility filtering, scoring, and final ordering stages.
- inner productA dot product is an operation that multiplies corresponding components of two vectors and sums the resulting products.
- vectorAn ordered collection of numerical components representing a point, direction, or quantity in a multidimensional space.
- item-based collaborative filteringA collaborative-filtering technique that recommends items based on similarities among items inferred from user interactions.
- popularityPopularity is a measure or signal indicating how broadly an item is favored, viewed, or selected across users.
- context-aware recommendationA recommendation approach that incorporates situational context, such as time, location, device, or activity, when generating, filtering, or ranking recommendations.
- implicit feedbackIndirect preference information inferred automatically from user behavior rather than explicitly supplied by the user.
- similarity metricSimilarity is a quantitative or qualitative measure of how alike two items, user histories, or related representations are according to selected features or behavior.
- recallRecall is the fraction of relevant items in a user's test set that appear among the top-k recommended items.
- offline evaluationOffline evaluation is the process of assessing a recommender system using historical interaction data rather than live user experiments.
- hybrid approachA recommendation technique that combines multiple recommendation approaches or signals to retrieve or rank items.
- hit rateHit rate is a binary metric equal to one when at least one relevant item appears among the top-k recommendations and zero otherwise.
- serendipitySerendipity measures the extent to which recommendations are both relevant and unexpectedly useful or novel to a user.
- popularity biasA recommendation bias in which popular items receive disproportionate exposure or recommendation frequency.
- average precisionAverage precision is the mean of precision values at the ranked positions where relevant items occur for one user or query.
- discount functionA discount function reduces the contribution of a relevance value according to an item's position in a ranked list.
- discounted cumulative gainDiscounted cumulative gain is a ranking metric that sums relevance gains after reducing the contribution of items appearing lower in the list.
- gainGain is a relevance value assigned to an item, often binary or graded, that contributes to a ranking-quality score.
- ideal discounted cumulative gainIdeal discounted cumulative gain is the maximum discounted cumulative gain obtainable when all relevant items occupy the best possible positions.
- reciprocal rankReciprocal rank is one divided by the position of the first relevant item in a ranked result list, or zero when no relevant item appears.
- candidate poolThe intermediate set of items retained as potential recommendations for subsequent ranking or scoring.
- evaluationEvaluation is the systematic assessment of a system or approach by comparing its decisions or outcomes against a reference, alternative, or objective.
- sentence-transformersSentence Transformers is a software library for computing semantically meaningful embeddings of sentences, texts, and other inputs with transformer models.
- onboardingAn onboarding flow is a sequence of initial interactions that gathers information from a new user and introduces the user to a platform or service.
- session-based recommendationA session-based recommendation selects items from the sequence of interactions occurring within a user's current session.
- stratified analysisStratified analysis evaluates results separately across predefined subgroups to reveal differences in performance between them.
- precisionPrecision is the proportion of returned items that are relevant to the retrieval or recommendation objective, optionally measured within a specified top-k list.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
