You're building evals for a new LLM feature from scratch. How many examples do you need, and where do they come from?
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
Start with ~20-50 hard, realistic examples - you can build that in a day and it immediately changes decisions. The biggest eval mistake isn't small N; it's waiting for a large N that never arrives while shipping blind.
Full worked answer
Start with ~20-50 hard, realistic examples - you can build that in a day and it immediately changes decisions. The biggest eval mistake isn't small N; it's waiting for a large N that never arrives while shipping blind.
Sources, in order of value:
- Production failures - thumbs-down sessions, escalations to humans, support tickets, incidents. These are real, adversarial by construction, and each one is a regression test that provably mattered.
- Dogfooding / internal red-teaming - before launch you have no production data, so the team generates realistic tasks and deliberately probes edges.
- Synthetic generation - prompt a strong model with a taxonomy of scenarios (intents × personas × difficulty) to fill coverage gaps; human-review before admitting anything, because synthetic data inherits the generator's blind spots and tends toward the median.
- Public datasets - occasionally useful as scaffolding, usually off-distribution for your product.
On statistics: with 50 examples each case is worth 2 points, so you can only detect large effects - a 4-point delta is just two net examples flipping and is noise. That's fine early, when you're hunting 20-point problems. As decisions get finer (prompt A vs prompt B differing by a few points), grow toward hundreds of examples and add paired significance testing. Statistical power grows with N; buy power when you actually need the resolution.
Composition matters more than size: weight the set toward hard cases and known failure modes, keep a slice of easy cases as a smoke test, and stratify by the segments you care about (languages, intents, user tiers) so a regression in a small segment isn't averaged away. Version the set like code, and record dataset version alongside every score.
What a good answer covers
- Start with ~20-50 hard, realistic examples - you can build that in a day and it immediately changes decisions
- The biggest eval mistake isn't small N; it's waiting for a large N that never arrives while shipping blind
- Production failures - thumbs-down sessions, escalations to humans, support tickets, incidents
- Dogfooding / internal red-teaming - before launch you have no production data, so the team generates…
- Synthetic generation - prompt a strong model with a taxonomy of scenarios (intents × personas ×…
Key terms: ~20-50 hard, realistic examples · Production failures · Dogfooding / internal red-teaming · Synthetic generation · Public datasets
In the glossary: Regression test
Interviewer follow-ups to expect
How do you decide an example is "hard" before you have failures?
Your eval is 95% passing and stops discriminating between candidate prompts - what do you do?
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