How would you use synthetic data to build or extend an eval set, and what are the failure modes?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Synthetic generation is how you get coverage before you have traffic, and how you fill distribution gaps after. Done well it's structured, not "generate 500 test questions":
- Build a scenario taxonomy first - dimensions like intent × persona × difficulty × language × edge condition (ambiguous request, contradictory constraints, missing information, adversarial phrasing). Generate by sampling combinations, so coverage is by construction rather than hoping the model varies.
- Ground generation in real artifacts where possible: for RAG, generate questions from actual corpus chunks - you get (question, gold chunk) pairs with relevance labels for free, which is the standard way to bootstrap retrieval evals. For agents, generate tasks from real tool schemas and environment states.
- Generate hard negatives deliberately: questions the corpus can't answer (tests "I don't know" behaviour), near-miss queries, prompt-injection attempts for guardrail suites.
- Human review before admission. Every synthetic case gets a pass by a person: is it realistic, is the expected answer actually correct, is it unambiguous? Budget for rejecting 20-40%. Unreviewed synthetic evals are how teams end up optimising against wrong reference answers.
Full worked answer
Synthetic generation is how you get coverage before you have traffic, and how you fill distribution gaps after. Done well it's structured, not "generate 500 test questions":
- Build a scenario taxonomy first - dimensions like intent × persona × difficulty × language × edge condition (ambiguous request, contradictory constraints, missing information, adversarial phrasing). Generate by sampling combinations, so coverage is by construction rather than hoping the model varies.
- Ground generation in real artifacts where possible: for RAG, generate questions from actual corpus chunks - you get (question, gold chunk) pairs with relevance labels for free, which is the standard way to bootstrap retrieval evals. For agents, generate tasks from real tool schemas and environment states.
- Generate hard negatives deliberately: questions the corpus can't answer (tests "I don't know" behaviour), near-miss queries, prompt-injection attempts for guardrail suites.
- Human review before admission. Every synthetic case gets a pass by a person: is it realistic, is the expected answer actually correct, is it unambiguous? Budget for rejecting 20-40%. Unreviewed synthetic evals are how teams end up optimising against wrong reference answers.
Failure modes to name:
- Distribution mismatch: generated cases are cleaner, better-punctuated, more polite, and more solvable than real users - models look better on synthetic sets than on production traffic. Mitigate by seeding generation with real examples and mimicking their messiness (typos, fragments, mixed languages).
- Mode collapse / low diversity: LLMs produce the median case repeatedly; the taxonomy plus explicit diversity instructions plus dedup (embedding-similarity filtering) counteract it.
- Generator - judge circularity: if the same model family generates questions, answers them, and judges them, biases align at every stage and scores inflate. Cross families across roles.
- Wrong labels at scale: a subtly wrong synthetic reference answer silently corrupts your metric - worse than no case at all.
Position synthetic data honestly: a bootstrap and gap-filler that production failures progressively replace, not a permanent substitute for real data.
What a good answer covers
- Synthetic generation is how you get coverage before you have traffic, and how you fill distribution gaps…
- Build a scenario taxonomy first - dimensions like intent × persona × difficulty × language × edge…
- Ground generation in real artifacts where possible
- Generate hard negatives deliberately
- Human review before admission
Key terms: Build a scenario taxonomy first · Ground generation in real artifacts · Generate hard negatives deliberately · Human review before admission · Distribution mismatch · Mode collapse / low diversity · Generator - judge circularity · Wrong labels at scale
In the glossary: RAG · Mode collapse · Judge (LLM-as-judge)
Interviewer follow-ups to expect
How would you measure whether your synthetic set predicts production performance?
Generate eval cases for a brand-new feature with zero users - walk me through it for a specific feature.
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep