Skip to content
Evaluation1 min read

An agent you can't measure is one you can't trust

The eval harness, not the model, is what got a production RAG system through a model migration and cut factual errors by about 60%.

A lot of AI demos get judged by feel. Someone asks a question, the answer looks right, everyone nods. That stops working once 100+ support agents are making decisions on the output. At that point "looks right" is a liability.

At Innovcentric I built a RAG system over 10,000+ pages of support documentation. The retrieval pipeline wasn't the hard part. The eval harness was, and it's the reason I could stand behind the system.

Why the harness comes first

A RAG answer can fail in ways a reviewer won't catch at a glance. It can be fluent and wrong. It can cite the right document for the wrong claim. It can drift when the model underneath changes. You can't read your way out of that at scale. You need something that scores every answer the same way, every time.

I built it on RAGAS, scoring faithfulness (is the answer grounded in what was retrieved?), relevance and hallucination. Every request was traced in LangSmith, so a bad answer pointed straight at the step that caused it.

The migration

The real test was a model migration. A new model is a silent behavior change: cheaper, faster, and different in ways you only find when a customer hits the edge case. Without evals, you migrate on faith and learn from bug reports.

With the harness, the migration was a measurement. I ran the same eval set against both models, compared faithfulness and hallucination side by side, and switched only when the numbers held. Drift monitoring kept watching afterward, and quality stayed flat.

Prompts are code

There were 50+ prompt templates, each with guardrails and prompt-injection defenses, all version-controlled and reviewed like code. Changing a prompt meant a diff, and every diff went through the evals before it shipped.

The result

Factual errors dropped by about 60%. Just as useful, I could say "about 60%" and show exactly where the number came from. Every other claim about the system rested on that.