Now an official Claude Certified PartnerLearn more
← InsightsEngineeringMarch 18, 2026Updated November 19, 20264 min read

Evals before features: how we measure AI quality

If you cannot measure whether the AI got better, every prompt change is a guess. Eval harnesses are dull work, and they pay back more than any feature.

Traditional software has tests. Change the code, run the suite, know in minutes whether you broke something. AI systems lose that safety net the moment behavior depends on a model: outputs are probabilistic, “better” is fuzzy, and a prompt tweak that fixes one case quietly breaks five others.

Eval harnesses are dull work. They also pay back more than most features, because they turn AI iteration into something you can manage. This post is how we measure AI quality before we ship the next change.

The harness comes first

Before we build a feature on a model, we build the thing that judges it: a set of real inputs with reviewed expected outputs, scored automatically on every change. For extraction tasks the scoring can be exact. For generation it is a rubric, model-assisted grading spot-checked by humans, and hard checks on the things that must never happen.

This sounds like overhead until the first regression it catches. A team with an eval harness ships prompt and model changes daily with confidence. A team without one ships monthly and argues about whether anything improved.

We treat that harness as product infrastructure, the same way CI is infrastructure. Our notes on harness engineering go deeper on golden datasets, CI-integrated checks and LLM-as-judge scoring.

What belongs in the first eval set

Start from production reality, not from tidy examples:

  • Real user questions, tickets or documents, with answers a domain expert has reviewed
  • Hard cases and known failure modes, not only the happy path
  • “Must never happen” checks: leaking private data, inventing a price, skipping a required disclaimer
  • A small set of adversarial or out-of-scope inputs, so the system knows when to refuse

Fifty solid cases beat five hundred synthetic ones that do not match how people talk. Grow the set when production fails in a new way. Every failure that reaches a user should become an eval case.

Tie it to the business metric

Accuracy on a test set is a proxy. What we actually commit to is the business number it drives: claims processed per day, tickets resolved without escalation, search conversion, time to first-pass review.

Published examples on our case studies page only land when the eval and the KPI move together. Claims processing time dropped 40% in 90 days on a healthcare document pipeline. False-positive fraud flags dropped 52% for a digital lender. First-pass contract review ran three times faster for a mid-size firm. None of those is “the model felt better.” Each one is a number the business already cared about.

When the eval and the KPI disagree, believe the KPI and fix the eval. A harness that celebrates fluent wrong answers is worse than no harness.

How evals change the shipping cadence

With a harness in CI, a typical change looks like this:

  • Engineer updates a prompt, a retriever setting or a model version on a branch
  • The suite runs against the golden set and the “must never happen” checks
  • Regressions block the merge the same way a failing unit test would
  • Wins that move both the eval and a shadow KPI earn a staged rollout

That cadence pairs with loop engineering: the system can refine its own output, but only if something outside the loop can say whether the refinement helped. Evals are that outside voice.

For retrieval-heavy systems, score retrieval and generation separately. A wrong passage with a clean summary is not a writing problem. See RAG in production: what actually breaks.

Common mistakes we see

Three patterns waste the most time:

  • Judging quality by reading five cherry-picked outputs in Slack
  • Changing the prompt and the model in the same release, so you cannot tell which helped
  • Optimizing for fluent language while the business KPI stays flat

The cure is boring: one change at a time, scored on a fixed set, reported next to the KPI. If you want help standing that up inside your repo and CI, that is part of how we run data and MLOps foundations and custom AI builds.

What to bring to the first conversation

You do not need a polished eval suite to start. Bring one AI feature in production or in pilot, ten examples of good and bad outputs, and the business number you wish that feature moved. We can tell you in one call whether a harness is the bottleneck, or whether the bigger issue is retrieval, data access or product scope.

FAQ

Do we need LLM-as-judge from day one?

No. Start with exact checks and human-reviewed expected outputs. Add model-assisted grading when the volume of free-text answers makes human scoring too slow, and keep spot-checks.

How often should the golden set change?

Whenever production teaches you something new. Plan a review cadence, and always add cases from real failures.

Can evals slow us down?

They slow down bad changes. Teams with harnesses usually ship small AI changes faster, because debate moves from opinions to diffs on a score report.

Is this only for chatbots?

No. Classification, extraction, search ranking, document pipelines and agents all need a judged set of examples. The scoring method changes. The need does not.

Want this working in your stack?

Bring one AI feature and the business number it is supposed to move. On a free 15-minute call we will sketch the smallest harness that would let you change it safely. Book a discovery call. For related delivery options, see custom AI development.

Want this working in your stack?

Why AppUnik? Ask AI

Trusted by teams at

200+ projects delivered for 50+ clients