Open Agent School · Public worked example
Retrieval-Augmented Generation (RAG): meaning and example
Welcome! Take one idea with you today.
Retrieval-augmented generation supplies retrieved information to a generative model so it can answer with evidence beyond the immediate question. A typical system retrieves permitted sources, selects useful passages, drafts an answer and checks its support. RAG does not automatically retrain the model or guarantee factual accuracy.
Picture it: Question: “Can I return this item after 20 days?” The permitted current policy says 30 days, with conditions. Message: "Returns are accepted within 30 days if the item is unused."
What is easy to mix up?
RAG can use several retrieval methods. It reduces some information gaps but can still retrieve the wrong evidence or generate unsupported claims.
Teaching example by Open Agent School. Source: Lewis et al. - Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.