Designing LLM Evaluation Datasets: Build Test Cases That Represent Real Use
An LLM evaluation dataset pairs input cases with expected outcomes or grading criteria so teams can compare how well a model or prompt performs a task. A useful dataset is not merely large: it represents real use and failure risks, and makes success measurable. This guide focuses on application-level regression evaluation for a product or workflow, rather than ranking models on a public benchmark.
An LLM evaluation dataset pairs input cases with expected outcomes or grading criteria so teams can compare how well a model or prompt performs a task. A useful dataset is not merely large: it represents real use and failure risks, and makes success measurable. This guide focuses on application-level regression evaluation for a product or workflow, rather than ranking models on a public benchmark.
What question should the dataset answer?
State the evaluation question in one sentence. For example: “Does this support classifier distinguish delivery questions from refund requests?” “Did the model get better?” is too vague. Specify which models and settings are compared, on which inputs, and by what criteria.
The dataset is one part of an evaluation. A harness must reproduce runtime conditions such as model calls, tools, conversation state, and settings; a grader judges outputs; and analysis explains the results. The same cases may produce different outcomes if the system prompt, tool permissions, or sampling settings change.
Which cases belong in the dataset?
When possible, start with user requests, operational records, and known failures, while protecting personal and confidential information. Real data captures user wording and context, but requires controls for privacy, sampling bias, and authorization. If real records are unavailable, use cases written by domain experts, public material, or red-team records. Have people check synthetic cases for realism and valid expected answers: unreviewed model-generated examples may reproduce the model’s own errors or biases.
Easy, typical inputs alone conceal weaknesses. Include ordinary successes, boundary cases, ambiguous requests, missing required information, format variations, unexpected languages or phrasing, and safety-relevant requests. Do not add “trick questions” just because they look difficult. Cases outside the real task measure puzzle-solving rather than product performance.
For conversational systems, include prior context and follow-up turns when they matter. For tool-using agents, match the deployed tools, permissions, and execution environment. If the product supports multiple languages or modalities, sample them separately; English results do not establish quality in another language.
How should expected answers and grading criteria work?
For tasks with one clear answer, use deterministic checks such as exact match, schema validation for structured data, or executable code tests. For summaries, support, or safe refusals, several responses may be acceptable; use a rubric rather than requiring one exact sentence. State success and failure conditions, edge cases, and each criterion’s importance. Prefer observable requirements—such as “preserves the order number and states refund eligibility”—to vague labels such as “helpful.”
An LLM grader can classify many outputs or apply interpretive criteria, but it is not ground truth. Ambiguous instructions or a grader-model change can shift judgments; graders may also favor longer answers or particular wording. Keep grader instructions narrow and clear, preferably as separate yes/no questions. Compare grader results with a representative sample labeled by people and investigate disagreements and uncertain cases. Use programmatic checks where the correct answer is clear, reserving human or validated model judgment for interpretation.
For safety evaluations, refusal rate alone is inadequate. Measure whether the system appropriately refuses harmful requests while avoiding unnecessary refusals of benign ones. Define “appropriate response” with domain experts because it differs by risk area.
Why separate development data from final-check data?
Treat cases repeatedly inspected while changing prompts or choosing models as development data. Repeatedly optimizing against them can overfit and reduce performance on new inputs. Keep a held-out set unused during development for the final comparison, then add production samples and new failures after release. If you repeatedly inspect and tune against the held-out set, it is no longer an independent final test. Refresh the set and reconsider older cases over time.
If public benchmark questions appeared in training data, scores may measure memorization rather than capability. HELM illustrates why evaluations should cover varied scenarios and multiple metrics, making both coverage and gaps visible. Public datasets are useful starting points, but cannot replace cases reflecting your task’s input distribution and current failure modes.
| Dataset split | Main purpose | Updating |
|---|---|---|
| Development cases | Find and fix errors while building the prompt or system | Revise repeatedly |
| Held-out cases | Check whether a change generalizes | Limit access where practical |
| Production/regression cases | Bring real incidents and new risks into future checks | Add when new evidence appears |
Worked example: a small support evaluation
Hypothetical example: Evaluate a classifier that sorts delivery and refund questions and flags cases needing a human agent.
Define the question: “Does it classify the main issue correctly and avoid missing cases that require human review?”
Sample privacy-scrubbed real requests, including ambiguous wording, two issues in one message, missing order details, and requests for an agent.
Have two reviewers independently label the issue and whether escalation is needed. Resolve disagreement by clarifying the rule or marking a boundary case.
Use development cases to adjust the prompt, then run the old and new versions on the same held-out cases.
Review recall by category and missed escalations, not only overall accuracy. If a missed escalation is especially costly, make it a separate release criterion.
Store each case, expected outcome, rubric version, model/prompt/tool settings, run date, and judgment. When production reveals a failure, add a privacy-protected, reproducible case.
This illustrates a design method; it is not a claim about any real product’s performance.
How should score differences be interpreted?
Do not rely on one overall average. Inspect which case groups changed, the severity of failures, sample size, and grading uncertainty. Model outputs can be nondeterministic, so repeat important cases or compare before-and-after versions on the same paired cases. With a small sample or slight difference, “there is not enough evidence to determine a difference” may be more accurate than “improved.”
For reproducibility, record the dataset version, case provenance, inclusion and exclusion rules, label criteria, model version, prompt, tools, sampling settings, grader version, and run date. If a score is surprising, first check for data leakage, incorrect labels, grader failure, mismatched settings, or sampling bias.
Maintaining the dataset in production
An evaluation dataset is not a permanent answer key. Cases should evolve as user behavior, product scope, models, and risks change. Investigate new failures and add reusable regression cases; flag or replace duplicates and obsolete cases. Do not delete difficult cases just to improve scores, because that makes the measurement misleading. Keep a change history and reconsider score comparability when criteria or data distributions change.
For records containing personal data, copyrighted material, or customer secrets, define access controls, retention periods, and deletion procedures. Keep only necessary information and verify that external models or graders follow organizational data policies. Safety-sensitive evaluations, especially those involving tools or cybersecurity, should run in an approved isolated environment with monitoring.
Takeaway
Dataset quality depends on more than size. A clear question, representative cases, consistent references or rubrics, separated development and held-out data, subgroup analysis, and reproducible records make scores interpretable. Use public benchmarks as references, and maintain a task-specific dataset that reflects your users and failure risks.
Sources
[OpenAI API: Working with evals](https://developers.openai.com/api/docs/guides/evals) — evaluation workflows and graders. Accessed 2026-11-23.
[Anthropic: Define success criteria and build evaluations](https://platform.claude.com/docs/en/test-and-evaluate/develop-tests) — measurable criteria, case design, grader checks, and interpretation. Accessed 2026-11-23.
[Liang et al., “Holistic Evaluation of Language Models” (2022)](https://arxiv.org/abs/2211.09110) — HELM’s multi-scenario, multi-metric evaluation framework.
[Anthropic: Building strong safety evaluations](https://www.anthropic.com/research/building-strong-safety-evaluations) — validity, realistic cases, contamination, grader checks, uncertainty, and reporting. Accessed 2026-11-23.