Testing a knowledge assistant before launch: a practical guide
How to test an AI knowledge assistant before launch: golden questions, questions it should refuse, separate retrieval and answer scores, and regression tests.
Westerwick5 min read

On this page
Before a knowledge assistant goes in front of staff or customers, someone has to answer a plain question: is it good enough? Testing a knowledge assistant before launch means turning that question into something you can measure, and then measuring it again every time the documents or the model change.
A knowledge assistant here means an AI that answers questions from your own documents, a pattern known as retrieval-augmented generation (RAG). It has two halves: finding the right passage, then writing an answer from it. Both can fail, and they fail differently.
Why "it looked fine in the demo" isn't a test
A few familiar questions can't establish that an assistant is ready to launch. That's a demo, not a test. It doesn't tell you how the assistant handles the awkward questions real users ask, and it can't tell you whether next month's document update made things worse.
What you need is a written set of questions with known good answers, a way to score the assistant against them, and the discipline to rerun it. None of this is exotic, and managed tools now do much of the scoring.
Testing a knowledge assistant with golden questions
A golden question has three parts:
- A real question, ideally taken from the people who'll use the assistant: support emails, help-desk tickets, questions new staff ask.
- The expected answer, written by someone who knows the subject.
- The expected source: which document, and ideally which section, the answer should come from.
We recommend recording the expected source, because it helps diagnose failures: if you know where the answer lives, you can tell whether a wrong answer came from bad retrieval or from bad writing.
We recommend prioritising representative questions over a large generic test set. Tag each one by type, such as everyday, high-stakes or should-refuse, so you can read results by category. A good overall score can hide poor results on the questions that matter most.
Some scoring needs these expected answers. Amazon Bedrock's "context coverage" metric, for example, says plainly: "You must supply a ground truth in your prompt dataset to use this metric"1.
Include the questions it should refuse
A safe assistant says "I don't know" when the documents don't contain the answer. That behaviour needs testing as deliberately as correct answers do.
Add questions that are out of scope, questions your documents can't answer, and questions with a false premise. Then check that the assistant declines rather than invents. Bedrock's evaluation metrics include a "Refusal" measure, described as how "evasive the responses are in answering questions"1. On should-refuse questions you want a high refusal rate; on everyday questions, a low one.
We cover how to design for this in building a Q&A assistant that knows when to abstain. This piece is about proving it works.
Measure retrieval and answers separately
Amazon Bedrock offers two kinds of RAG evaluation job, "retrieve only and retrieve and generate"1, which match the two halves of the pipeline.
Retrieval asks whether the system found the right text. Context relevance "measures how contextually relevant the retrieved texts are to the questions", and context coverage measures how much of the expected information the retrieved text contains1.
Answers ask whether the response used that text well. Bedrock's metrics include correctness, completeness and faithfulness, which "measures how well responses avoid hallucination with respect to the retrieved texts"1. Citation precision "measures how many of the cited passages were correctly cited"1.
Why separate them? The research behind these metrics makes the point. The Ragas paper defines faithfulness as an answer being "grounded in the given context"3. An answer can be perfectly faithful to the wrong passage. If you only score faithfulness, that confident wrong answer looks fine. If you also score retrieval against your expected sources, it shows up. We explain why retrieval deserves the attention in why retrieval quality matters more than model size.
You don't have to host the assistant on Bedrock to use these tools. Since general availability, AWS says you can evaluate a RAG system "whether running on Amazon Bedrock, other cloud providers, or on premises" by supplying its responses in the required format2.
Trust the scores, but check the judge
These scores are produced by another AI model acting as a judge. That's practical, but it has limits.
Research on AI judges found strong models "achieving over 80% agreement, the same level of agreement between humans", while also documenting "position bias, verbosity bias, self-enhancement bias, and limited reasoning ability"4. In the Ragas study, the automated method's agreement with human annotators, measured in pairwise comparisons in that study, was 95% for faithfulness but 70% for context relevance, which the authors "found to be the hardest quality dimension to evaluate"3.
Based on that evidence, we'd read context-relevance scores with more caution than faithfulness scores, and have a person review a sample of results, especially the low scorers and the high-stakes questions.
Regression testing when documents or models change
A test set earns its keep after launch. Rerun it whenever:
- documents are added, replaced or removed;
- you change the model, or the provider updates it;
- you change prompts, chunking (how documents are split for search) or search settings.
Compare results by category, not just the overall average. A drop on high-stakes or should-refuse questions should block the change until someone understands why. Keep the test set under version control alongside the assistant's configuration, so you can see what changed and when.
Doing this from South Africa
AWS says Bedrock Knowledge Bases and Guardrails can be used from the Africa (Cape Town) Region through global cross-Region inference, with "your Amazon CloudWatch and AWS CloudTrail logs" kept in Cape Town5. Inference requests themselves may be processed in other Regions.
Remember that a test set built from real user questions can contain personal information. Treat it like any other dataset under POPIA, strip names and account numbers where you can, and take professional advice on where processing may happen. AWS's own guidance is to evaluate the approach against "the Protection of Personal Information Act (POPIA)" with your legal and compliance teams5.
What to do next
- Collect a representative set of real questions from support tickets and staff, and write an expected answer and source for each.
- Add a block of questions the assistant should refuse, and tag every question by type.
- Run a retrieval-only test and a full answer test, and read them separately, by category.
- Have a person check a sample of results, starting with the lowest scores and the high-stakes questions.
- Rerun the same test set on every document, model or prompt change, and treat a drop on critical questions as a release blocker.
Sources
- 1.Use metrics to understand RAG system performanceAmazon Web Services
- 2.Evaluate models or RAG systems using Amazon Bedrock Evaluations – Now generally availableAmazon Web Services · 4 April 2025
- 3.Ragas: Automated Evaluation of Retrieval Augmented GenerationarXiv (Es, James, Espinosa-Anke, Schockaert)
- 4.Judging LLM-as-a-Judge with MT-Bench and Chatbot ArenaarXiv (Zheng et al.)
- 5.Scale AI in South Africa using Amazon Bedrock global cross-Region inference with Anthropic Claude 4.5 modelsAmazon Web Services · 30 January 2026


