Explainer
Where test cases come from
Test cases, the questions you run a system on with the behaviour you expect, come from real use, real failures, a planned grid and invention.
- Real questions and logs. OpenAI’s guide says to “mine your logs for good eval cases”.
- Real failures, each turned into a case. Anthropic’s agent-evaluation guide calls “20-50 simple tasks drawn from real failures” a great start.
- A grid of dimensions, the things that vary. Illustration: two languages, the library notice’s six passages and three question shapes (one part, two parts, not covered) give 36 combinations. Fill the cells your logs leave empty.
- Invented and model-written (synthetic) cases. They are quick to make, but “Synthetic data cannot tell you how common a failure is in production” (Hamel Husain’s FAQ).
A representative sample draws cases in roughly the mix people really send, so its pass rate estimates everyday service. A challenge set packs in hard or rare cases, such as questions the notice does not cover, so a lower pass rate there is expected. Report the two averages apart. They answer different questions, and a blend of them describes neither.
Keep near-copies on one side of a split. A question and its typo version are near-copies. If one guides your changes and its twin sits in the final test, that test partly rechecks what you tuned on. This is called leakage.
Going deeper
Paraphrases and translations are near-copies too, and they slip past exact-match checks: Yang and colleagues found such variations “can easily bypass” common filters. Real user text usually carries personal data, which the European Commission defines as “any information that relates to an identified or identifiable living individual”. Remove names and contact details, and follow your organization’s rules before copying logs into a test set.
In Evaluations in practice: Where test cases come from. Then try Change one fact in a case.