← Back to Blog

How to Evaluate a RAG Knowledge Assistant Before Launch

Nov 23, 2026
AI RAG Software Quality

Before launching a knowledge assistant, test whether it finds the right evidence, answers the actual question, and respects the user's access. Use realistic questions with reviewed expected outcomes, then inspect failures at each stage. A fluent response with a source link is only the beginning of that assessment.

Retrieval-augmented generation, or RAG, combines search with a language model. The application retrieves relevant material and supplies it as context for an answer, as described in Microsoft's RAG overview. That architecture still needs evaluation: the source can be stale, retrieval can miss a crucial passage, and the generated answer can misrepresent what it received.

For a team exploring AI-oriented software, a useful pilot delivers evidence about one defined task. Here is a practical way to evaluate a read-only assistant that answers questions from an approved internal knowledge base.

Give the assistant a task that can be judged

Consider a hypothetical assistant for an operations handbook. An employee asks, “How do I request access to the staging environment?” The approved procedure identifies the request channel, the required information, and the person responsible for approval.

Write the expected outcome before testing the assistant. An acceptable answer should explain those steps, identify the current procedure, and avoid suggesting that the assistant has granted access. If a required detail is missing from the available material, the response should identify that gap and direct the user to the appropriate owner.

Have the handbook owner review this expectation. Developers can check the retrieval trace, while the owner can judge whether the answer would lead an employee through the correct process.

Build questions that expose different failure modes

Create a test set from questions the intended users actually ask, using material the team is permitted to evaluate. Include a mix of cases:

  • A straightforward question supported by one current procedure.
  • The same request expressed with an acronym or unfamiliar wording.
  • An ambiguous question that requires clarification.
  • A request whose answer is absent from the approved knowledge base.
  • A question for which an obsolete document conflicts with the current procedure.
  • A request for information outside the test user's permission scope.

For each case, store the question, user role, expected source version, required answer points, and acceptable fallback. Record why the case exists. That explanation helps future reviewers distinguish a necessary change in policy from an accidental regression.

Keep a separate set of questions for checking changes after tuning. Repeatedly changing prompts to satisfy the same small collection can give an incomplete picture of how the assistant handles unfamiliar requests.

Examine retrieval before changing the answer prompt

Inspect the passages returned for each test question before grading the final response. Are they relevant? Do they contain the information needed to answer? Did permissions or indexing rules exclude a document that should have been available?

Microsoft's RAG evaluator guidance distinguishes retrieval evaluation from evaluation of the generated response. This distinction gives the team a practical debugging path.

In the staging-access example, finding a page that mentions the environment is insufficient if the retrieved passage omits the approval step. Check document ingestion, chunk boundaries, search settings, and filtering before assuming a different generation prompt will solve the omission.

Retain permitted source identifiers and passage references alongside the test result. A failure report becomes much more useful when it shows whether the necessary evidence reached the model.

Grade the answer and its citations separately

An answer can accurately repeat a retrieved passage while leaving part of the user's question unanswered. It can also supply a correct-looking instruction that the cited passage does not support.

Amazon Bedrock's RAG evaluation metrics separate concerns including correctness, completeness, faithfulness, and citation quality. Use similarly distinct questions in your review rubric: Does the answer resolve the request? Does it include required details? Can its substantive claims be supported by the supplied material?

Open the citations during review. Confirm that the reference leads to the intended document version and that the relevant passage supports the associated claim. For the example answer, a link to a general onboarding page does not establish who approves staging access.

Also check whether the source itself remains authoritative. A faithful summary of a retired procedure can still give an employee the wrong instructions. The content owner should define how effective dates, replacements, and unresolved conflicts are handled in this knowledge base.

Exercise access controls and untrusted content

Run permission tests with separate identities and synthetic restricted material. Confirm that an unauthorized user cannot retrieve a protected passage or receive an answer cached for a more privileged user. Repeat a relevant query after access is revoked.

OWASP's RAG Security Cheat Sheet recommends enforcing access at retrieval time and treating retrieved content as data rather than trusted instructions. These controls belong in the application and retrieval pipeline; the model should not be the permission gate.

In an isolated test corpus, include a document containing an instruction that conflicts with the assistant's intended task. Check that the system continues to follow its application rules and does not expose restricted information. Keep the test contained to approved sources and identities.

Exercise unavailable retrieval and permission-check failures too. The interface should explain when it cannot provide a supported answer. Record those failures separately from ordinary unanswered questions so operators can investigate the underlying service problem.

Calibrate automated grading with people who know the material

Automated evaluation can help compare many responses, but its rubric needs review. OpenAI's evaluation best practices recommend calibrating automated scoring against human judgments and note potential judge biases, including preferences for longer responses or response order.

Give reviewers examples of acceptable, incomplete, and unsupported answers. Ask them to identify the missing or incorrect point, then compare those decisions with the automated grader. Investigate disagreements before treating its scores as a release signal.

Microsoft's end-to-end RAG evaluation guidance also notes that language-model outputs are nondeterministic. Repeat important cases and inspect the variation. A single successful response does not describe the full behavior of the system under test.

Keep critical failures visible alongside summary scores. An answer that discloses restricted material needs its own decision even if ordinary handbook questions receive favorable grades. Agree the release criteria with the workflow owner before examining the final results.

Make the pilot result reproducible

Record the source snapshot, index configuration, model version, prompt, evaluation questions, rubric, and reviewer decisions for each candidate. When a change improves one category but weakens another, that record helps the team understand the tradeoff.

Include response time and resource use in the pilot review, measured on the actual candidate system. Set an acceptable operating budget and waiting experience for the intended users rather than borrowing another product's benchmark.

Repeat the relevant evaluation when source material, permissions, indexing, prompts, or models change. Add newly observed failures to the test set after reviewing them and removing information that should not be retained.

For broader preparation, our guide to AI-ready business workflows covers ownership, data boundaries, and oversight. To discuss a knowledge-assistant pilot with QorLogics, bring one task and a reviewed set of example questions. Those examples give the project a concrete quality standard from the start.

Sources

Q →

Have a Software Idea? Let's Build It with Logic.

Whether you need a SaaS product, custom application, business automation system, AI-ready platform, or professional digital portal, QorLogics can help turn your idea into scalable software.