The Desi Architect
Notes / Design Interview Problems / Design AI Search for E-Commerce (Hybrid Retrieval, Code-Mixed)
Track 5 · Design Interview Problems

Design AI Search for E-Commerce (Hybrid Retrieval, Code-Mixed)

How an e-commerce search engine combines keyword matching and dense vector search to parse Hinglish queries, rank 10 crore products, and return results in under 100 milliseconds.

Architectural blueprint for an Indian e-commerce search platform handling 6 crore daily queries. Covers Hinglish query understanding, dual-tower BM25 and HNSW vector retrieval across 16 shards, Reciprocal Rank Fusion, real-time stock freshness via outbox bitsets, and two-stage GBDT re-ranking under a 95 ms p99 latency budget.

Interview problem44 min read
On this page
  1. Why this problem is hard
  2. What are we building?
  3. Entities, API and numbers
  4. Building it up, one step at a time
  5. Where it gets hard: the deep dives
  6. Failure modes at a glance
  7. The whole picture
  8. How interviewers judge this
  9. Questions that come next
  10. Saying it out loud in 45 minutes
  11. Sources and assumptions