# How should I measure retrieved evidence separately from generated answer quality?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Optimize generative AI systems and model performance
Updated: 2026-11-25T04:35:46.49757+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-measure-rag-evidence-and-answer-quality.html

## Also asked as

- 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?

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**

* [Built-in Evaluators Reference](https://learn.microsoft.com/en-us/azure/foundry/concepts/built-in-evaluators)
* [Evaluation dataset schema in Microsoft Foundry](https://learn.microsoft.com/en-us/azure/foundry/observability/how-to/evaluation-dataset-schema)
* [Relevance in vector search](https://learn.microsoft.com/en-us/azure/search/vector-search-ranking)

Source: [AI-300: Lab: Comparing RAG Retrieval Configurations](https://learningpathx.com/news/ai-300-lab-comparing-rag-retrieval-configurations.html)
