FDEInterviews logoFDE/Interviews
ML System Design (Product) / 12
hardAmazonDoorDashEtsy

Design learning-to-rank for product/marketplace search.

A search box is a recommender with a strong prior: the query. The hard parts are understanding ambiguous intent, retrieving in two stages under a tight latency budget, and learning from clicks without teaching the model that whatever you showed first is best.

Updated Aug 2026 · Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.

A search box is a recommender with a strong prior: the query. The hard parts are understanding ambiguous intent, retrieving in two stages under a tight latency budget, and learning from clicks without teaching the model that whatever you showed first is best.

more free answers with an account · no card
UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

The senior signal is query understanding driving a two-stage retrieval (lexical plus embedding) and clean relevance labels: clicks and purchases are abundant but position-biased, human judgments are clean but expensive, and the strong answer uses both with explicit position-bias correction. Strong candidates name a latency budget, separate retrieval recall from ranking precision, and personalize without letting personalization override clear intent. Probe with 'a query for waterproof returns non-waterproof items that get clicked, so the model ranks them higher' to test whether they understand click bias and label hygiene.

DISCUSSION · 0

No comments yet — be the first to share your approach.