Inveniq
All articles

How to know whether your AI system actually works

Evaluation

Almost every AI system looks good in a demo, because the demo runs the examples that were tried while the system was built. The problems live in the tail: the requests nobody thought of, and the documents missing a field.

The question is not whether the system can do the task, but how often it does not, and what happens the next time somebody edits a prompt.

3 questions an evaluation has to answer

  1. How often is the answer right, measured on something other than gut feeling?
  2. When it is wrong, is it wrong in a way the user notices, or in a way that looks right?
  3. Did it get better or worse than the previous version?

The third matters most and is missing most often. Without it every change is a gamble, and teams that cannot answer it stop changing anything.

The loop

Dataset, run, metrics, threshold, and back to the datasetDatasetRunMetricsThreshold
Evaluation is not a final step. It is the loop development runs around.

What makes the loop worth anything is the dashed line back. Every failure you find in production goes into the dataset. After six months it describes precisely what your system has been bad at.

Start with 30 examples

Evaluation usually does not happen because people believe it needs a thousand labelled examples. 30 chosen because they are hard say more than a thousand random ones.

Assemble them before you build, so they describe the task rather than the solution. Include the boring ones: empty input, wrong language, questions the system is not supposed to answer.

Choose the method by what the failure costs

Type of taskHow to measureWhat it takes
One right answerExact match against a known answerAlmost nothing
The answer is proseA model scores it against a reference answerReference answers written once
The failure is expensiveSampled human reviewA few hours a week from domain experts

The second row carries two caveats. A judge from the same model family tends to like its own style, and a judge without a reference assesses whether the response looks sensible, not whether it is true. Hence the reference answer.

Set a threshold and let it block

An evaluation that only produces a report is a report. The value arrives when it can say no.

The rule can be as simple as this: if accuracy drops more than 2 percentage points from the previous run, the change does not ship. The margin is deliberate, because a threshold with no slack blocks on noise until somebody turns it off.

Put the in the same rule. An average of 2 seconds can hide every twentieth user waiting fifteen, and it is the twentieth user who calls.

What this makes possible

The point is not a number for the board. It is that you can change things: switch model, rewrite a prompt, cut a step, without wondering whether you just broke something. Teams that can measure dare to optimise. Teams that cannot pay for it every month.

2 min readLast updated

The goal is a business better equipped to make decisions

Not just solving today's challenges, but making the business better equipped to make decisions in a technology landscape that changes faster than ever. That's what we build.

Get in touch