Design the Multi-Stage Ranking Pipeline Behind Bing Web Search

Last updated: November 29, 2026

Quick Overview

Design the ML ranking pipeline that turns a Bing query into the final ten organic results from an index of billions of pages, within a latency budget of a few hundred milliseconds.

Microsoft
ML System Design
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the ML ranking pipeline that turns a Bing query into the final ten organic results from an index of billions of pages, within a latency budget of a few hundred milliseconds.

Bing's ranking stack is a cascade from cheap retrieval to expensive neural rerankers, trained on both human judgments and user behavior. A senior interviewer looks for the cascade design, latency budgeting per stage, training data strategy, and how evaluation keeps the system honest.

What the Interviewer Expects
  • Lay out retrieval, cheap ranking, and expensive reranking stages with candidate counts
  • Combine lexical and dense retrieval
  • Specify features and models per stage with latency budgets
  • Explain training labels from judgments and debiased clicks, and cascade-aware training
  • Describe offline metrics, interleaving and A/B tests
  • Discuss freshness, spam, and query understanding
Key Topics to Cover
search ranking
cascade ranking
dense retrieval
learning to rank
latency budgets
Bing
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you train an early stage so it does not drop what the reranker would rank highly?
  • How would you add LLM-based relevance without blowing the latency budget?
  • How do fresh news pages get ranked before they have any click data?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements
  • Input: query, user context (market, language, location, device). Output: top 10 organic results plus snippets.
  • Latency: p95 under about 300 ms end to end, ranking within roughly 150 ms.
  • Scale: b...
High-Level Design
  1. Query understanding: spelling correction, intent classification (navigational, news, local), rewriting and expansion.
  2. L0 retrieval per index shard: inverted index with BM25-style scoring...

Submit Your Answer
Markdown supported