
The Stack
AI 101 — What is RAG?
RAG — retrieval-augmented generation — is a technique that lets an AI model look things up in a document store before it answers, by pulling the most relevant passages into the conversation. Instead of relying only on what it memorized during training, the model gets the right pages placed in front of it and writes its answer with those pages open.










