Why a happy-path demo is not enough
A retrieval-augmented generation system can look impressive while missing relevant documents, citing the wrong passages, or answering confidently when the corpus has no evidence.
Separate the stages
Evaluate retrieval for recall and ranking quality. Evaluate generation for correctness, groundedness, completeness, and refusal behavior. Also measure latency, cost, and failure rates on a representative test set.
Build an evaluation set
Collect real questions, expected evidence, acceptable answers, and known unanswerable cases. Version the dataset. Review failures by category so a prompt change does not hide a retrieval problem.
Automated metrics are useful signals, not a substitute for expert review.