Design A Learning To Rank Pipeline Using Assessor Labels And Clicks

Last updated: November 29, 2026

Quick Overview

Design the end-to-end system that trains and serves the web search ranking model, combining human assessor relevance grades with click logs, under a strict latency budget per query.

Yandex
ML System Design
Machine Learning Engineer
Yandex
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Hard

0

0

0 solved


Design the end-to-end system that trains and serves the web search ranking model, combining human assessor relevance grades with click logs, under a strict latency budget per query.

Yandex Search ranking has long relied on gradient boosting (MatrixNet, then CatBoost) trained on assessor judgments and behavioral signals. An ML system design onsite for search expects multi-stage ranking, label strategy, offline metrics like nDCG, and the path from experiment to production.

What the Interviewer Expects
  • Describe a multi-stage funnel: candidate retrieval, cheap ranker, heavy ranker
  • Explain combining graded assessor labels with debiased click signals
  • Choose a pairwise or listwise objective (YetiRank, LambdaMART) and nDCG style metrics
  • Address feature computation latency and training/serving skew
  • Plan offline evaluation, online interleaving or A/B, and model rollout
  • Cover freshness and query classes (navigational, fresh news, long tail)
Key Topics to Cover
learning to rank
CatBoost
position bias
nDCG
multi-stage ranking
feature store
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 correct click data for position bias?
  • How would you add a transformer based semantic relevance score without blowing the latency budget?
  • How do you decide which query-document pairs to send to assessors?
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

For each query return the top 10 documents from an index of billions in about 100 to 200 ms end to end, of which ranking gets tens of milliseconds. Optimize user satisfaction measured offline by grade...

High-Level Design

Stage 1: retrieval from inverted index shards plus ANN over embeddings returns thousands of candidates per shard. Stage 2: a light model per shard (few hundred features, small trees) cuts to hundreds....


Submit Your Answer
Markdown supported

Related Questions