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
- You can’t test AI once: it varies run to run and changes under you.
- Build an evaluation pack from 100–500 real examples with pass marks set in advance.
- 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.
The rest of this chapter is for Pro members
Keep reading with Pro, C$10 a month.
You’ve read the first section. Pro opens every chapter of the book, the PDF of the print edition, and every guide in the library.
- 02 Why AI testing is different
- 03 The evaluation pack
- 04 Adversarial testing
- 05 What to measure
- 06 Testing never ends
- Sources
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