Skill 5.1.4

Evaluate and improve RAG system performance by using relevance metrics and A/B testing frameworks

Key Concepts

Offline evaluation measures both halves of the system. Retrieval metrics, such as the document retrieval evaluator's NDCG, precision and fidelity against labelled relevant documents, or the AI-assisted retrieval evaluator, show whether the right chunks were found. Generation metrics, such as groundedness, relevance and response completeness, show whether the answer used them well. A failure analysis that separates retrieval misses from generation errors tells the team where to work.

A/B testing compares a candidate configuration, such as a new chunk size or hybrid search, with the current one on live traffic. Users are split randomly and consistently between variants, online metrics such as user feedback, task success, escalation rate, latency and token cost are collected for each, and the result is judged for statistical significance before the candidate becomes the new default.