All posts

"Building your first golden set: 30 examples beat zero"

Most eval projects stall at the empty dataset, not the scoring harness. Thirty well-chosen examples from real traffic beat zero by an enormous margin. How to harvest them, label them, and make sure the ugly cases are in.

Evals4 min read24 July 2026by Ahmed
"Building your first golden set: 30 examples beat zero"

Most eval projects don't die at the scoring harness. They die at the empty dataset. The team agrees the AI feature needs tests, someone builds a runner in an afternoon, and then the real question lands: where do the test cases come from? Nobody owns the answer, a ticket called "build a proper benchmark" goes on the backlog, and six months later prompt changes are still shipping unchecked.

The blocker is usually a belief that a legitimate golden set means hundreds of examples and a formal labelling project. It doesn't. Thirty well-chosen examples beat zero by an enormous margin, and the gap between thirty and three hundred is much smaller than the gap between thirty and nothing. Thirty examples will catch the prompt edit that breaks a whole category of input, the model swap that mangles your output format, the "harmless" clarification that changes behaviour on everything. What thirty examples won't do is detect a two per cent shift in accuracy, and at this stage you don't need them to.

Start with production traffic, not with examples you write yourself. Inputs you invent are too clean: they test the system you imagined, not the one you have. Real traffic carries the formatting quirks, the ambiguity and the outright mess that actually breaks things. If you're logging inputs, through Langfuse, PostHog, or your own trace store, pull a hundred recent ones. If you aren't logging inputs, that is the first job, because you can't build evals for a system you can't see. Strip personal data as you export, and check you're actually permitted to retain what you keep.

"Building your first golden set: 30 examples beat zero"

From that hundred, pick around thirty, but not at random. Weight towards the ugly. A sensible split is roughly two-thirds common cases and one-third deliberately horrible: the scanned document photographed at an angle, the email that is three forwarded threads deep, the input in the wrong language, the record with half its fields missing. A golden set built only from easy examples produces a comfortingly green dashboard and no protection, because the easy cases were never the ones failing.

Then label them: for each input, a human writes down the output the system should produce. Do the first pass yourself rather than delegating it. Labelling is where you discover that "correct" is less obvious than you assumed, is the invoice date the issue date or the due date? Does a missing VAT number mean null or empty string? Every one of those decisions goes into a short labelling guide, and that guide turns out to be half the value of the exercise, because most of those ambiguities are also unresolved in your prompt. Keep the labels exact or binary, the correct output, or pass/fail against a written bar. Practitioners have converged hard on this point: 1-to-10 quality scores drift between annotators and between weeks, and a set labelled with them stops being comparable to itself.

If you can, have a second person independently label ten of the thirty and compare. Where you disagree, one of two things is true: the task is underspecified, or the example is genuinely hard. Both are worth knowing before you start judging a model against labels you can't agree on yourselves.

Commit the set to the repository next to the code, JSON or YAML files, one per example, reviewed like code. A label change should show up as a diff that somebody approves. Golden sets that live in a spreadsheet drift: labels get "fixed" to make a run pass, nobody remembers why, and the set quietly stops meaning anything.

What you get in the first week is modest and real. Every prompt change gets re-run against all thirty examples, and you see a per-example diff: which cases changed, in which fields, in which direction. That single artefact converts arguments about whether a change "feels better" into a list of named cases somebody can actually look at.

And the set doesn't stay at thirty. Adopt one rule from day one: every production failure becomes a golden example before its fix ships. The set then grows precisely where your system hurts, which is the only growth pattern that matters. The practitioner guidance that has settled over the past couple of years, Hamel Husain's evals FAQ at hamel.dev is the reference I point teams to, says to be reviewing a hundred or more real traces once the habit is established. That's where the set goes, not where it starts. Thirty is the smallest set that starts the flywheel, and it's deliberately small enough that a two-person team can build it without asking anyone's permission.

Building golden sets, labelling guides and the eval harness around them is the work I do for teams shipping AI features. If you're staring at the empty dataset, get in touch via the contact form.

Senior engineering roles — or production AI consulting?

I'm open to senior AI and software engineering roles and to selective consulting on agents, RAG, and LLM automation in production. If this post resonates — as a hiring manager or as someone shipping similar work — get in touch.

Get in touch

© 2026 Ahmed Fareed. All rights reserved.

LOADING