# Recommendation system

> A recommendation system is software that predicts which products, content or actions a particular user is most likely to want, based on their behaviour, the item's attributes and what similar users chose, and ranks options accordingly.

Also called: recommender system, recommendation engine, personalisation engine, product recommendations. Category: Data and retrieval. Source: https://aibuildindex.com/glossary/recommendation-system

## In the index

- Recommendation system: median $1,850, middle half $560 to $4,700, 67 priced briefs (https://aibuildindex.com/cost/recommendation-system)
- Recommendation system for e-commerce: median $1,700, middle half $500 to $4,700, 65 priced briefs (https://aibuildindex.com/cost/recommendation-system-for-ecommerce)

"Customers who bought this also bought", "Recommended for you" and "You might also like" are all recommendation systems. They decide which few items, out of many, to show a particular person. For shops, media services, learning platforms and marketplaces, a good recommender can raise basket size, engagement and retention; a poor one quietly shows the same bestsellers to everyone. Buyers commissioning one should know which kind they are asking for, because the approaches differ a lot in data needs and effort.

## How it works

There are three main families:

- **Content-based.** Recommend items similar to ones the user liked, using item attributes such as category, price, description or an [embedding](https://aibuildindex.com/glossary/embedding) of the text and images. This works from day one with no behaviour history.
- **Collaborative filtering.** Recommend what similar users chose, learned from patterns of views, purchases and ratings across all users. It finds non-obvious connections but needs a meaningful amount of interaction data.
- **Hybrid.** Combine both, often with business rules on top, such as excluding out-of-stock items or boosting margin.

Larger systems work in two stages: a fast step retrieves a few hundred candidates, then a ranking model orders them for the specific user and context. Language models are increasingly used to describe items, interpret search queries or explain why something is recommended, but the core is still [machine learning](https://aibuildindex.com/glossary/machine-learning) on behaviour data.

An example: a fashion shop starts with content-based "similar items" on product pages, then adds collaborative recommendations in email once it has enough purchase history.

## What it means for cost

Data is the deciding factor. A shop with a small catalogue and little traffic can get good results from simple rules and similarity, which is a modest build. Personalised recommendations for large catalogues need event tracking, a [data pipeline](https://aibuildindex.com/glossary/data-pipeline), model training and retraining, and serving fast enough to load on every page.

Measurement adds its own work: the only convincing proof that a recommender helps is an [A/B test](https://aibuildindex.com/glossary/ab-testing) against the current experience. Ask a builder what data they need, how much history is enough, how new items and new users are handled, and how they will measure lift. Live figures are on the [recommendation system cost page](https://aibuildindex.com/cost/recommendation-system).

## Common questions

### How much data does a recommendation system need?

Content-based recommendations need only good product or content data. Collaborative filtering needs enough interactions that patterns are meaningful, which a small shop may not have. Builders often start content-based and add behaviour-based models as data accumulates.

### What is the cold-start problem?

New users have no history and new items have no interactions, so collaborative methods have nothing to work with. Systems handle this by falling back on popularity, item attributes or questions asked at sign-up until enough behaviour is collected.

## Related terms

- [Machine learning](https://aibuildindex.com/glossary/machine-learning): Machine learning is a branch of AI in which software learns patterns from examples rather than following hand-written rules, then uses those patterns to make predictions or decisions about new data.
- [Embedding](https://aibuildindex.com/glossary/embedding): An embedding is a list of numbers that represents the meaning of a piece of text, an image or another item, so that items with similar meanings end up close together and can be compared, searched or grouped by software.
- [Predictive analytics](https://aibuildindex.com/glossary/predictive-analytics): Predictive analytics is the use of historical data and statistical or machine learning models to estimate the likelihood of future outcomes for individual cases, such as which customers will churn, which leads will convert or which invoices will be paid late.
- [A/B testing](https://aibuildindex.com/glossary/ab-testing): A/B testing is a method of comparing two versions of a system, such as two prompts, models or interfaces, by showing each to a different group of real users and measuring which performs better on a chosen outcome.
- [Personal data (PII)](https://aibuildindex.com/glossary/personal-data): Personal data is any information that relates to an identifiable living person, such as a name, email address, phone number, location or customer ID; in the US it is often called personally identifiable information, or PII, and its handling is governed by data protection law.
- [Data pipeline](https://aibuildindex.com/glossary/data-pipeline): A data pipeline is an automated series of steps that moves data from one or more sources to a destination, transforming, checking and enriching it along the way, on a schedule or as new data arrives.
