AIHow to evaluate a RAG system: metrics and regression tests
How to evaluate a RAG system: retrieval metrics, faithfulness and answer quality, building a test set, and regression evals that catch quality drops early.
Bilal Khursheed6 min read
AI service
Test sets, automated evals and guardrails so quality is measured, not guessed.
The problem
Most teams judge an AI feature by trying a few prompts and seeing if the answers look right. That works until a prompt change, a model update or a new kind of question breaks something nobody checked.
Without a test set you cannot tell whether a change made things better or worse. Quality drifts, and you hear about it from users.
Without guardrails, the feature will sooner or later answer something it should have refused, or leak something it should have protected.
Our approach
We agree with you what a correct, safe and useful answer looks like for this feature, in writing.
Real questions, edge cases and known failures are collected with expected answers, drawn from your data and logs.
Scoring runs on every prompt or model change, combining exact checks, model-graded checks and human review where judgement is needed.
Input and output checks, refusal rules and production monitoring catch what the tests did not predict.
Delivery process
Every engagement follows the same seven stages, from requirements to post-launch support.
Workshops with your stakeholders to define goals, users, scope and constraints, captured in clear written requirements.
User flows, wireframes and interface design, reviewed with you until the product feels right before it is built.
Data model, system design, integrations and security are settled, and the work is broken into sprints.
Short iterations with code review on every change and a demo of working software each week.
Manual and automated testing across functionality, devices, APIs and performance, followed by user acceptance testing.
Release through a CI/CD pipeline onto monitored cloud infrastructure, with a go-live checklist and rollback plan.
Close monitoring and priority fixes straight after launch, then ongoing support, maintenance and improvement.
Deliverables
Technology
Related work

AI / LegalTech
Client name withheld
Turns 500 to 1,000 page legal contracts into a queryable knowledge base that answers with cited sources.

AI business tooling
Client name withheld
A conversational AI advisor that asks targeted questions and returns recommendations across marketing, HR, finance, operations, strategy and IT.
From the blog
What we have written about llm evaluation & guardrails: cost, timelines and the trade-offs behind each decision.
AIHow to evaluate a RAG system: retrieval metrics, faithfulness and answer quality, building a test set, and regression evals that catch quality drops early.
Bilal Khursheed6 min read
AIHow to reduce LLM hallucinations: retrieval grounding, checked citations, schemas, 'not found' answers, evaluation and guardrails, and what each one fixes.
Bilal Khursheed8 min read
FAQ
A repeatable test for an AI feature. It runs a fixed set of inputs through the system and scores the outputs, so you can compare versions with numbers instead of impressions.
No. They can be reduced a great deal through grounding, citations, refusal behaviour and checks on the output. Evaluation tells you how often they still happen, which is what lets you decide if the feature is ready.
Yes. This is the most common case. We build the test set from your production logs and known complaints, then wire the evals into your release process.
Some checks add a little latency. We keep the fast, cheap checks in the request path and run the heavier ones in the background or on a sample.
Automated scoring covers most cases. For questions that need judgement, our QA and AI teams review a sample with someone from your side who knows the domain.

Share a short brief and we will reply with next steps, usually within one working day.