# Golden dataset

> A golden dataset is a carefully checked set of real example inputs paired with their correct outputs, kept fixed and used as the reference for measuring whether an AI system gives the right answers.

Also called: gold standard dataset, ground truth set, reference dataset, test set, golden set. Category: Delivery and quality. Source: https://aibuildindex.com/glossary/golden-dataset

## In the index

- Document data extraction: median $1,400, middle half $250 to $5,000, 423 priced briefs (https://aibuildindex.com/cost/document-data-extraction)
- Invoice and receipt extraction: median $1,000, middle half $200 to $4,600, 119 priced briefs (https://aibuildindex.com/cost/invoice-extraction)
- Search over internal documents: median $2,150, middle half $300 to $8,800, 918 priced briefs (https://aibuildindex.com/cost/document-search-rag)

A golden dataset is the answer key for an AI system. It holds examples of the inputs the system will face, each paired with the output a careful person agrees is correct. Because it is checked and kept stable, it becomes the fixed point against which every version of the system is measured. For a buyer, it is the most concrete way to define what "working" means before a build starts and to check it at the end.

## How it works

Building one starts with real material. For a document extraction system, that means a sample of actual invoices or contracts, including the awkward ones: scans, unusual layouts, missing fields. For a support assistant, it means real customer questions with the answers a skilled agent would give. Each example is then labelled with the correct output, a task covered under [data labelling](https://aibuildindex.com/glossary/data-labelling), and checked by a second person where accuracy matters.

Good golden datasets share some traits:

- **Drawn from real data**, not invented. [Synthetic data](https://aibuildindex.com/glossary/synthetic-data) can fill gaps but should not replace real examples.
- **Representative**, covering the common cases in roughly the right proportions.
- **Includes the hard cases** that the business most needs right.
- **Kept separate from [training data](https://aibuildindex.com/glossary/training-data)**, so the system is not tested on examples it learned from.
- **Versioned**, so changes to it are deliberate and recorded.

The set is then used to run [evals](https://aibuildindex.com/glossary/evals) whenever the system changes, which turns it into the basis for [regression testing](https://aibuildindex.com/glossary/regression-testing).

## What it means for cost

A golden dataset takes time to build, and much of that time is the buyer's. Builders can organise the work, but only people who know the business can say what the right answer is. Quotes that include building the set usually look higher than those that do not, but they also carry a clear test the builder can be held to.

Ask a builder:

- How many examples do you need from us, and in what form?
- Who will label them, and how will disagreements be settled?
- What score on this set will count as acceptance?
- Will we own the set at the end of the project?

Supplying a small, real sample early is one of the most useful things a buyer can do to get an accurate quote, because it shows the builder the true difficulty of the data.

## Common questions

### How big should a golden dataset be?

There is no fixed size. It needs enough examples to cover each important case type and to make the score stable from one run to the next. Many projects start small and add examples as new failures are found in use.

### Can the builder create the golden dataset without us?

Only partly. A builder can collect and format examples, but deciding what the correct output is often needs business knowledge. Answers chosen without that knowledge can make a system look accurate when it is not.

### Is a golden dataset the same as training data?

No. Training data teaches a model; a golden dataset tests it. Keeping them separate matters, because a system tested on examples it was trained on will score better than it performs in real use.

## Related terms

- [Evals (AI evaluation)](https://aibuildindex.com/glossary/evals): Evals are structured tests that measure how well an AI system performs on a fixed set of realistic inputs, scoring its outputs so that changes to prompts, models or data can be judged by evidence rather than impression.
- [Data labelling](https://aibuildindex.com/glossary/data-labelling): Data labelling is the work of adding correct answers to raw examples, such as tagging images, marking entities in text or rating model outputs, so that a machine learning model can be trained or evaluated on them.
- [Training data](https://aibuildindex.com/glossary/training-data): Training data is the set of examples a machine learning model learns from, such as labelled images, past transactions or question-and-answer pairs, and its quality, coverage and rights largely decide how well the finished model performs.
- [Regression testing](https://aibuildindex.com/glossary/regression-testing): Regression testing is re-running a system's existing tests after every change to confirm that features which already worked still work, catching new bugs or quality drops before they reach users.
- [Synthetic data](https://aibuildindex.com/glossary/synthetic-data): Synthetic data is artificially generated data that mimics the patterns of real data, used to train or test AI systems when real examples are scarce, sensitive or missing rare cases.
