Skip to content

Insights — Data & AI

How we evaluate an LLM feature before it ships

Impressive demos prove very little. A short, repeatable evaluation turns 'it seems good' into something you can measure, compare and monitor.

It is easy to make a language model look good in a demo, because you choose the questions. It is much harder to know how it behaves on the ten thousand questions you did not choose. Before an LLM feature goes to real users, we want a way to say how good it is, and to notice when a change makes it worse. That needs a small amount of discipline and no special tooling.

Build a golden set first

A golden set is a collection of realistic inputs with a note on what a good answer looks like. Start with fifty to a hundred, taken from real requests where possible: support emails, search queries, forms people filled in. Include the awkward ones on purpose, such as vague questions, questions with two parts, questions the system should decline, and a few written in a hurry with typos. Have someone who knows the domain write the expected outcome, not a developer guessing.

Decide what 'good' means before you score

Different features need different measures. For a classifier, it is accuracy on each category, and which mistakes are expensive. For a summariser, it is whether the facts are right and whether anything important was dropped. For an assistant that looks things up, it is whether the answer is supported by the documents it cited. Write the criteria in a short checklist so two reviewers would score the same answer the same way.

Mix automatic checks with human review

Some checks are cheap to automate: is the output valid JSON, does it include a source, is it under the length limit, does it avoid forbidden phrases. Others need a person, at least at first. Using a second model as a judge can save time, but only after you have compared its scores with human ones on a sample and found that they agree often enough to trust.

  • Run the whole set every time the prompt, model or documents change
  • Keep the results, so you can compare this version with the last one
  • Look at the failures, not only the average
  • Add every real-world failure you find to the set

Plan for the model being wrong

A small illustration

Say we are building an assistant that answers staff questions about a leave policy. The golden set might hold sixty questions: simple ones like how many days of leave a new starter gets, awkward ones like what happens if a public holiday falls inside a leave period, and some the assistant should decline, such as a request to approve someone's leave. For each, the expected answer cites the relevant clause. We then score three things separately: whether the answer matches the policy, whether it cites the right section, and whether it declines when it should. A single overall score would hide which of those is failing.

Watch for drift

Models, documents and user behaviour all change after launch. A provider may update a model, a policy may be rewritten, and people may start asking things nobody anticipated. We keep a smaller version of the evaluation running on a schedule and look at the trend, so a slow decline is noticed before a user reports it. When it does slip, the stored results show what changed and when, which turns a vague complaint into something we can fix.

Be honest about what the numbers mean

An evaluation score is not a promise. A set of a hundred examples cannot cover everything, and a high score on easy questions says little about hard ones. We report results by category, show examples of failures alongside the percentages and say plainly what we have not tested. That keeps expectations realistic, and it makes the decision to launch, hold back or limit the feature a conversation about evidence.

Evaluation tells you how often the feature fails; design decides what that costs. We give every feature a way for a person to override or correct it, a visible indication of when the system is unsure, and a log of what it said and why. After launch, we sample real conversations on a schedule and feed the bad ones back into the set. The golden set is never finished; it is the memory of everything that has gone wrong so far, which is what makes the next change safer.

Keep reading

More notes.