← Blog
ai-agentscompliance

Why Your RAG Stack Cannot Pass an Audit

RAG retrieves context; audits demand provenance, determinism, and policy versioning. Why retrieval-augmented generation alone fails regulated decision workflows, and the architecture that passes.

MightyBot ·
Documents flowing into a model while a magnifying glass reveals a broken provenance chain link

Summary: RAG earned its place: retrieval makes model output dramatically more grounded, and for research, drafting, and Q&A it is the right pattern. Then enterprises promoted it to decision-making in regulated workflows, and a category error was born. Audits do not ask whether your answer sounded grounded. They ask which rule, which data, which page, which reviewer. This post extends our earlier analysis of why RAG alone is not enough with the specific test an examiner applies, and what passes it.

What RAG actually guarantees

Retrieval-augmented generation does one thing: before the model answers, relevant chunks are fetched and stuffed into context, so the answer draws on your documents instead of the model’s memory. That measurably reduces fabrication and keeps answers current.

Read the guarantee precisely: the model saw relevant text. Not that it used the right value, from the right document version, under the right rule. The generation step remains free-form: models paraphrase incorrectly, blend two retrieved passages, or attach a citation to the wrong claim. A citation in a RAG system means “this chunk scored high on similarity,” which is a retrieval fact, not a provenance fact.

The three audit tests RAG fails

The provenance test. For any value in this decision, show me where it came from: document, page, character offset. RAG cites chunks, not fields. An answer assembled from paraphrased retrieval has no field-level lineage, and lineage cannot be reconstructed after the fact. Structured extraction with evidence pointers, the way a document pipeline does it, answers in one click.

The determinism test. Run the same case twice; do you get the same decision? Retrieval rankings shift, context windows truncate differently, and sampling varies: a RAG decision path is stochastic end to end. Examiners do not accept a decision process that disagrees with itself, and neither should your QA. Deterministic policy evaluation (rules compiled and run as code against extracted values) produces identical outcomes on identical inputs, by construction.

The versioning test. Rerun this decision under the rules in effect last March. A RAG stack’s “policy” is whatever chunks retrieval surfaced that day from whatever the knowledge base contained. There is no policy object to version, so there is nothing to rerun against. Versioned plain-English policies with snapshots make the rerun a routine operation, and profiles make it precise per jurisdiction.

If a vendor claims audit-readiness on a RAG architecture, those three questions settle the conversation in about four minutes.

The right jobs for retrieval

None of this retires RAG; it demotes it from judge to clerk. In a governed decision workflow, retrieval excels in support roles: surfacing the relevant precedent for a reviewer, powering investigation search across historical cases, and helping analysts draft narratives that a policy layer then checks. On MightyBot, unified semantic search across every processed workflow serves exactly those jobs, while the decision path runs through compiled execution with a why-trail under every determination.

The architecture that passes the audit looks like this: documents in through structured extraction with evidence pointers; decisions made by versioned, deterministic policy evaluation; genuine ambiguity routed through review gates; retrieval assisting the humans and the investigations around the edges. Grounded language where language is the product, governed decisions where decisions are.

If your current stack answers regulator questions with “the model retrieved the relevant policy,” the gap between what you have and what an exam requires is architectural, not incremental. The regulated-platform comparison maps which platforms clear the bar.

FAQ

Frequently Asked Questions

Why is RAG not enough for regulated workflows?

RAG improves what a model says by retrieving relevant context, but audits interrogate how a decision was made: which rule version fired, on what data, from which source location, reviewed by whom. Retrieval provides none of that. RAG grounds language; it does not govern decisions.

Can RAG hallucinate?

Yes. Retrieval reduces fabrication but the generation step remains free-form: models paraphrase retrieved text incorrectly, blend passages, or cite the wrong source. Similarity-based citations are not evidence pointers; they say a chunk was retrieved, not that a value came from a specific page and field.

What should replace RAG for decision workflows?

Not replace: reposition. Retrieval is excellent for research and drafting support. Decisions need structured extraction with evidence pointers, deterministic policy evaluation with versioning, and review gates, with retrieval as a supporting capability rather than the decision path.

What questions expose a RAG-based compliance claim?

Ask: can you show the exact source page and character offset for each value in this decision? Can you rerun the decision under the policy version in effect at the time? Do two identical runs produce identical decisions? RAG-only stacks answer no to all three.