Skip to content

What is…

RAG (Retrieval-Augmented Generation)

Looking up relevant documents first, then having the model answer using them — grounded, current, citable.

RAG gives a model an open-book exam. When a question arrives, the system searches your documents (often with embeddings), pulls the most relevant passages into the prompt, and asks the model to answer from those passages, ideally with citations.

It's how "chat with your docs" products, customer-support bots and most enterprise AI work — cheaper and easier to keep current than fine-tuning.

💡 Think of it like

An open-book test: the model doesn't need to have memorized your company handbook — it just needs to find the right page.

🧠 Test yourself

Which of these describes RAG?

Related terms

🎮 Learn AI by playing

40 bite-size missions, boss battles and a certificate. Free.

Start the bootcamp →

☀️ One AI term every morning

Plus the day's top stories, in your inbox by 8am.