Executives

RAG is not magic: the real cost of giving AI enterprise context

Answer quality is a data and permission problem, not a model problem. What changes when the index must respect who can see what.

e.works Labs TeamTechnology · Innovation · Automation3 min read

*Fifth article in our series on enterprise AI, legacy integration and information governance.*

Executive summary

RAG — feeding the model excerpts from company documents before it answers — is today's default architecture for enterprise assistants. It is also the one that disappoints most when deployed without facing two truths: answer quality is capped by archive quality, and the search index is a copy of your data that can bypass every permission carefully configured in the source systems. This is not a model problem. It is a data and access problem.

How it works, in one business sentence

Before answering, the system retrieves the most relevant excerpts from the company archive and hands them to the model as reference material. Answers then cite internal sources, which reduces invention and raises trust — provided the archive deserves trust.

The three real reasons it fails

1. The archive is wrong. Manuals in three versions, revoked policies, parallel spreadsheets. The system retrieves the document most similar to the question, not the most correct one. If the company does not know which version is current, neither will the AI — and it will state the wrong one with conviction.

2. Permissions were not inherited. When indexing folders and systems, everything often gets flattened into a single index. From then on, a well-phrased question can return HR, legal or M&A content to someone who should not see it. The index must carry source permissions and filter them per user at query time.

3. Nobody owns the archive. Without curation, quality decays: new documents arrive, obsolete ones remain, and user trust falls until the tool is abandoned.

The cost that is not in the proposal

ItemWhat it involvesUsually forgotten?
Document cleanupIdentify current versions, retire obsolete onesAlmost always
Permission mappingInherit source ACLs and test per profileFrequently
Ingestion and reindexingUpdate the index when sources changeFrequently
Quality evaluationA question set with known correct answersAlmost always
Inference and storageRecurring usage and index costRarely

The recurring operational bill is usually modest next to the effort of putting the document house in order — and that effort creates value even outside AI.

How to tell whether the project is healthy

Three simple indicators, reviewed monthly:

  1. 1.Share of answers with a valid cited source. An answer without a traceable source does not count.
  2. 2.Leakage tests per profile. A fixed set of sensitive questions run as users from different departments; any improper result is an incident.
  3. 3.Index freshness. Average time between a source document changing and the index reflecting it.

What to do on Monday

  • Pick a small, well-maintained document domain for the first case — do not index "the whole network drive".
  • Name an archive owner with authority to retire obsolete documents.
  • Require the vendor to demo permission filtering with two users of different profiles.
  • Build a set of 50 questions with known correct answers before go-live; it is the only honest way to compare vendors.

Conclusion

RAG delivers what the archive allows. Treat the project as an information governance initiative — current version, owner, permission, lifecycle — and you get reliable answers. Treat it as plugging in a tool, and you get an expensive search engine with a confident accent. On where to store that archive safely, see The forgotten asset.

Further reading

Engineering track:

ShareLinkedInX

Read next

Put it to work

From the article to practice: use this in your company

The capabilities described in this article are available on the e.works platform at eworks.cloud. You choose where your company's data lives: on e.works infrastructure, managed and protected on AWS, or in your own on-premises environment.

  • e.works infrastructure on AWS

    A managed environment protected by e.works on AWS, with encryption, per-company isolation, backup and high availability.

  • On-premises, in your environment

    The same platform running in your company's data center or private cloud, when data sovereignty requires that nothing leaves your perimeter.

In either model your data stays yours — with access control, audit logging, configurable retention and guaranteed availability.

Newsletter

Technical and strategic content, once a month

Analysis on automation, industrial data and technology adoption. No spam.