← Back

Building an AI Recommendation Engine with Limited Data

TL;DR

A new user has no history. A new product has no clicks. Here is how to make useful recommendations anyway—and decide when a learned model earns its place.

Conceptual illustration for Building an AI Recommendation Engine with Limited Data

An AI recommendation engine ranks products, content or actions for a particular user. With limited data, the useful starting point is usually a rules-based or content-based recommendation, backed by reliable item attributes. Collaborative filtering becomes a stronger candidate when you have enough relevant interactions to learn from. A large language model does not make missing purchase history appear.

Imagine launching a specialist equipment shop. There are hundreds of products, but most visitors are new. “People like you bought this” is an impressive promise that your data cannot yet support. “These two products meet the requirements you just selected” is a smaller, useful promise you can keep.

This guide explains how to build that first version, what to record, and what evidence would justify something more sophisticated. The six-product example below is fictional and reproducible; it is not a client result or a model benchmark.

Choose the recommendation you actually need

Start with the moment of choice. A product-page accessory, the next lesson in a course and a homepage feed are different problems. They have different eligible items and different definitions of success.

For an accessory, compatibility may be mandatory. For a learning platform, the next lesson may require a completed prerequisite. For a feed, some variety may matter more than showing ten near-identical items. Write these restrictions before choosing an algorithm.

Also ask whether the user needs a recommendation at all. If they know the exact product number, improve search. If six clearly labelled categories solve the problem, better navigation may beat an opaque personalised feed. A recommendation earns its space when it reduces a decision the user was struggling to make.

What you have Sensible first candidate What it cannot establish
No user history, reliable catalogue Rules and a curated fallback Individual taste without another signal
Item attributes and a stated preference Content-based ranking Preferences outside those attributes
Repeated user–item interactions Collaborative or hybrid model Reliable treatment of every unseen item
Poor item attributes and unreliable events Repair the data first A trustworthy ranking from incomplete evidence

Google's explanation of content-based filtering describes matching item features to a user's preferences. Its collaborative filtering guidance also identifies the difficulty of recommending unseen items. These are useful distinctions, not a universal maturity ladder: a well-designed rules system can remain the right solution.

Recommendation pipeline: apply eligibility constraints, rank item relevance, check live stock and measure user outcomes.
Fictional six-product example. Eligibility rules apply before ranking; no model performance is claimed.

A six-product example: filter before you rank

Suppose a shopper wants an outdoor product costing no more than £80, available now. The prices and attributes below are invented to make the decision inspectable; they are not a market price comparison.

Product Price In stock Use Eligible?
A £50 Yes Outdoor Yes
B £120 Yes Outdoor No: over budget
C £65 No Outdoor No: unavailable
D £70 Yes Indoor No: wrong use
E £80 Yes Outdoor Yes
F £90 Yes Outdoor No: over budget

Applying all three constraints leaves A and E. That result can be checked without a trained model. Ranking all six first and hoping the AI respects the budget would introduce an avoidable failure.

Now decide how to order A and E. If the shopper said price matters most, A comes first. If they selected a specific compatible feature that only E has, E may come first. If you have no relevant differentiator, show both with a clear explanation rather than inventing a personalised confidence score.

The system should check availability again near the action that commits the purchase. A recommendation created a minute ago is not a stock reservation. When the preferred item disappears, the fallback must still obey the original constraints.

This example tests eligibility logic only. It says nothing about whether users will prefer the recommendations, click more often or buy more. Those questions need observations from the actual product.

Make the first visit informative without a long questionnaire

A new visitor is not always an entirely unknown visitor. The current page, selected category and explicit filters can provide relevant context without requiring a detailed profile. Ask a question only when the answer changes the recommendations enough to justify the interruption.

In the equipment example, “indoor or outdoor?” removes clearly unsuitable products. Asking for a full personal profile would add friction without improving that immediate decision. Let people change their answer and understand why the list changed.

Treat an absent answer as unknown. Do not silently convert “no preference supplied” into “likes the most popular product”. A popularity fallback is acceptable when labelled and measured as a fallback; it is not personalisation.

Keep recommendations distinct from advertising or commercial placement. If a business rule promotes a particular item, make that rule explicit in the implementation and assess its effect separately. Otherwise the team may mistake a merchandising decision for a model's discovery.

Record exposure, not just clicks

A click log alone is incomplete. You also need to know what the person could have clicked, where it appeared, and which version of the ranking produced it. An item shown first has a different opportunity from an item below the fold.

A practical event contract includes:

  • A unique event ID, timestamp and placement name.
  • A session or permitted user identifier, with an explicit retention policy.
  • The item IDs displayed, their positions and the ranking version.
  • Relevant context such as selected category or price limit.
  • Subsequent actions, with an agreed attribution window.

Decide how to handle retries, duplicate events and cancelled purchases before calculating performance. Five duplicate purchase events should not make one item appear five times more successful.

Record which attributes were available at the time. Using today's corrected catalogue to judge an old recommendation can hide the actual failure. Our data quality for AI guide covers checks that belong before model selection.

Test cold users and cold items separately

Keep a simple baseline: curated choices, popularity within an eligible category, or the existing rules. Evaluate the new method against the same eligible audience and the same outcome definition.

For an offline experiment, use a cutoff that respects the order of events. Train using information available before the cutoff, then assess later interactions. Separate new users, returning users and newly introduced products. A good average can conceal a poor first visit.

Be careful with historical exposure. If an old system never showed an item, the absence of clicks does not prove that people disliked it. Offline relevance scores are useful diagnostics, but they do not replace a controlled live comparison.

Choose a primary outcome that matches the placement. A lesson recommendation might aim at meaningful course progress; a product recommendation might aim at completed purchases with returns monitored. Click-through rate can be a supporting signal, but clickbait is not a business improvement.

Set guardrails before rollout: ineligible recommendations, latency, catalogue coverage, complaints and any downstream cost. If traffic is low, allow longer observation or accept that the evidence remains inconclusive. Do not turn a handful of clicks into a percentage uplift claim.

When does a learned model become worth the extra work?

Consider it when the baseline leaves a specific, repeated problem unresolved and you have data that could plausibly explain it. For example, many returning users may browse across categories in ways that simple catalogue similarity misses.

Estimate the full operational commitment. Someone must maintain events, refresh item data, monitor changes in behaviour, investigate failures and own the fallback. Include the cost of serving recommendations and the effect on page speed. A slightly better offline score may not justify a slower or harder-to-maintain product.

Run a small model-selection evaluation on the task rather than buying the most complex architecture first. Write down what the candidate must improve and what would make you keep the existing approach.

A hybrid is often a useful experiment: hard eligibility rules, several candidate sources, then ranking and a final availability check. Each stage has a clear responsibility. None should be allowed to invent a product ID that does not exist in the catalogue.

Release with a fallback you can explain

Start with one placement and keep the current recommendation method available. Version the ranking configuration so that a support report can be connected to the actual logic used.

If a service times out, return the tested fallback. If required attributes are missing, exclude the affected item or use a deliberately narrower recommendation. Log the reason so a quiet data failure does not become permanent behaviour.

Give the team an explicit stop condition. Examples include an eligibility violation, a broken event pipeline or unacceptable response times. These are operational decisions, not numbers that should be copied from somebody else's experiment.

Common questions before commissioning a recommender

How much data is enough? There is no useful universal row count. Coverage of users, items and relevant interactions matters. A large log of one repeated action can be less useful than a smaller, well-defined dataset.

Do we need an LLM? Not necessarily. An LLM may help interpret text or explain a verified choice, but it should not replace catalogue checks or invent reasons unsupported by the data.

Can we launch before training a model? Yes. A rules or content-based first version can help users while creating a cleaner basis for a later experiment. Describe it honestly and evaluate its usefulness.

Turn the idea into a scoped experiment

Download the recommendation experiment worksheet to define the placement, constraints, event contract, baseline and stop conditions. Fill in the decision first; choose the model afterwards.

If the recommendation depends on your own catalogue, workflows or application, Pixelfield's AI development services can help scope and build the integration. Bring an example of a good recommendation, an unacceptable one and the data available at that moment. Those three things make a more useful starting brief than “add personalisation”.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.