Design Answer Passage Extraction for Featured Snippets in Search

Last updated: November 29, 2026

Quick Overview

Design the system that decides whether to show a featured snippet for a query, selects the passage from a top-ranked page and checks that it actually answers the question.

Google
ML System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design the system that decides whether to show a featured snippet for a query, selects the passage from a top-ranked page and checks that it actually answers the question.

Featured snippets put a single source at the top of results, so mistakes are highly visible and quality bars are strict. Interviewers check the triggering decision, passage scoring, and how you avoid confidently wrong or harmful answers.

What the Interviewer Expects
  • Separate trigger (should we show one?) from extraction (which passage?)
  • Use a reader model to score candidate passages from top results
  • Add confidence, consensus and source-quality checks
  • Handle sensitive topics like health with stricter thresholds
  • Evaluate with rater precision and user feedback
Key Topics to Cover
Question answering
Passage ranking
Answer triggering
Cross-source consensus
Precision-focused thresholds
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 handle questions whose answer is contested?
  • What if the best passage is a table or a list?
  • How would you detect that a snippet became wrong after a page edit?
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 and the top 10 ranked documents. Output: either no snippet or one passage (paragraph, list or table) with its source. Precision matters far more than coverage: a wrong snippet damages tru...

High-Level Design
  1. Trigger classifier: predicts whether the query is a question with a concise answer (informational intent, not navigational or opinion).
  2. Passage candidates: split top documents into passa...

Submit Your Answer
Markdown supported