How to tell whether your AI feature actually works.
Most AI features are tested the same way at first: someone tries a few prompts, the answers look good and the feature ships. Then real users arrive with questions nobody anticipated, a model update changes the tone of every answer, and the team discovers it has no way to say whether things got better or worse.
The fix isn't more manual testing. It's an evaluation set: a small, deliberate collection of examples that tells you, every time something changes, whether the feature still does its job.
What an evaluation set is
An evaluation set is a list of realistic inputs paired with what a good response looks like. For a support assistant, that might be fifty real customer questions with the facts a correct answer must include. For a document extractor, a hundred invoices with the fields you expect back.
Three rules make it useful:
- Use real inputs. Pull from logs, tickets and documents, not from what the team imagines users will ask.
- Include the hard cases. Ambiguous questions, messy scans and requests the feature should refuse.
- Keep it small enough to run often. Thirty to two hundred examples is plenty to start.
Three ways to score answers
Exact checks
Where the output is structured, such as extracted fields, classifications or tool calls, compare it directly with the expected result. These checks are cheap, fast and unambiguous.
Rubric grading
For free-text answers, write a short rubric: must mention X, must not promise Y, must cite a source. A second model can grade against the rubric at scale, but calibrate it first by comparing its grades with a person's on a sample. A grader nobody has checked is just another unverified model.
Human review
Some judgments stay human: tone for a sensitive audience, legal nuance, brand voice. Sample a handful of outputs each week and review them properly. It's slower, so spend it where it matters.
Run it on every change
An evaluation set earns its keep when it runs automatically. Every prompt edit, model upgrade or retrieval change should produce a score before it reaches users, the same way a test suite gates a code change. When a score drops, you know which examples broke and can decide whether the trade-off is acceptable.
If you can't measure a change, you aren't improving the feature. You're just changing it.
Keep measuring in production
Offline evaluations tell you whether a change is safe to ship. Production signals tell you whether the feature is helping: how often users accept or edit answers, how often they escalate to a person, and what each answer costs and how long it takes. Feed surprising production cases back into the evaluation set so it grows with the product.
Common traps
- An evaluation set so easy that every version scores 98 percent.
- Tuning prompts until they pass the set, which teaches the feature the test rather than the task.
- Letting the set go stale while the product and its users move on.
Start this week with thirty real examples and one score. It will tell you more than any demo.