All blog posts

Evaluation datasets

How to Build a Gold Evaluation Dataset for an AI Product

Design a set of trusted test cases that captures real workflows, rare failures, and the decisions your AI feature must get right.

A gold evaluation dataset is a collection of inputs with outcomes that knowledgeable reviewers have checked. Its job is to tell a product team whether a specific version is ready for a specific workflow. Start by writing the decision the test should support. For a fictional document intake assistant, the question is whether it can create a usable ticket or correctly send incomplete paperwork to a person. That question determines what you collect and how you label it. OpenAI’s evaluation design guidance

Pick a unit the team can review

Use one intake attempt per row. Store the exact input the system sees, a case ID, the document type, relevant source evidence, and the expected action. For a case the assistant can handle, include required ticket fields and accepted variations. For a scan with an unreadable reference number, the expected action is human review. A plausible reference number still fails this case because the input provides no evidence for it.

Write the labeling rules before scaling the dataset. Show reviewers one clear case and one boundary case for each action. Ask two reviewers to label a small batch independently and compare where they disagreed. If they disagree about whether a cropped date can be inferred, update the rule, have a domain owner adjudicate the example, and apply the resolved interpretation consistently. Keep enough of the rationale to explain the label to a new reviewer. Google PAIR’s data collection and labeling guide

Sample ordinary cases and expensive failures

Start with a sample of real workflow patterns using approved, de-identified records or representative fixtures. Include boring successes because they establish the baseline burden on users. Then add a named set of rare cases the product must handle deliberately, such as duplicate submissions, a missing second page, and two valid identifiers that disagree. Synthetic inputs are especially useful where a real example is scarce or too sensitive to include.

For the intake example, a team might start with 100 cases. It could use 60 to improve the workflow and reserve 40 for release checks, keeping all pages, retries, or variations from the same originating ticket in one split. Within that protected set, report the routine cases and the deliberately difficult cases separately. This preserves the difference between ordinary-traffic performance and behavior under stress.

Keep the release set useful after launch

Freeze the release set and record its version when comparing candidates. Give the team a working set for prompt changes and reserve the release set for milestone checks. When the team uses a release failure to tune the product, move that example into the working regression set and add an independently sourced challenge to the next release set. Otherwise, repeated scoring can reward memorizing the details of a familiar ticket.

Keep a record reviewers can maintain

Keep a short dataset note beside the file. Record who can approve a label, how the examples were collected, what the set represents, what it leaves out, and when it should be refreshed. Track policy versions so a correct historical answer keeps its meaning. For the intake assistant, ship a change only after routine completions and required handoffs both meet the team’s agreed criteria. The dataset then gives reviewers an evidence trail whenever someone asks why the release passed. Gebru and colleagues’ Datasheets for Datasets