Retail group
Search that finds the product even when the customer misspells it
A semantic search prototype for a retail group's online catalogue, validated against the production engine on 1,576 test queries, 664 of them taken from live traffic: top-result precision rose from 0.60 to 0.76. It is a measured prototype, not yet a production system.
- 0.60 → 0.76top-result precision on 1,576 test queries, versus production
- 0.55 → 0.75nDCG on the same queries
- 0.922nDCG@10 on the evaluation suite, up from 0.800 for hybrid search
- 63 msper search on a single GPU, reranking 60 candidates
The challenge
On a catalogue of more than 16,000 products, the logs held tens of thousands of search terms that returned nothing: misspelt brand names, synonyms, needs described in plain words. A first version with a retrained model looked promising, but an independent evaluation showed it performed worse than the baseline model.
What we built
First, the evaluation suite: 216 searches stratified into seven types (proper names, synonyms, typos, descriptions, categories, attributes, products not in the catalogue) and an independent LLM judge. Then the pipeline: an index enriched with queries generated for every product, hybrid lexical and vector search, a domain lexicon built from public sources, a spelling corrector based on catalogue terms, a retrained embedding model and a reranker distilled from graded judgements. GPU load tests to estimate serving costs. Finally, a live comparison with the production engine on 1,576 test queries (664 taken from live traffic), judged blind.
Stack
- Python
- PyTorch
- BGE-M3
- LoRA
- Reranker
- RunPod
- Docker
Related services
Is your process still living in a spreadsheet?
Tell us what the system has to do, what data it works with and what constraints apply. We'll come back to you with the questions that matter and a phased proposal.
Get in touch