Most generative AI projects are tested the way a demo is tested: someone tries a few prompts, the answers look right, and it ships. Then a prompt changes, a model version moves, or a new document lands in the knowledge base, and nobody can say whether the system got better or worse.
This is the approach we use on client projects to answer that question every time something changes.
Ordinary Tests Miss What Changes
Ask a database for every customer name and it returns the same list every time. A test for that is one line.
Ask a language model to pull every customer name out of a set of support call transcripts and it has to make calls. When an agent says “let’s say Joe Bloggs rings in”, is Joe Bloggs a customer? There is a right answer, but reaching it takes judgement, and the model may judge it differently tomorrow. That is the whole testing problem in one example.
Build A Gold Standard From Real Cases
Start with real questions from real users, not invented ones. Pull them from support tickets, sales calls and the pilot. For each one, have someone who knows the work write down the right answer, what it must contain and what it must never say.
A spreadsheet is fine. A few dozen well-chosen cases beat hundreds of generated ones, and the set becomes the most valuable thing in the project: a map of what good looks like for your business.
Score With Rules First, Then A Judge
Check what a rule can check: required facts present, banned phrases absent, citations pointing at real sources, the right format. Then use a second model as a judge for what rules cannot see, such as tone or whether the answer addressed the question.
Spot-check the judge against people. If your experts disagree with it on a case, it is not ready to grade that case.
Run It On Every Change
Prompts, model versions, retrieval settings and source documents are all code now. Moving to a cheaper model to save money is a change like any other: run the gold standard, compare the scores, and let a drop on a case that used to pass block the release until someone looks.
Watch It In Production
Tests catch what you thought of. Production shows you what you did not. Log inputs and outputs, sample them for review, and feed the failures back into the gold standard. That loop is the method.