A digital shopping assistant that accepts a photo matches it on image embeddings, not the keyword matching a search box uses. It turns the shopper’s image into a numerical vector, compares that vector with pre-computed vectors for every catalogue product, and returns the closest matches as a ranked list. A final decision step then picks the match, or should decline to. That last step decides whether the assistant can be trusted. As the catalogue grows, lookalike products multiply, so an assistant that always returns its top candidate ends up giving confident wrong answers.
How Does a Digital Shopping Assistant Work in Practice?
This article treats a digital shopping assistant that takes photos as two systems: a conversational layer and a visual layer. The conversational layer is a language model that answers shoppers’ questions. Amazon describes Rufus, for example, as retrieving information from the product catalogue, customer reviews and community Q&A before it generates a response. The visual layer is what runs when a shopper uploads a photo: a product-recognition system that has to resolve pixels into a specific catalogue item.
The rest of this article is about the visual layer, where catalogue scale and churn break closed-set approaches. For how these recognition systems are built and deployed for retailers, see our work on AI engineering for retail.
What Role Does Visual Product Recognition Play in Matching a Shopper’s Photo to a Catalogue Item?
Visual product recognition is the matching engine. nyris, in its 2026 visual product search benchmark, describes production product identification as three components: a pre-processing engine that checks image quality and localises the objects, a visual search engine that produces a ranked list of candidates from a large image database, and a post-processing engine that applies filtering and decision logic to predict the final match. The same benchmark calls image retrieval the foundation of the system, because without good ranking at that stage, identification downstream becomes unreliable or fails entirely.
The task is instance-level retrieval: finding images of the same physical product, not of products in the same category. Recognising “a trainer” is image recognition. Returning the specific trainer from your catalogue that matches the photo is visual search.
The Match Pipeline, Step by Step
- Localise. Detect the product (or products) in the shopper’s image. Google Cloud’s Vision API Product Search, for example, returns a separate ranked match list for each object it detects.
- Encode. A neural network, often a CLIP model or a fine-tuned vision transformer, turns the image into a high-dimensional embedding. The same encoder has already embedded the catalogue images into a vector database.
- Search. The query embedding is compared with the indexed catalogue embeddings. With L2-normalised vectors, the dot product equals cosine similarity and gives the same ranking as Euclidean distance.
- Rank and filter. The output is a ranked candidate list, which can be narrowed by category or attribute filters such as colour or style.
- Decide. Post-processing applies decision logic to predict the final match, and a threshold here lets the system reject unknowns.
The training behind such encoders is metric learning. Amazon’s 2024 paper on its visual search system describes embedding street and shop images so that images of the same object sit close together and images of different objects sit far apart. A smart retail shop is a retrieval architecture with a shared embedding index at its centre, as we explain in our piece on visual search and CBIR in a smart retail shop.
Why Retrieval, Not a Classifier
Product recognition is usually framed as visual search rather than classification because there are far more products than categories. The nyris benchmark puts it plainly: catalogues of thousands to millions of products, with extreme class imbalance and constant additions and removals, make classification infeasible both computationally and statistically, because closed-set classifiers need frequent retraining, suffer from the imbalance and cannot handle unseen products. Embedding approaches have been shown to generalise better when new classes appear at test time, and they support incremental catalogue updates without frequent retraining. The Cat2Real authors (2026) make the same move, recasting recognition as open-set, cross-domain retrieval in a shared embedding space. The add-relabel-retrain loop that works at a few hundred SKUs, and why it breaks, is covered in our article on retrieval-augmented recognition for retail CV.
Why Does an Online Shopping Assistant’s Accuracy Degrade as the Product Catalog Grows?
Accuracy falls as a catalogue gets bigger because near-identical products multiply and the catalogue keeps changing, on top of the gap between catalogue images and shoppers’ photos.
Lookalikes multiply. The authors of Products-10K (2020), built from about 10,000 SKUs bought on JD.com, note that many SKU-level products are fine-grained and look similar at a glance. The Cat2Real authors describe distinct items that differ only in flavour, size or small details of text. In their ablation, removing similar-product sampling during training cut top-1 accuracy from 80.73% to 74.81%, so the model has to be shown near-identical items deliberately before it learns to separate them. Pure image-to-image matching also latches onto partial patterns: Amazon’s example is zebra-pattern trousers matched to zebra-pattern mouse pads.
The domain gap widens. Catalogue images are clean and consistent, while shoppers’ photos vary in clutter, lighting, orientation and scene context. The Grocer-Help study (Scientific Reports, 2026) found that adding online catalogue images to training reduced detection accuracy on in-store images, which the authors attribute to that domain gap. In the nyris benchmark, large-scale pretraining alone was not enough for reliable product identification in industrial domains. There, SigLIP2 SO400M scored 0.0 Recall@1 on the DIY dataset despite strong public-benchmark results, and on Clips-and-Connectors the strongest general model, DINOv3 ViT-L/16, reached 26.4 Recall@1 against 63.4 for a domain-optimised model. Cat2Real reports a DINOv3 baseline of 53.83% top-1, rising to 80.73% after catalogue-to-real adaptation.
The catalogue never stops changing. The eProduct authors (2021) note that recognition gets harder when thousands of new products are added every day, and that offline-trained models degrade quickly as a result.
Distractors pile up. Every product added to the index is another possible wrong answer for every query. On eProduct’s million-scale index, ResNet-50 and ResNet-101 features achieved a macro-average recall at 10 of 0.4091 and 0.4540. Amazon notes that its evaluation index holds less than 1% of the products in its online index, “which makes exact matches hard” at full scale.
How Does an Assistant Handle Products It Was Never Trained on Rather than Returning a Confident Wrong Match?
“Never trained on” covers two quite different situations, and an assistant needs a separate answer for each.
The Product Is in the Catalogue but Not in the Training Data
This is the case retrieval supports natively. Adding a product means embedding its reference images into the index, not retraining a model. Cat2Real tested it directly: with every evaluation product removed from training, top-1 accuracy was 80.23%, compared with 80.73% for the full training set. What then matters is reference imagery. Google’s Product Search guidance says the best way to improve accuracy is to add more good reference images for each product. If you want to know what a usable reference set takes, our article on building an SKU dataset for retail product recognition covers it.
The Product Is Not in the Catalogue at All
Here the right answer is “no match”, and nearest-neighbour search will never give it on its own, because there is always a nearest neighbour. Most models are trained on a closed-world assumption, that test data comes from the same distribution as the training data, and they can misclassify samples from unknown classes as known ones with high confidence. Scheirer et al. (2013) state the requirement for open-set recognition: returning the most likely class is not enough, and the system must be able to reject. A survey of out-of-distribution detection frames the trustworthy behaviour as detecting unknown examples and either rejecting them or handing them to a human. In embedding space, distance-based methods do this by flagging queries that sit far from any known class, sometimes using cosine similarity directly.
Amazon’s team observed that matchers trained on instance pairs degrade “in an unpredictable and ungraceful manner” when exact matches cannot be found.
What Match-Confidence Thresholds and Fallback Behaviours Keep a Shopping Assistant Reliable at Scale?
An open-set system uses an operating threshold that a score must meet before it counts as a match, rather than accepting the top score, and Scheirer et al. note that the right threshold depends on the system’s requirements and environment. Setting that threshold is harder than it looks, for two reasons.
First, retrieval scores are not calibrated. Google’s documentation for Vision API Product Search says its result scores are not calibrated: scores within one query can be compared, but scores across queries cannot, so there is no single fixed threshold, and any threshold should be set per item label from your own experiments. Second, neural-network confidence is not calibrated either by default. Guo et al. (2017) found most models they tested miscalibrated, with expected calibration error typically between 4% and 10%, and uncalibrated networks tend to be overconfident. Temperature scaling corrects confidence without changing predictions. Taken together, this means a raw score is a ranking signal, and an accept/reject boundary has to be fitted on your own held-out data for each item label.
The threshold is also a coverage trade-off. Selective prediction treats it as coverage against risk: the model is allowed to abstain when it is not confident enough. Target coverage does not always hold at test time. In the SelectiveNet experiments, a 75% target coverage became 64.16% and 80.17% realised coverage for two methods. Because of that, the live abstention rate is worth monitoring as its own metric rather than assumed to match the tuning.
Rejection then needs somewhere to go. One visual-search vendor’s guide notes that good systems detect low-confidence matches on blurry screenshots or multi-item photos and fall back to broader recommendations. Category filtering stops a red handbag query from returning red shoes, a failure Pinterest addressed with per-category indexes.
Four Answers an Assistant Can Give
The safest design separates resemblance, catalogue identity, sellable variant and availability as distinct facts, and claims only what the evidence supports.
| Evidence after the threshold | What the assistant may say | What it must not say |
|---|---|---|
| Identity verified, variant resolved, availability current | “This is the product,” with stock for that variant | (nothing overstated) |
| Parent product verified, variant unresolved | Same product group; ask the shopper to choose the variant | That a specific variant is in stock |
| Visually similar, identity not confirmed | “Visually similar” items, clearly labelled | “Exact match” or “guaranteed substitute” |
| No candidate above threshold | No confirmed match; labelled inspiration at most | A fabricated or silently broadened result |
How Does the Compound Failure Class in Retail CV Shape What an Online Shopping Assistant Can and Cannot Promise?
The compound failure class is the combination of extreme visual similarity, strong domain shift between catalogue and query images, weak metadata and continuously changing catalogues that the nyris authors say public benchmarks rarely reflect. For more on these failure modes, see our analysis of why computer vision fails at retail scale. Strong public-benchmark results do not necessarily carry over to practical settings where fine-grained distinctions decide the match.
What an assistant can promise is to label similar-only results as such and to abstain on images it cannot place. It cannot honestly promise exact identity on every upload. Amazon lists as open limitations that its model can favour approximate over exact matches, and that it underperforms where lexical details such as sizes or part numbers matter more than visual meaning.
That changes how you test the system. A result appearing is not a pass criterion. Score each test case, from lookalike items to unresolved variants and out-of-scope images, on whether the assistant gave the narrowest answer the evidence supported. Whether better matching then turns into revenue is a separate question, covered in our article on how visual search and product discovery lift retail conversion.