RAG System Evaluation SOP: Measure Retrieval and Generation Quality with Ragas/TruLens/DeepEval
Breaks RAG quality into three measurable layers-retrieval quality (context precision/recall), generation faithfulness, and answer relevance-and evaluates each with Ragas, TruLens, and DeepEval. Includes eval-set field design, 4 copy-paste code/prompt blocks, 6 pitfalls, and 5 FAQs. Complements the existing "Dify build SOP" by focusing purely on evaluation.