The pattern behind "an AI that knows our documents" — and the parts that decide whether it is useful or merely impressive.
RAG is a pattern where the system searches your own documents first, then answers using only what it found, citing the source.
The model is not trained on your material and does not memorize it. At question time the system retrieves the handful of passages most likely to contain the answer, hands those to the model as context, and asks it to answer from them.
The practical consequence is that answers are checkable. Each response points back to the passage it came from, so someone can verify it rather than trust it. For contracts, policies and compliance material, that difference is the entire value.
Because a general assistant has never seen your documents, and will produce a confident answer anyway.
A general model does not know your contract terms, your internal policy, or last year's procedure. Asked regardless, it will still answer — fluently. RAG constrains the system to material you supplied and makes the source visible, so a wrong answer becomes obvious rather than plausible.
If the right passage is not retrieved, no model can answer correctly. Most disappointing RAG systems are retrieval failures wearing a model's clothes.
Three things decide quality, and none of them is which model you picked:
Retrieval has to respect the access rules you already have, so people only see answers drawn from documents they were already allowed to read.
Document search is one of the easiest places to widen access by accident. If the index is built without permissions and filtered afterwards, you have built a leak with a filter in front of it. Permissions belong in the retrieval step.
When the answer lives in a database rather than prose, or when a good search box would do.
If the question is "what is the balance on account 4417", that is a query, not a retrieval problem — and a direct lookup will be faster, cheaper and exactly right.
RAG earns its cost where answers are buried in prose across many documents and people currently find them by asking a colleague who happens to know. See RAG over documents.
Bring it to a free 30-minute call and we will tell you whether RAG is the right shape for it.