1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
Design AI-powered semantic product search for an e-commerce site with 10M products.
30-second answerSay your answer out loud first, then reveal.

Design points
- Latency budget: total ~150ms. A frontier LLM call per query is too slow and too costly at high QPS, so use:
• a cache of query-understanding results for frequent queries (the head of the distribution repeats a lot),
• small fine-tuned models for filter extraction on tail queries. - Offline LLM enrichment: fill missing attributes, normalise colours and sizes, generate searchable descriptions, translate. Batch processing is cheap at catalogue scale.
- Multilingual / transliterated queries ("joote", "saree for shaadi"): query normalisation plus multilingual embeddings.
- Ranking: a learning-to-rank model (e.g. gradient-boosted) trained on clicks and purchases, with position-bias correction.
- Evaluation: offline nDCG on judged query–product pairs (LLM-assisted relevance labelling + human audit), then online A/B tests on CTR, add-to-cart, conversion, null-result rate.
Optional: a conversational shopping assistant layered on top for exploratory queries ("gift for a 10-year-old who likes science").
Related
You understood something today that you didn't yesterday.