The problem: your RAG pilot looks good, but can you trust it?
You may have a retrieval-augmented generation (RAG) pilot running. RAG means the AI looks up your documents before it answers. The demo works. Now your board asks a fair question: is it good enough to put in front of staff and customers?
Most teams cannot answer that with evidence. They test a few questions by hand and move on. That is how pilots stall. This post shows how to measure a RAG system in two parts, so you can decide with facts.
What RAG is, and what to measure
A RAG system has two parts. The first is retrieval, which finds the right passages in your documents. The second is generation, where the AI writes an answer from those passages.
Each part can fail on its own. If retrieval brings back the wrong passage, even a strong AI model will give a wrong answer. If retrieval is right but the AI writes carelessly, the answer is still wrong. So you test each part separately.
One example from our work: RAG search for a national statistics ministry: questions in Hindi, English and Kannada, by voice or text, with citations that link to the exact source page. 490+ legacy statistical tables indexed and queryable in plain language.
Why it is hard in production, not just in a demo
In a demo, someone picks easy questions. In production, people ask vague, messy and unexpected questions. Documents are old, duplicated or badly scanned. Different teams use different words for the same thing.
Production also adds limits a demo never faces. Answers must be fast. Costs must stay in check as usage grows. Access rules must be respected, so a person sees only what they are allowed to see. A system that scores well on ten hand-picked questions can still fail here.
How to evaluate the retrieval part
Start with three simple measures:
- Precision: of the passages the system found, how many were actually useful?
- Recall: of all the useful passages that exist, how many did the system find?
- Latency: how long does a person wait for the answer?
Precision and recall pull against each other. Fetch more passages and recall goes up, but precision often drops. Your team should choose the balance that fits the workflow. A legal lookup needs high recall. A quick helpdesk answer may need speed first.
How to evaluate the answer part
Next, check the written answers. Ask three questions of each one:
- Is it correct, based on the source passage?
- Does it stay on the question that was asked?
- Does it say so when the documents do not contain the answer?
The last point matters most. A trusted system says “I could not find this” instead of guessing. Citations help here. When every answer links to its source page, a reviewer can check it in seconds.
Using made-up test questions
You need many test questions, and writing them by hand is slow. One option is synthetic data. Here, a model reads your documents and writes realistic question-and-answer pairs. You then run these pairs against your system and score the results.
This gives you a large, repeatable test set quickly. It also avoids copying real customer or employee data into test files. Treat it as a starting point. Ask your domain experts to review a sample of the questions, and add real questions from users once the system is live.
How we approach it
We are forward-deployed engineers. That means we work inside your team, not at a distance. We start with the workflow, not the tool. We ask who will use the answers, what a wrong answer costs them, and what “good enough” means for that group.
Then we build the test set together with your experts, and we run it every time the system changes. This turns evaluation into a habit, not a one-off check. Your team sees the scores, understands them, and owns them. You can read how each phase works on our process page.
At the end, we hand over the system, the test set and the know-how. Your engineers can then keep improving it without us. For the build itself, see our work on RAG systems.
What this means for enterprise teams running AI in production
Evaluation does not end at launch. Documents change, users ask new things, and models get updated. Any of these can quietly lower quality. Run your test set on a schedule, watch the scores on a simple dashboard, and decide in advance what happens when scores drop. Low-confidence answers can go to a human reviewer. Each team can have an on/off switch. These controls are what let a business leader sign off with confidence.
If your data must stay inside your own environment, plan for that early. Running models on your own servers changes cost, speed and setup. We cover this in our work on on-premise LLM deployment. Check any legal questions about data location with your own legal and security teams.
Checklist before you go live
- Test retrieval and answers separately.
- Track precision, recall and latency on a fixed test set.
- Check that the system says so when it does not know.
- Show a source link with every answer.
- Re-run the tests after every change, and name an owner for the scores.
FAQ
Why test retrieval and answers separately?
When a wrong answer appears, you need to know which part failed. Separate tests show you where to fix it.
Can made-up test data replace real questions?
No. It is a fast way to start. Real user questions should be added over time.
Who should own evaluation?
Your team. We help set it up and hand it over, so you keep control.
Next step
If your team has a RAG system in pilot but not in production, book a discovery call.
Saksham Gupta
Founder & CEO, EduBildSaksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.



