What is RAG and how does it let AI use company knowledge?
RAG (retrieval-augmented generation) means the AI first searches for matching passages in your documents and only then writes its answer on that basis, instead of answering only from its general training.
Background
A language model does not know your company. It learned from general texts, but not from your quotes, manuals or contracts. RAG therefore connects the model to a search. The process has three steps: your documents are prepared for search, the matching passages are found for each question, and the model writes the answer using these passages as its basis.
The technical term for this link to sources is grounding. An answer counts as grounded when its statements trace back to specific passages in your documents. If the search finds nothing suitable, the system should say so instead of inventing a plausible-sounding answer. Grounded does not automatically mean correct, though: if the document is outdated, so is the answer.
The model itself is not changed by RAG. Your documents stay in your own collection and are searched again for every question. New or updated documents become available once they are prepared, without any model having to be retrained.
For the company knowledge AI, we set up such a search across the documents you release for it. Answers show their source, access rights are respected, and answers without sufficient basis are recognisable as uncertain. Before launch, we test real questions, missing information and different user permissions.
What this means for you
If your team often searches folders, drives or emails for information, RAG is the usual way to base an AI on that knowledge. You can check every answer against its source instead of trusting the model blindly.
Limits and prerequisites
- The answers are only as good as the documents: outdated or contradictory documents lead to matching answers.
- For the setup we need sample documents, frequent questions and the existing user permissions.