Study FAQ
How should I measure retrieved evidence separately from generated answer quality?
Also asked as 2
- How can I tell whether a RAG change improved evidence coverage, generated answers or both?
- How should I score the retrieved passages and the final answers independently in a RAG experiment?
Answer
Measure whether required evidence reaches the selected context, then evaluate the actual generated answer separately. A better ranking is useful, but it does not prove that the model received enough evidence or answered correctly.
One application-owned measure is evidence coverage at a fixed context boundary: distinct required source passages whose answer-bearing content is present in selected chunks, divided by all required passages for that query. For example, if two passages are required and only one survives selection, coverage is one-half. Include necessary conditions, count duplicated coverage once, and mark no-coverage queries not applicable rather than divide by zero.
Also record the first required passage's rank and whether all multi-passage evidence survives. Save query/configuration, ordered chunk IDs, source mappings, query mode, stage-specific scores and retrieval time. Raw search scores are not an evidence label and cannot be directly compared across pure-vector and RRF modes.
Generate with the unchanged prompt and context-selection rule. Save actual context, output, citations, timing, errors and available usage. Evaluate groundedness against that context, relevance to the query and chosen safety/application rules. If using stored-output evaluation, score that saved response; an invoked Foundry target generates a new response instead.
Measure retrieval, generation and full-response time separately. Use repeated paired comparisons where variation matters and record run order and cold/warm conditions. Token counts remain usage evidence, not a full invoice.
Microsoft Learn
Full explanation
AI-300: Lab: Comparing RAG Retrieval Configurations
Study guide · AI-300
Read the full explanation