Skip to content

Available to Q1 2027

AI Quality

An evaluation framework that tells you whether an AI agent is right

AI agents were trusted with customer queries, but “it seems fine” was the only test. I built an evaluation framework with written rubrics, a solved reference answer per test case and a scored regression run on every model release. Agents were iterated against it until performance was reliable.

By Mayank Khanvilkar, AI Automation Engineer & Consultant · Last updated

What problem did it solve?

Nobody could prove an AI agent’s answers were correct, and every model update was a gamble.

Who was it for, and what was going wrong?

AI agents were being trusted with customer queries and business tasks, but “it seems fine” was the only test.

What was built?

  1. A written rubric for each task, defining exactly what a correct result looks like and which sources it must come from.
  2. A solved reference answer for every test case.
  3. A scored regression run against every new model release, so improvements and regressions show up immediately.
  4. Test cases calibrated across several models, adjusting ambiguity and the number of steps until failures pointed to real weaknesses rather than random noise, while every task stayed objectively gradable.

How it works

AI step

My role

I designed the evaluation method: the rubrics, the reference answers and the scored regression runs, and tested agents against them until performance was reliable.

How I tested it

  • A written definition of “correct” for each task, with a reference answer for every test case.
  • A test set built from real inputs and edge cases, including safety cases: emergencies, consent and out-of-scope questions.
  • A scored regression run whenever a prompt or model changes, so a regression shows up before users see it.
  • Prompts and configurations versioned, so any change can be traced and rolled back.
  • In production: transcripts spot-checked, with the human-handover rate, cost and response time tracked.

What was the result?

Agents were iterated against these criteria until performance was reliable. Every model or prompt change is now measured against the same tests before release, so a regression is caught by the test run instead of by a customer.

What was the trade-off?

Writing rubrics and reference answers takes real time up front. It’s the only way to know an agent is right, rather than hope.

Tools used

  • Claude
  • OpenAI
  • Gemini
  • Custom scoring rubrics

Related

Have a similar problem? Book a complimentary consultation call.

30 minutes, no obligation. You leave with at least one idea you can use straight away, whether we work together or not.

Book a consultation call

Let’s connect

I am available for the remainder of Q4 2026 and all of Q1 2027.

India · Ireland · Working worldwide