Skip to main content
DSX Digital
DSX IQ

The Limits of RAG — and What It Takes to Question a Whole Archive

Retrieval-augmented generation (RAG) made "chat with your documents" possible, and for many questions it works well: retrieve the most relevant passages, hand them to a model, generate an answer. But enterprises adopting RAG discover a structural ceiling quickly. The questions that matter most in an organisation are rarely answerable from a handful of retrieved fragments — because they are questions about the whole record, not about any single passage in it.

In one paragraph

Retrieval-augmented generation answers from a handful of passages it retrieves, which works for questions whose answer sits in one document. It fails on corpus questions — questions whose answer requires examining every document in a set, such as which contracts auto-renew this quarter. Whole-corpus knowledge intelligence closes that gap by ranking, compressing and holding the material a question actually needs in a rolling working set, and by reporting how much of the corpus informed the answer.

The question RAG cannot see

Consider the difference between two questions an in-house legal team might ask:

"What does the indemnity clause in the Acme agreement say?" — This is a retrieval question. The answer lives in one passage of one document. RAG handles it well — and so does document-level intelligence, which reads a file end to end rather than searching across many (IDP vs OCR covers that layer).

"Which of our agreements auto-renew this quarter, and which of those lack a termination-for-convenience clause?" — This is a corpus question. Answering it requires examining every agreement, not the top-k most similar ones. A retrieval step that returns 5, 20 or even 100 chunks has silently discarded the rest of the archive — and with it, the correctness of the answer.

The failure mode is dangerous precisely because it is invisible: the answer arrives fluent and cited, and nothing signals that 4,000 relevant documents were never consulted. In compliance, audit and portfolio-review contexts, a confidently incomplete answer is worse than no answer.

Why "just increase top-k" doesn't fix it

Three structural limits stand between conventional RAG and corpus-level questions:

Retrieval decides what the model is allowed to know. Similarity search retrieves what resembles the question, not what matters to it. A question about missing clauses is answered by documents that don't contain the phrase being searched for — the exact documents similarity ranking pushes to the bottom.

Context windows bound the evidence. Even the largest model context holds a fraction of an enterprise archive. Somewhere, a cut is made; the question is only whether it is made deliberately or by accident.

Coverage is unmeasured. Standard RAG has no notion of how much of the relevant record an answer accounts for. Without a coverage signal, there is no way to distinguish "the archive says X" from "the three chunks I saw say X."

What whole-corpus knowledge intelligence requires

Closing the gap is an architecture problem, not a prompt problem. Five requirements define it:

  1. Index in place. Connect to the file servers and shares where documents already live and index them there — no migration project, no second copy of sensitive material, and deletions drop out of the index at the next sync.
  2. Sustained working memory over the corpus. Instead of a single retrieve-then-generate step, the system iterates: retrieval, compression and a rolling working memory that lets reasoning span millions of pages — the effect of unlimited context, engineered rather than assumed.
  3. Answers cited to document, page and passage. Every claim traceable to its source, so verification replaces trust.
  4. Coverage and confidence, reported. The answer states how much of the relevant record it examined. This single number is what turns a chat toy into an instrument an operations or compliance team can rely on.
  5. Permission-aware retrieval. The system answers only from what the person asking is entitled to see, with a full audit trail of who asked what and what was consulted. An AI layer that flattens access controls is a data breach with a search box.
Retrieval-augmented generationWhole-corpus knowledge intelligence
SuitsQuestions whose answer sits in one passage of one documentQuestions whose answer spans the whole set and exists in no single document
Evidence consideredThe top-k passages that fit the context windowRanked, re-ranked and compressed material held in a rolling working set
Behaviour when the set is too largeAnswers from what was retrieved, without saying what was missedReports how much of the corpus informed the answer and what was excluded
CoverageUnmeasuredReported alongside the answer
PermissionsWhatever the index was built withRead from the source systems and enforced at query time

Build vs. buy: the honest comparison

A capable engineering team can assemble a RAG pipeline in weeks — vector database, embedding model, orchestration. What that pipeline lacks is precisely what the five requirements above describe: file-server connectors that respect permissions, difference-only re-indexing at archive scale, OCR and layout analysis for the scanned half of the estate, coverage reporting, and audit logging that satisfies a regulator. Those are not features to add later; they are the product. The build-vs-buy question for enterprise knowledge intelligence is really a question about who maintains that unglamorous 80%.

Where DSX IQ fits

DSX IQ is DSX Digital's enterprise knowledge intelligence platform, built on this architecture: it connects to the file servers your teams already use, indexes the whole document estate in place, keeps the corpus in working memory through retrieval, compression and rolling context, and returns cited answers with confidence and coverage — under permission-aware retrieval and a full audit trail. Ingestion and questions are never metered; licensing is per user with a per-indexed-document rate.

And because knowledge intelligence still makes model calls, IQ registers as a governed agent in DSX Guard, so the archive layer itself passes the same policy controls as every other path to AI in the organisation. The DSX IQ use cases show corpus-level questions answered against a real document estate, and the retrieval, deployment and audit controls underneath them are set out on the security page.

Frequently asked

Is this a replacement for RAG?

It contains retrieval — but as one stage in an iterative reasoning process with working memory and coverage measurement, rather than a single gate that fixes what the model can see. For single-passage questions, the behaviour resembles RAG; for corpus questions, it is what RAG structurally cannot do.

Does the archive need to be migrated into the platform?

No. Documents are indexed where they live, over file-server and SMB connectors, with scheduled difference-only re-indexing. Files removed from a share drop out of the index at the next sync.

How are scanned documents handled?

OCR and layout analysis are part of ingestion, so scanned and image-based documents participate in answers on the same footing as digital ones.

What stops an employee from seeing answers drawn from documents they can't access?

Permission-aware retrieval: the index respects source-system entitlements, and answers are composed only from documents the requesting user is authorised to see — with the audit trail to prove it.

Related guides

DSX Insight

IDP vs OCR: What's the Difference — and When Is OCR Not Enough?

Read the guide
DSX Guard

What Is Enterprise AI Governance?

Read the guide
Across all products

Deploying AI in Regulated Industries: What Actually Decides Approval

Read the guide

Ask your archive a question it has never been able to answer.

Bring one corpus-level question — renewals, exposure, missing clauses — and we'll show it answered with citations and coverage.

Request a Demo