Design an Offline and Online Evaluation Pipeline for Gemini Feature Factuality
Last updated: November 29, 2026
Quick Overview
A team is shipping a Gemini-powered summarization feature and needs to measure and track hallucination rates before and after launch. Design the evaluation system, from datasets and automatic raters to human review and production monitoring.
0
0
0 solved
A team is shipping a Gemini-powered summarization feature and needs to measure and track hallucination rates before and after launch. Design the evaluation system, from datasets and automatic raters to human review and production monitoring.
Google teams are expected to gate generative launches on evaluations, and interviewers want a credible pipeline rather than 'we will test it'. They check dataset construction, LLM-as-judge calibration against humans, regression gating and production sampling.
What the Interviewer Expects
- Build a representative eval set including hard and adversarial cases
- Define factuality at the claim level and score with an autorater
- Calibrate the autorater against human ratings
- Gate model and prompt changes on eval results with confidence intervals
- Monitor production with sampled reviews and user feedback
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you know the autorater is not biased toward its own model family's style?
- How many examples do you need to detect a 1 percentage point regression?
- How do you handle evaluation for languages with few human raters?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Feature: summarize long documents or threads. Need: a factuality metric (share of summaries with any unsupported claim, and unsupported claims per summary), tracked per model and prompt version, with ...
High-Level Design
- Eval sets: a core set (about 2,000 diverse documents across lengths, domains and languages), a hard set (numbers, negations, conflicting statements), and an adversarial set (injected instructio...