Join our Newsletter — 33% off our NHI Course

Why do RAG systems need separate faithfulness and relevance checks?

Because a response can be grounded in source documents and still fail to answer the user’s question, or answer the question while introducing unsupported claims. Faithfulness checks source support, relevance checks prompt alignment, and both are needed to avoid confident but unusable outputs in production.

Why This Matters for Security Teams

rag quality failures are not just model issues. They become security, compliance, and operational risk when a system produces an answer that looks well-supported but still misses the user’s intent, or when it answers the question with a plausible claim that the retrieved material does not support. That distinction matters because security teams often use RAG for policy lookup, incident support, control mapping, and analyst assistance, where incorrect output can distort decisions or delay response. The NIST Cybersecurity Framework 2.0 is useful here because it reinforces that security outcomes depend on both governance and effective operational controls, not just technical capability.

Faithfulness and relevance are separate checks because they measure different failure modes. A faithful answer can still be irrelevant if it cites the right documents but responds to the wrong question. A relevant answer can still be unsafe if it tracks the prompt while inventing details not present in the retrieved context. In practice, teams often discover this only after users begin treating the system as authoritative, rather than during initial testing of retrieval and generation quality.

How It Works in Practice

RAG evaluation usually needs two scoring paths. Faithfulness asks whether the generated answer is supported by the retrieved context. Relevance asks whether the answer actually addresses the user’s query, intent, and constraints. In practice, these are measured separately because the model can pass one and fail the other.

A simple operational flow looks like this:

  • retrieve candidate documents or chunks using the user query;
  • generate an answer from the retrieved context;
  • check whether each claim is grounded in the provided sources;
  • check whether the answer resolves the user’s task, not just the topic;
  • flag cases where support is strong but alignment is weak, or vice versa.

This split is especially important when the retrieval set is broad, noisy, or semantically close to the question but not exact. For example, a control document may support a statement about access reviews, but the user may have asked about escalation paths or exception handling. Likewise, a model may produce a concise answer that tracks the wording of the prompt but adds assumptions that are not in the evidence. Guidance from OWASP Top 10 for Large Language Model Applications and the NIST AI Risk Management Framework both support the idea that output quality, provenance, and misuse resistance must be managed together rather than as a single score.

Practically, teams often use separate evaluation rubrics, separate thresholds, and separate alerting. Some organisations also add human review for high-impact use cases, because no universal standard exists yet for a perfect automatic faithfulness metric. These controls tend to break down when retrieval chunks are too large and mix multiple topics, because the model can appear grounded while still blending unrelated evidence into a superficially coherent answer.

Common Variations and Edge Cases

Tighter evaluation often increases review overhead, requiring organisations to balance answer quality against latency, cost, and analyst time. That tradeoff is real in production RAG, especially when the system serves both casual search and high-stakes decision support.

Edge cases matter because the two checks can diverge in ways that are easy to miss. A concise answer may be highly faithful but too narrow to satisfy the user. A broad answer may be relevant but include one unsupported clause that changes the meaning. In retrieval-heavy environments, best practice is evolving around whether partial support should pass or fail an output; there is no universal standard for this yet, and the right answer depends on the use case’s tolerance for ambiguity.

The distinction becomes even sharper when RAG sits inside agentic workflows, where an AI agent can use the output to trigger tool calls or workflow actions. In those settings, relevance is not just about language quality. It is about whether the response is actionable for the task the agent is allowed to perform. Faithfulness still matters because unsupported claims can propagate into downstream automation.

For teams building evaluation pipelines, the key is to treat these as complementary gates, not interchangeable metrics. MITRE ATLAS is also useful when the concern extends to adversarial manipulation of model behaviour, because prompt injection and retrieval poisoning can degrade both grounding and task alignment at the same time. The hardest failures usually appear when the retrieved evidence is technically related but operationally incomplete, which means the system passes surface-level checks while still giving the wrong answer for the actual decision context.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST AI 600-1 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST AI RMF Separates model validity, risk, and governance for AI output quality.
OWASP Agentic AI Top 10 Agentic systems can act on answers, so grounding and task fit both matter.
MITRE ATLAS Retrieval poisoning and prompt injection can distort both relevance and faithfulness.
NIST CSF 2.0 GV.RM-01 RAG quality checks belong in governed risk management, not ad hoc testing.
NIST AI 600-1 GenAI profiles emphasise output quality, traceability, and safe use cases.

Test RAG pipelines for adversarial inputs that alter retrieved evidence or generated answers.