What is a golden dataset for AI evals, and how big should it be?

Answered by Falk Gottlob · Reviewed · 2 min read

THE SHORT ANSWER

A golden dataset is a fixed set of real inputs, each with an agreed answer or rule, that you run on every change. Start with 20 to 50 cases drawn from real failures, which Anthropic calls a great start. Grow it when a decision needs a precise number. Eugene Yan gives the math: to cut your uncertainty in half, you need four times the cases. Keep known failures in the set, add normal and edge cases on purpose, and add new failures every month so it doesn't go stale.

A golden dataset is the jar you draw from every time you test. Same inputs, same agreed answers, run after every change, so this week's score means something next to last week's.

Where do the cases come from? Your error log first. Every failure you found while reading real outputs becomes a case, so the set guards against mistakes you already know about. Then add three kinds on purpose. Normal, boring requests, so you notice if you break the basics. Hard cases from the edges. And slices, which are groups of cases that share something, like one type of customer. The average can look fine while one slice is broken. That happened to my team once. About a fifth of our traffic was failing behind a good average.

How big? Smaller than you fear to start. Anthropic's engineering team says 20 to 50 simple tasks drawn from real failures is a great start. Hamel Husain and Shreya Shankar say a set often grows past 100.

It grows because of the math. Eugene Yan works through an example. Your limit is 5% bad outputs. With 200 cases you see 3% bad. That sounds like a pass. But the honest range runs from about 0.6% to 5.4%, and the top breaks your limit. With 400 cases the range tightens enough to claim it. Four times the cases halves the uncertainty.

Write down three things per case: who labeled it, who confirmed it, and which failure it came from. A case nobody checked only measures agreement with whoever wrote it.

Support teams can build a strong set from closed tickets, as Evals for Support Teams shows. Sales teams can use won and lost deals, in Evals for Sales Teams. The full method is step 3 of Evals From Zero, and every guide is on the AI evals hub.

SOURCES

THE LONG VERSION

RELATED ANSWERS

If this was useful, The AI Product Transformation is where I share more of it.

One email every Monday with the week's best posts and what changed on the site.

Unsubscribe anytime. Read past issues.