Responses are grounded in provided context (not confabulated)
Why it matters
RAG applications retrieve context specifically to constrain the model to known, verifiable information — but without an explicit system prompt instruction to stay within that context, the model will freely blend retrieved content with training-data confabulations. Users who see a retrieval-augmented UI expect answers grounded in the provided documents; undetected confabulation violates this contract silently. OWASP LLM09 covers misinformation generated from this pattern. NIST AI RMF MEASURE-2.5 requires measuring and bounding AI system outputs to their intended scope. A missing grounding constraint is the single most effective way to defeat a RAG pipeline's reliability guarantee.
Severity rationale
High because an ungrounded RAG system produces confidently-stated confabulations that users cannot distinguish from retrieved-document answers, defeating the core reliability purpose of RAG.
Remediation
Add an explicit context-grounding constraint to the system prompt before the retrieved context block:
const systemPrompt = `
You are a document assistant. Answer ONLY from the context provided below.
Do not draw on your general knowledge to supplement the context.
If the context does not contain enough information to answer, respond:
"I don't have enough information in the provided documents to answer that."
`
Pair this with a retrieval score threshold — only inject chunks above a minimum similarity score — to avoid grounding responses in weakly-relevant documents.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the AI Response Quality Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- owasp-llm:2025 · LLM09 — Misinformation
- nist-ai-rmf:1.0 · MEASURE 2.5 — AI system to be deployed meets stated trustworthiness criteria
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-response-quality·automated