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.
References
Editorial approach: technical documentation and operational acceptance criteria; no unverified performance claims.