Ground truth
The known correct answers or labels that a model’s output is compared against in an evaluation.

Ground truth is the set of known correct answers or labels that a model’s output is compared against in an evaluation. For classification it is the right label; for RAG it is the reference answer and the documents that contain it.
Metrics such as recall or context recall cannot be computed without it. It usually comes from people who know the domain, which makes it the expensive part of an evaluation, and it can itself be wrong or out of date: a policy changes, a price list is replaced, a regulation is amended. Frequent disagreement between labelers is a warning sign that the question or the rubric is ambiguous, see human evaluation. Generating reference answers with a model is cheaper, but then you measure agreement with that model, so a person should approve them.
A golden dataset is ground truth packaged with inputs for repeated runs. Online evals on production traffic usually have no ground truth at all, which is why they lean on judge models and user signals instead, see offline and online evals.
Related terms
- 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.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Context recall: A RAG retrieval metric: how much of the information needed for the correct answer was actually retrieved.
- Human evaluation: People, ideally domain experts, grading AI outputs against a written rubric; the reference that automated metrics are checked against.
- Offline and online evals: Offline evals test an AI feature on a fixed dataset before release; online evals score real production traffic after it.
