Evals — Evaluation

An evaluation is a set of test cases used to check, repeatably, whether an AI system answers as it should. Each case carries an input and a success criterion, and the whole set is re-run every time something changes: the prompt, the model or the documentation.

What is evaluation?

An evaluation is a set of test cases used to check, repeatably, whether an AI system answers as it should. Each case carries an input and a success criterion, and the whole set is re-run every time something changes: the prompt, the model or the documentation.

Also: evals · evaluations

Testing by hand is not evaluating

Typing four questions into the chat after a change and seeing whether it answers well is a check, not an evaluation. What makes it an evaluation is that it is always the same set, so results can be compared: without that you cannot tell whether the change improved anything or just moved the problem.

Why it matters

What changes in a SaaS

Because in an AI system any change can make worse things that already worked, and you cannot see that by looking. Adjusting the prompt to fix one answer and breaking ten others is normal without evaluations, and the worst part is that nobody finds out until a customer says so.

Primer plano de una placa de circuito

Evaluation in detail

  • Where the cases come from

    From your own conversations. The fifty most frequent questions, plus the cases that went wrong, plus the limits you want to protect — what it must not answer. Inventing generic cases gives you an evaluation that always passes and protects nothing.

  • What gets checked

    That the answer contains the right fact, that it does not contain what it must not, and that it escalates when it should. The third is the most forgotten and the most expensive when it fails.

  • When they are run

    Before every change that reaches customers. It is the same discipline as tests before a deploy, applied to something non-deterministic — which is why it needs it more.

Questions about evaluation

How many cases does an evaluation need?

Start with thirty or forty taken from your real conversations. That is enough to catch a regression and few enough that somebody will maintain them.

Can answers be evaluated automatically?

Partly. Checking that a specific fact appears, or that something forbidden does not, automates well. Judging whether an answer is well written still needs judgement, even when another model is used to score it.

Related terms

A term on its own is only half understood. These come up in the same conversation.

Try it without dropping what you use