A large language model knows a lot about the world in general and nothing about your products, policies or customers. Retrieval-augmented generation, or RAG, is the most common way to connect the two.
How it works
1. Prepare your content. Policies, product documents and FAQs are split into passages and indexed so they can be searched by meaning, not just keywords. 2. Retrieve. When someone asks a question, the system finds the passages most relevant to it. 3. Generate. The model writes an answer using only those passages, and cites them.
The model is not retrained. It is given the right pages to read at the moment of the question.
Why enterprises use it
- Answers come from approved, current content.
- Updating knowledge means updating documents, not models.
- Every answer can point to its source, which helps trust and audit.
- Access controls can limit which documents each user's questions can draw on.
Where it goes wrong
- Poor content. Outdated, duplicated or contradictory documents produce poor answers. Clean the content first.
- Wrong passages retrieved. If search returns the wrong pages, the answer will be confidently wrong. This is the most common failure.
- No "I don't know". The system should say when the documents do not contain an answer, instead of guessing.
- Missing permissions. Without access controls, users could see content they should not.
How to test it
Build a set of real questions with known correct answers and sources. Check how often the right passages are retrieved and how often the final answer is correct and properly cited. Re-run the set every time content or settings change.
The takeaway
RAG is less about the model and more about the content and the search. Invest there, and the answers follow.