Insights
How to Measure an AI Agent on Your Own Data
Every AI vendor has a good number. It was measured on someone else's cases, by someone else's idea of right. Before an agent touches your workflow, you need a number of your own: how often it gets your cases right, how it fails when it doesn't, and whether that's good enough for the person who has to sign.
None of this needs a data science team. It needs your closed cases, a few of your best reviewers and an agreement, made before anyone sees results, about what counts as good enough. Here's how we run it.
1. Write down what “right” means
Start with the output, not the model. For each thing the agent produces, decide what correct looks like and how you'd check it. A KYC extraction is right field by field. A medical code is right only if it's the exact code, valid on the date of service. A SAR narrative is right if it's complete, factual and in the regulator's structure. A fraud alert summary is right if every line is supported by the record it cites.
Then rank the mistakes. A typo in a closure note and a wrong figure in a credit memo aren't the same error, and one average score hides the difference. Name the errors that are unacceptable at any rate, so they get their own count.
2. Build the test set from your own closed cases
The best test data is work your team has already finished: alerts closed, charts coded, memos approved. It has real inputs and a known answer. Sample it so it looks like your actual workload, then add the hard parts on purpose: rare case types, messy scans, incomplete files and the cases your team argued about.
Keep it apart. Any case used to fine-tune or tune prompts can't also be used to grade the result, or the score only shows the agent remembers its homework. Set the test cases aside first, before any building starts.
3. Measure your people first
Give a slice of the test set to two of your own reviewers, separately, and see how often they agree. That's the ceiling. If your experts agree on a judgment call only most of the time, an agent can't be held to perfect agreement with either of them, and the cases they split on usually point to a rule nobody wrote down.
Time the current process too. Without a baseline for how long a case takes today and how often it's reworked, “faster” and “better” are opinions.
4. Score the result and the route
An agent does more than answer. It looks things up, calls tools and passes work between steps. Check the final output against the known answer, and check the path: did it read the right records, use the right tools, stay inside its permissions and stop at the gate? An agent that reaches the right answer by reading the wrong customer's file has a problem the final score won't show.
5. Count what it declines, not only what it gets wrong
A good agent says when it isn't sure: a low-confidence field sent to an analyst, a missing document flagged at the top of a draft. Measure two things. How often it hands work back, because too much defeats the point. And how often it was confident and wrong, because that's the error a busy reviewer is most likely to miss.
6. Use automatic graders, but check them
Anything exact should be checked by rules: a field matches, a code exists in the current code set, a figure matches the source cell. For prose, such as a narrative's completeness or tone, teams often use a second model as a grader. That works only once it's been compared with your reviewers on the same cases and agrees with them about as well as they agree with each other.
Grader models have known habits. They tend to favour longer answers, the first option shown and outputs that sound like their own. Shuffle the order, keep the scoring criteria narrow and concrete, and re-check the grader whenever its model or instructions change.
7. Run it more than once
The same agent can give different answers to the same case on different runs. Run the test set several times and report the spread as well as the average. If a case passes on one run and fails on the next, treat it as a failure until you know why.
8. Set the gates before go-live, then keep measuring
Agree the bar with the person who owns the risk, in writing, before the results come in: the minimum accuracy, the critical errors that must be zero, and what happens below the line. Then start with a person signing every output. Their edits become the live score: how often they change a draft, what they change and how often they override it.
Keep running the original test set on every new model version, prompt change and policy update, so a quiet regression gets caught before a reviewer finds it. A gate comes off only when the evidence says it should, not because the pilot felt good.
Keep the evidence
The test set, the scoring rules, every result and the version of each component should be stored together. That bundle answers the questions model risk, internal audit and regulators ask. In India, for example, the RBI's FREE-AI report calls for validation and ongoing oversight of AI models at banks and NBFCs. A score nobody can reproduce won't satisfy that.
It's also how to read the numbers on our use-case pages. The 90%+ for medical coding means accuracy on held-out charts from your own records, and the 95%+ for KYC extraction means the same on your own documents. Neither is a lab benchmark.
A checklist for your next AI pilot
- Is “correct” written down for every output, with critical errors named?
- Is the test set built from your own closed cases, including the hard ones, and kept out of training?
- Do you know how often your own reviewers agree, and how long the work takes today?
- Are both the final output and the agent's steps being checked?
- Are confident-and-wrong answers counted separately?
- Has any automatic grader been checked against your reviewers?
- Was the bar for go-live agreed before the results came in?
- Will the same tests run again on every change after launch?
If a vendor can't say yes to most of these, their score describes their data, not yours. For how this fits into a full build, see how we work, or our view on when a general assistant is enough.