productinterview.tools
MenuClose

Design AI-Powered Search for an Online Store

The interviewer asksDesign an AI search for an online store with 2 million products, so customers can type things like 'warm waterproof jacket for hiking under $200'.

AI Product EngineerApplied AI PMForward Deployed Engineer (secondary)CoreSystem design roundRepresentative15–20 min

On this page
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Latency matters: search must feel instant.
  2. Use the model to understand the query: turn it into filters (price, waterproof) and a search phrase.
  3. Retrieve with hybrid search over product data; apply filters; rerank top results.
  4. Cache common queries; use a small fast model for query understanding.
  5. Measure offline relevance on labelled queries and online conversion and refinement rates.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Search design with LLMs
  • Latency budgets
  • Relevance evaluation

How to structure your answer

  1. Requirements.
  2. Query understanding.
  3. Retrieval and ranking.
  4. Latency.
  5. Measurement.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveRevealed when asked
  1. Interviewer
    Design an AI search for an online store with 2 million products, for queries like "warm waterproof jacket for hiking under $200".
  2. Candidate
    How fast must results appear, and how is search quality measured today?
  3. Revealed when asked
    Under half a second; they track clicks and purchases from search.
  4. Candidate
    Half a second rules out a big model writing results. So use a small, fast model just to understand the query: extract filters, price under $200, waterproof, category jackets, and a search phrase, "warm hiking jacket".
  5. Strong move
    Keeps the model to the part where it adds most, within the latency budget.
  6. Candidate
    Then hybrid search over product titles, descriptions and attributes, apply the filters, and rerank the top hundred with a ranking model that uses popularity and relevance.
  7. Candidate
    Cache the understanding of common queries; most search traffic repeats.
  8. Interviewer
    How do you know it's better than keyword search?
  9. Candidate
    Offline: a set of real queries with labelled relevant products, comparing top results. Online: an A/B test on purchases from search and how often people rephrase.

The strong answer, distilled

  • Budget: under 0.5 s.
  • Query understanding: small model extracts filters and a search phrase; cached for common queries.
  • Retrieval: hybrid search, filters, reranking of top results.
  • Measurement: offline relevance on labelled queries; online A/B on purchases and rephrasing.

This is one strong answer, not the only one.

How it's scored

Dimension Weak (2) Passable (3) Strong (5)
Latency Ignored Mentioned Drives the design
Design LLMLarge language model. A model trained to predict the next token of text, used to generate and reason over language. Read the full explanation answers everything Embeddings search Query understanding, hybrid retrieval, reranking
Measurement None Clicks Offline relevance and online A/B

Round scorecard: FDE: AI system design round, filled in for the mock candidate

DimensionWeakPassableStrongThe mock candidate
RequirementsAssumes them.Asks about scale.Users, data, scale, latency, cost and risk, before drawing anything.Strong. Asked about latency and how results are judged today.
ArchitectureOne component.A reasonable flow.Full skeleton, then depth on the parts this system depends on.Strong. Query understanding into filters, hybrid retrieval, reranking.
Quality and evalsNone.Mentions testing.Evals per component and end to end, and how they're built.Strong. Offline relevance labels and online conversion.
Failure and costIgnored.Mentions one.Fallbacks, guardrails, latency and cost levers, tied to requirements.Strong. Kept the model off the hot path where possible; caching.

How the answer changes by role

Role What to emphasise
AI Product Engineer Pipeline and latency
Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation Search experience and A/B design
Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation Adapting to a retailer's catalogue

Common mistakes

  • A large model on every search
  • Ignoring structured filters like price
  • No baseline comparison

More follow-ups to practise

  • "Product data is messy." Hint: enrich attributes offline with a model.
  • "Users want a chat-style shopping assistant." Hint: a separate, slower surface.

Go deeper

Sources

Representative question: written to match system design rounds for AI product roles, not a specific reported interview.