RAG retrieves relevant material before generating an answer. It improves access to evidence, but retrieval and interpretation can still fail.
Ask a general chatbot about your company's refund policy and it may have no reliable way to know the answer. Connect it to the right policy documents and the task becomes more realistic.
One common approach is retrieval-augmented generation, usually shortened to RAG. The name sounds technical, but the basic idea is straightforward: find useful reference material, then use it while writing the answer.
Retrieval comes before the response
In a typical system, documents are indexed so relevant passages can be found. A question triggers a search. Selected passages are supplied to a language model along with instructions to answer the question.
The model is therefore working with additional context at the time of the request. This differs from retraining a model to permanently absorb an organization's documents.
IBM describes RAG as connecting a model with external knowledge sources. The important practical point is that finding the right material and explaining it are separate steps.
A fictional refund example
Imagine a shop has two policies: an old version allowing returns within 14 days and a current version allowing 30 days. A customer asks about an item bought yesterday.
If the system retrieves the old policy, even a faithful summary can produce the wrong answer. If it retrieves both, the model needs enough information to identify which version applies.
Now add an exception for personalized items. A passage containing only the general return window is incomplete. The answer needs the relevant exception too.
This example shows why document quality, dates and retrieval rules matter as much as the fluency of the final paragraph.
A citation is useful when you can inspect it
A good document assistant should help you locate the supporting passage. Open the cited source and check whether it supports the specific claim.
Look for missing conditions. Does the rule apply to every customer? Was an important footnote omitted? Is the policy still current?
The presence of a source link is a valuable affordance, but it is not a certificate of correctness. The link can point to a real document while the answer still overstates what the document says.
Test missing information deliberately
When evaluating a document assistant, ask some questions that the documents cannot answer. The system should acknowledge the gap instead of inventing a policy.
Also test conflicting versions, near-matching terminology and questions that require combining two passages. These cases reveal more than repeatedly asking an easy question whose answer appears in one clear sentence.
Write expected answers before testing when possible. Otherwise, it is easy to accept whatever sounds reasonable.
Keep access boundaries intact
A document assistant should respect the permissions of the person asking. Connecting a large shared collection does not mean every user should see every file in it.
Before using one for internal work, establish which documents are indexed, how updates are handled and what happens when access is removed. These are operational questions, not just model settings.
RAG can make an assistant much more useful for a particular collection of information. The reliable version of that experience depends on current documents, sensible access controls and answers that remain open to inspection.
Sources & further reading
Original explainers and practical examples, with technical background from the sources below. Source links reviewed 2026-10-03.
More context, fewer assumptions. About our editorial approach.


