WebGoesOnContact
Home/Articles/Evaluating RAG: measure reliability before production
29 November 2026 · WebGoesOn team

Evaluating RAG: measure reliability before production.

A test protocol for document retrieval, citation accuracy, answer faithfulness and permissions.

Build a reference test set

Select real questions and reference documents approved by business users. Include unanswered questions, outdated documents, ambiguous wording and users with different permissions. Keep the test set within the intended hosting boundary.

For each question, record the expected passages, acceptable answer and conditions for abstention. Keep tuning examples separate from acceptance tests.

Separate retrieval from generation

Measure whether useful passages are retrieved, then whether the answer is faithful to them and cites the right sources. Good prose cannot compensate for faulty retrieval. Context precision and recall help locate defects.

Automated metrics assist acceptance testing; they do not replace human review, especially for ambiguous questions and business documents.

Test trust boundaries

Enforce permissions at retrieval, not after generation. Simulate a document containing malicious instructions: document content must not override system security rules.

Test deletions, index updates, traceability and situations where the system should say it does not know.

Define a release decision

Agree quality thresholds with business teams before the pilot. Track quality, latency, cost per request and incidents separately. Document findings and limitations: changes to the model, index or prompt trigger targeted retesting.

Let’s take action

Discuss your project

Share your objectives and constraints. Let’s define the next steps.