What is a recommendation system? Explained with a bookshop owner
A recommendation system learns from what people viewed, bought or liked, and suggests what each person is likely to want next. Think of a bookshop owner who knows your taste.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- AI
In one sentence: A recommendation system is software that studies what people have viewed, bought or liked, and uses that to suggest the next product, video or article each person is most likely to want.
The everyday picture
Think of a small bookshop where the owner knows your taste. You walk in, and they already have a book in hand. "You loved that detective story set in Paris. This one is by a new author, but it has the same feel."
The owner uses two kinds of memory. They remember the books you bought before. They also remember other readers with similar taste, and what those readers enjoyed next. "People who liked your last three books all came back raving about this one."
A recommendation system does the same job for a website or app. It cannot greet you at the door, but it can remember every click, purchase and rating, for millions of customers at once.
The owner (the model) uses what you bought before to pull a pile of possible books, puts the best on top, and tidies the list before you see it. What you pick next becomes new history.
How it works, step by step
- It collects your history (the owner remembering what you bought). Most systems learn mainly from interactions: what people viewed, bought, played or rated. Amazon's documentation says its service works "primarily" from this kind of data.
- The model looks for matches (the owner thinking about your taste). It can look for items similar to ones you liked, called content-based filtering. Or it can look for customers similar to you, and suggest what they liked, called collaborative filtering. Many systems use both.
- It gathers a pile of candidates (the owner pulling a stack of books off the shelves). From a catalogue of thousands of items, it picks a few hundred that might fit. Google's course calls this candidate generation.
- It ranks the pile (the owner putting the best book on top). A second step scores each candidate and sorts them, so the strongest matches come first. Google calls this scoring.
- It tidies the final list (the owner leaving out the book you already own). A last pass, called re-ranking, can remove items you already have, add variety, or follow the shop's own rules. Then you see the list, and what you click next becomes new history.
Try it · Side by side
Similar books or similar readers: which wins?
Tap what matters to you (pick one or more) and see which option fits.
Similar books (content-based)
- Can suggest it from what the book is about
- Sticks close to what you already like
- Can match niche items to your own interests
- Needs good descriptions of each item
- Only needs your own history
Similar readers (collaborative)
- Struggles: no one's history includes it yet
- Can suggest what readers like you enjoyed
- Has few similar readers to learn from
- Learns from behaviour alone
- Needs many customers' histories
Pick what matters to you and the better fit lights up.
Where the picture stops
- The owner can chat with a new customer for a minute and get a feel for them. The software cannot. With no history, it has little to go on. Amazon's documentation says the main way to improve suggestions for a new user is to record their interactions with your items.
- The owner can read a new book and recommend it on day one. A system that relies on "similar readers" often cannot, because nobody has bought the book yet. Google's course calls this the cold-start problem. Some services try new items out on some customers to learn about them.
- The owner knows why they picked a book. The software usually works with patterns in numbers, so it may not give you a reason a person would recognise.
Why it matters for your business
- Customers: people find things they want without searching. Google's own course says 60% of watch time on YouTube and 40% of app installs on Google Play come from recommendations.
- Sales: a good "you may also like" shelf can show customers products they would not have found on their own, including niche ones.
- Cost: nobody has to hand-pick suggestions for every customer and every product page.
- Risk: it runs on behaviour data, so privacy rules and your customers' trust apply. It can also keep showing more of the same, which Google notes limits how far it widens a customer's interests.
An example
Imagine an online homeware shop with 2,000 products and a few thousand orders a month. Today every customer sees the same "bestsellers" row. The shop adds a recommendation service that learns from views and orders. Now a customer who bought linen napkins sees matching table runners and a cake stand that similar shoppers bought. New products have little history, so the shop also keeps a small "just arrived" row for them. After a month, the team compares sales from the new row with the old bestsellers row before deciding to keep it.
Frequently asked questions
Is "customers who bought this also bought" a recommendation system?
Yes. It is a simple, common kind called related-item recommendations. Personalised home-page suggestions, where every customer sees a different list, are another kind.
How much data do I need?
It depends on the service and method. Systems that learn from "similar customers" need a good amount of interaction history. With very little data, simple rules such as bestsellers or "same category" are often the sensible start.
Is a recommendation system the same as AI?
It is a common use of machine learning, a branch of AI. Many systems turn customers and items into lists of numbers called embeddings, then look for close matches.
Why does it keep showing me things I already bought?
The system may only see that you were interested, not that you are done. A re-ranking step can filter out items a customer already owns, if the shop sets it up.
Related explainers
The DevDrift builds AI features into web and mobile products: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.