Why LLM systems need test sets
What it is
Ordinary software is tested by checking that an input gives one exact output. That does not work here:
- the same input can produce different wording each time;
- many different answers are equally correct;
- a change that fixes one kind of question can quietly break another.
So quality is measured as a score across a set of examples, not as pass or fail on one.
Why it matters
Without a test set, every change is judged by trying a few questions and deciding it 'looks better'.
- That is how teams ship a prompt that improved the three questions they tried and worsened thirty they did not.
- A fixed set of examples, run before and after every change, turns opinion into a number that can be compared.
In the real world: A team that had argued for a week about which of two prompts was better settles it in an hour by running both on two hundred real questions.
Evaluating by demo. A handful of hand-picked questions always goes well, because they are the ones the builder had in mind. The value of a test set is in the cases nobody was thinking about.