The problem it addresses
A language model stores what it learned in its parameters. That knowledge can be out of date, and the model cannot show where an answer came from. A 2020 research paper by Patrick Lewis and colleagues, presented at NeurIPS 2020, proposed retrieval-augmented generation (RAG): models that combine this built-in knowledge with an external memory, in their case an index of Wikipedia, that the model can search. The authors noted that providing provenance for answers and updating knowledge were open problems for large language models.
For a business, the idea translates simply. Instead of asking a model to remember your policies, you let it look them up.
How it works in plain language
- Your approved documents are prepared and indexed.
- A question comes in, and the system searches for the most relevant passages.
- The model writes an answer using those passages.
- The answer shows which sources it used.
- If nothing relevant is found, the assistant says so and hands the question to a person.
Where it helps
- Internal assistants for policies, procedures and onboarding material
- Customer support answers drawn from FAQs, manuals and terms
- Teams that spend time searching long documents
Where it goes wrong
- Retrieval misses. The right passage exists but is not found, so the answer is incomplete or wrong.
- Outdated or conflicting documents. The assistant repeats whatever the sources say.
- Access rules. The assistant must retrieve only what the person asking is allowed to see.
- Poor document preparation. Tables, scans and very long files can be split or read badly.
- Answers beyond the sources. The model may add detail the documents do not contain.
RAG reduces reliance on the model’s memory, but it does not guarantee that answers are correct. That is why testing matters.
Checklist before launch
- A list of approved sources, each with an owner and a review date
- Access rules that match your existing permissions
- Sources shown with every answer
- A clear “I can’t find this” response and a handoff to a person
- A test set built from real questions, including questions the documents cannot answer
- A log of unanswered and wrong answers, reviewed regularly
- A process for updating the index when a document changes
How to test
Collect real questions from customers or staff and write the expected answer and source for each. Run them through the assistant and classify every miss by cause: the source was missing, retrieval failed, or the model wrote something the source does not say. Each cause has a different fix.