Home Knowledge Base Document Relevance vs Answer Relevance

Document Relevance vs Answer Relevance is a critical distinction in RAG (Retrieval-Augmented Generation) evaluation that separates the quality of the retrieval step from the quality of the generation step — where document relevance measures whether the retrieved context contains information related to the query (evaluating the retriever), and answer relevance measures whether the generated response actually addresses the user's question (evaluating the generator), with the key insight that these can fail independently: perfect retrieval with poor generation, or poor retrieval with a correct answer from the LLM's parametric knowledge.

What Is the Distinction?

Failure Mode Matrix

Doc Relevant?Answer Relevant?Faithful?Diagnosis
YesYesYesPerfect RAG response
YesNoN/AGeneration failure — LLM ignored relevant context
NoYesNoRetrieval failure — LLM used parametric knowledge (hallucination risk)
NoNoN/AComplete pipeline failure
YesYesNoHallucination — answer sounds right but contradicts retrieved docs

Evaluation Frameworks

Why the Distinction Matters

Document relevance vs answer relevance is the diagnostic framework that makes RAG systems debuggable — by separately evaluating whether retrieval found the right context and whether generation produced the right answer, teams can identify exactly which component to optimize rather than treating the RAG pipeline as an opaque black box.

document relevance vs answer relevanceevaluation

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.