Skip to main content

How to Evaluate a RAG Chatbot Before Launch

person Capital Compute
calendar_today December 4, 2026
How to Evaluate a RAG Chatbot Before Launch

A retrieval-augmented generation (RAG) chatbot can answer accurately on a familiar policy question and fail when a similar question points to an old document. Before launch, test the document search and the answer separately. A polished response is little help if it draws from the wrong edition or reveals a source the user should never have been able to find.

Use questions your users actually ask. Include outdated policies, questions with no approved answer and accounts with different access rights. Give document owners a way to review the evidence behind each result.

Quick Summary

  • Build a test set with expected sources, answers and reasons to decline.
  • Score retrieval and answer quality separately so failures point to a fix.
  • Test source permissions, document updates and answers without sufficient evidence.
  • Repeat the same evaluation set when the index, model or prompting changes.

Start with test questions and approved answers

Ask the people who maintain the source material to nominate common questions. Include ordinary phrasing, abbreviations, similar document names and queries that need more than one source. For each case, record the user role, approved document versions, the essential facts the answer should include and the behaviour you expect when the evidence is incomplete.

For an internal expenses assistant, a useful test might ask what can be claimed for travel booked overseas. The test record can identify the policy in force, a separate exception process and whether the chatbot should refer a question to finance. Add the same query for a user whose account cannot see the finance-only document.

Test search quality before assessing the answer

Check whether retrieval returns the documents or passages needed to answer each question. If a current policy appears below an outdated one, inspect document metadata, the text chunks used for indexing and how search results are ordered. Where a question needs information from two documents, test whether both reach the answer stage.

Use these distinct checks to diagnose failures.

CheckWhat a reviewer should record
RetrievalWhether the correct passages appeared among the results
GroundingWhether the supplied passages support the claims in the answer
CompletenessWhich expected facts, exceptions or dates the answer missed
CitationsWhether each source leads to the relevant evidence
RefusalWhether the system declined or escalated when the evidence was missing

Microsoft’s RAG evaluation guidance treats retrieval quality and response quality as separate parts of testing. Use a consistent rubric and keep source documents available for reviewer inspection. Microsoft Foundry RAG evaluators

Exercise permissions and document changes

Repeat sensitive questions with test accounts that have different roles. Check that restricted passages stay out of both the answer and its supporting results. Test a role change, a deleted policy and an updated version. Establish how long it takes for a content change to reach the index and which person owns that process.

An internal knowledge assistant needs a useful fallback. If there is a conflict between two policies, it can explain that it found conflicting guidance and point the user to the responsible team. A missing source can trigger a handoff instead of an invented answer. Define how the system should behave when the search service or model is unavailable as well.

Make the launch decision with evidence

Set release criteria by consequence. A wrong link in a help article and disclosure of restricted HR material need different responses. Ask for human review on higher-risk questions and retain reviewed examples so the team can check regressions during changes. Record response time and running cost for the same test set.

After launch, give users a simple way to flag an incorrect or outdated answer. Add confirmed failures to the evaluation set, with appropriate care for the source data. Before changing embeddings, retrieval logic or the model, rerun the suite against the candidate build and compare observed failures.

The first evidence to bring to a planning conversation is a small sample of questions, the documents that answer them and the access rules those documents follow. Generative AI development services for UK teams

FAQs

Frequently Asked Questions

Retrieval tests whether the search step found useful source material. Grounding tests whether the answer’s claims are supported by what the model received.
Cover the main question types, user roles and material failure modes. Start with a set your reviewers can score consistently, then extend it with confirmed failures and uncommon high-consequence cases.
Yes. Keeping a stable set makes changes easier to compare. Add new cases when requirements change, and record any test data updates so comparisons stay meaningful.

So, you have a project. We can take it to another level.

Schedule a meeting with us.

Get In Touch
Capital ComputeGITEX EXPO
8-11 DECEMBER 2026EXPO CITY DUBAI
We’re exhibiting

Meet us atGITEX GLOBAL 2026.

Let’s talk AI-native engineering, agentic products and what’s next in technology.

8-11 December 2026Dubai Exhibition Centre, Expo City Dubai

India PavilionStand H37-B35.10

Book a meeting