A demo that works on five hand-picked examples proves very little. The real question is what happens on the thousandth case, written by a customer in a hurry, on a bad scan, in the middle of month-end. Teams that skip proper testing find out in production, in front of their users.
Testing AI is different from testing ordinary software. Normal code gives the same answer every time, so a test either passes or fails. AI systems produce probable answers, so you measure how often they are right, how they fail, and whether you can catch the failures. Here is the checklist we use before anything goes live.
1. Build a test set from real cases
Everything starts with a set of real examples where you already know the right answer:
- Use real data, not invented examples. Past orders, real customer questions, actual applications.
- Aim for 50 to 200 cases for a first version, and include the awkward ones: bad scans, unusual formats, ambiguous questions.
- Write the expected answer for each case before you look at what the system produces, so you don't grade on a curve.
- Keep it separate. The test set must never be used to tune prompts or train the model, or your scores will look better than reality.
If you can't build this set, that is a finding in itself: the process may not be ready for AI yet. We cover that in Everyone wants AI. Few are ready for it.
2. Choose metrics that match the job
"Accuracy" alone hides too much. Pick measures that match what the system does:
| System | What to measure |
|---|---|
| Document reading | Field-level accuracy: every value checked against the source |
| Chatbots and RAG | Answer correctness, and whether each answer cites the right source |
| Classification and scoring | Precision and recall, not just accuracy |
| Agents | Task completion, and how often they correctly hand off to a person |
Precision and recall matter whenever the classes are uneven. A fraud model that flags nothing can still be 95% "accurate" if 95% of applications are genuine. Recall tells you how much fraud it actually catches; precision tells you how many good customers it wrongly flags.
3. Look at the failures, one by one
Scores tell you how often the system fails. Reading the failures tells you why. Sort the wrong answers into groups:
- the input was unreadable or incomplete
- the system found the wrong source
- the answer was right but badly formatted
- the system was confidently wrong
The last group is the dangerous one. A system that says "I'm not sure" is safe to deploy with a human check; a system that is confidently wrong is not.
The goal is not a perfect model. It is a system whose mistakes are caught before they cost anything.
4. Test the whole system, not just the model
Most production problems come from around the model, not the model itself:
- Edge inputs: empty files, huge files, other languages, scanned images
- Speed and cost: response time and cost per request at realistic volume
- Security: users trying to make the system ignore its instructions, or reveal data they shouldn't see
- Integration: what happens when the ERP, CRM or database it relies on is slow or down
5. Decide where people stay in the loop
Before launch, decide which cases go straight through and which need a person. Use the test results to set the line: high-confidence, low-risk cases can be automated; anything uncertain or expensive goes to review.
Our fraud scoring case study shows why this matters. In a client-reported proof of concept on 394 online applications, the fraud rate fell from 48% before AI to 3% with AI scoring alone, and to 0% once human review closed the last gap. Nobody was auto-declined; reviewers decided the uncertain cases.
6. Keep testing after launch
A system that passed testing in December can drift by March. Customers phrase things differently, suppliers change their documents, policies get updated. Keep a few habits:
- Log inputs, outputs and the sources used, so any answer can be traced
- Sample and review a share of live cases every week
- Add every real failure to the test set, then re-run the full set before each change
- Recompute key figures independently before they are released, as in our data agent case, where every figure is recomputed before release
A short pre-launch checklist
- A separate test set of real cases with known answers
- Metrics that fit the task, including precision and recall where it matters
- Every failure reviewed and grouped
- Edge cases, speed, cost and security tested
- Clear rules for when a person reviews
- Logging and weekly review planned for after launch
None of this is glamorous, but it is the difference between an AI pilot that impresses in a meeting and a system people trust with real work. If you are planning a build, we can help you set up the test set and metrics first. Talk to us.
Want this in your business?
Planning an AI build? We start every project by testing on your own sample data.
Talk to us


