Golden dataset
A fixed set of real inputs with expected answers or checks, used to test an AI feature after every prompt or model change.
A golden dataset is a fixed set of real inputs with expected answers or checks, used to test an AI feature after every prompt or model change. The cases come from real traffic and from bugs already found, not only from the happy path, and each one says what a good answer must contain or avoid.
Because the set stays the same between runs, a drop in the score points at the change you just made. It grows over time: every bug a user reports becomes a new case. The expected answers are the ground truth. For open-ended text they are usually criteria, such as “names the return deadline” or “does not promise a refund”, checked by code or an LLM judge. Anthropic’s eval guide suggests starting with 20–50 tasks drawn from real failures; coverage of the cases that cost money when wrong matters more than size.
If you tune the prompt against the same cases every time, the prompt fits the set and the score stops predicting production, so keep part of it aside for final checks. A golden dataset also differs from a public LLM benchmark: a benchmark compares models on general tasks, while your set tests your feature on your users’ questions. Review it when the product changes, because outdated expected answers fail correct output.
Sources
- Anthropic: Demystifying evals for AI agents anthropic.com
Related terms
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Prompt regression: An answer that used to be right goes wrong after a change to the prompt or the model.
- LLM as judge: Using a model with a rubric to grade another model’s output.
- Ground truth: The known correct answers or labels that a model’s output is compared against in an evaluation.
- LLM benchmark: A public, standardized test set used to compare models with each other, as opposed to evals built for your own task.
- Offline and online evals: Offline evals test an AI feature on a fixed dataset before release; online evals score real production traffic after it.
- Holdout scenarios: End-to-end user scenarios kept outside the codebase, so the coding agent never sees them and cannot write code that only passes the check.
