In this note
Most owners test an AI system by trying it a few times and feeling reassured. Three good answers in a row prove very little. A language model can answer ten questions well and the eleventh badly. You need a method that catches the eleventh.
- 40
- real cases to start with
- 10
- awkward cases added on purpose
- 1 afternoon
- to build the first set
What a golden set is
A golden set is a list of real cases, each with the answer a careful person would give. It might hold forty customer messages with the correct reply, or thirty quotes with the correct price. Every time the system changes, you run the whole set and score the result.
A language model can answer ten questions well and the eleventh badly. You need a method that catches the eleventh.
How to build one in an afternoon
- Pull forty real cases from the last three months. Use the messy ones, not the tidy ones.
- Add ten awkward cases on purpose: a missing field, a rude message, a question in mixed English and Hindi, a request the business should refuse.
- Write the correct answer or the correct action beside each case. Have the person who knows the work do this.
- Mark which failures are serious. A wrong price is serious. A slightly stiff tone is not.
How to score it
Run the system on every case. Count the answers that are right, the answers that are wrong but harmless and the answers that are wrong and harmful. The third count is the one that decides whether you launch. Set a threshold before you look at results, so the number cannot be argued into passing.
Run it again after every change
Models are updated. Prompts are edited. Data changes. Any of these can break something that worked last week. The golden set is a regression test: the same questions, asked again, with a score you can compare.
Add every real failure
When the live system makes a mistake, add that case to the set. Over months the set becomes a record of everything that has ever gone wrong, and the system improves against it.
What a golden set cannot do
It cannot cover every case, and it cannot detect a problem nobody thought to include. It reduces risk. It does not remove it, which is why consequential actions still pass through a human approval step.
How many cases does a golden set need?
Start with fifty. A small set that mirrors real work beats a large set of invented cases. Grow it with every real failure.
Who should write the correct answers?
The person who currently does the task well. Their judgement is the standard the system is measured against.
Bring us one process.
A briefing is a conversation with a person who has seen how it usually breaks.