Search

The book / Chapter 12

Testing Something That Won't Sit Still

You can't test AI once and sign it off, because it can answer differently tomorrow and the vendor can change it underneath you. Build an evaluation pack from your own real examples, set pass marks before you look at results, rerun it on every change, and keep measuring in production.

The short version

  1. You can’t test AI once: it varies run to run and changes under you.
  2. Build an evaluation pack from 100–500 real examples with pass marks set in advance.
  3. Rerun on every change and keep scoring production.

By the numbers

100–500real examples in a good test set

#1prompt injection's rank in the OWASP LLM Top 10

0times a single passing run proves an AI system works

01 The test that passed

The user acceptance test went beautifully. Twenty testers each asked the new HR policy assistant ten questions. Ninety-four percent of answers were rated "helpful." The project went live.

In week three, an employee asked how much parental leave she was entitled to. The assistant gave the number from a policy that had been replaced the year before. It was helpful, confident and wrong.

The test hadn't asked whether answers were correct. It asked whether they felt useful. And all two hundred test questions had been written by the project team, who knew which documents were current and phrased their questions accordingly.

Put it to work

Exercise 12: Evaluation pack. A complete evaluation pack for your first “do now” use case, run at least once before launch.

Open the template and steps Governance, risk & compliance hub