What is retrieval-augmented generation?
Retrieval-augmented generation, or RAG, finds relevant information in a collection and supplies it to a model before it answers. This can ground replies in current or private documents. The system still depends on finding the correct passage and interpreting it accurately.
Try it
- Choose two public documents with different effective dates.
- Ask a question that only the newer one answers.
- Inspect the passage used in the reply.
Worked example
Ask for the return window in a shop’s July policy. If the reply cites a January policy, retrieval found a related document with the wrong date.
Check your result
Check the document version and whether the quoted passage actually answers the question.