Skip to content
Kaben
← All articles

November 21, 2026 · 4 min read

RAG in practice: AI that answers from your company's documents

How AI search over contracts, manuals and internal policies works, and what decides whether the project succeeds.

Contracts, manuals, policies and meeting notes hold much of a company’s knowledge. The problem is finding the right answer at the right time. That is where RAG (retrieval-augmented generation) comes in: the AI first searches the relevant passages in the company’s documents and only then writes the answer, citing where each piece of information came from.

How it works, in three steps

  1. Prepare the documents. Files are read, split into passages and indexed, keeping title, date and access permissions.
  2. Find what matters. For each question, the system finds the most relevant passages, by meaning and not only by keyword.
  3. Answer with sources. The language model writes the answer using only those passages and shows the links so people can check.

What decides success

  • The right, up-to-date documents. If a policy changed and the old version is still indexed, the answer will be confidently wrong. Curation and versioning matter more than the model.
  • Permissions respected. Someone who can’t read a contract shouldn’t get an answer based on it either. Access control has to apply to search.
  • Always answer with sources. Citing the document makes the answer verifiable and builds trust. When there is no basis to answer, the right thing is to say so.
  • Measure with real questions. A set of everyday questions with expected answers shows whether each change made the system better or worse.

Where to start

Pick a set of documents with a clear owner and frequent questions, such as internal support or legal. A small first scope, well measured, teaches more than indexing everything at once.

Want to talk about a case like this? Contact Kaben.

Not sure where to start?

Take the 3-minute assessment or talk to us.