---
title: "What is RAG?"
description: "RAG (retrieval-augmented generation) lets an AI look things up in your documents before it answers."
last_reviewed: "2026-12-03"
author: "Tim Benniks"
url: "https://noddingalong.tech/videos/what-is-rag"
markdown_url: "https://noddingalong.tech/videos/what-is-rag.md"
reading_time: "3 min read"
tags: ["what is rag", "retrieval augmented generation", "rag explained", "rag ai", "ai hallucinations", "chatgpt with your documents", "ai for beginners", "ai jargon"]
---

# What is RAG?

RAG (retrieval-augmented generation) lets an AI look things up in your documents before it answers.

Video: premieres on YouTube 2027-01-19T15:00:00Z.

## What you'll be able to explain

Explain retrieval-augmented generation: a search step finds relevant passages in your documents, puts them in the context window next to the question, and the model answers from them (ideally citing them); it reduces but does not eliminate wrong answers, and depends on the documents and the retrieval being right.

## The question to ask

> Great, when were those documents last updated?

RAG answers from whatever it finds in your documents. Outdated or duplicated documents give outdated answers, with a citation that makes them look trustworthy. A good answer sounds like: Each source has an owner and a single current version, and answers show their sources.

## Key terms

- [RAG (retrieval-augmented generation)](https://noddingalong.tech/glossary#rag): A setup where a search step finds relevant passages in your documents and puts them in front of the model before it answers, ideally with sources you can check.
- [Training data and cutoff](https://noddingalong.tech/glossary#training-cutoff): The text a model learned from, collected up to a certain date. The model doesn't know about anything after that date, or about your private documents, unless the app supplies them.

## Chapters

- 00:00 Everyone nodded
- 00:12 The policy it made up
- 00:25 Open-book exam
- 00:37 Search, paste, answer
- 01:15 Only as good as what it finds
- 01:37 When were those documents updated?

## Transcript

### Everyone nodded

Someone in your meeting just said: we should add RAG. Everyone nodded. Somebody pictured an actual rag. Polishing the robot. Nobody asked what it actually is. Let's fix that.

### The policy it made up

Ask a chatbot about your company's holiday policy. Your handbook was never in its training data. So it admits it doesn't know, or confidently invents one. Unlimited Fridays. Hello again, hallucinations.

### Open-book exam

Right now, it's taking a closed-book exam. Every answer comes from memory. RAG, short for retrieval-augmented generation, makes it an open-book exam. Before answering, it checks the manual.

### Search, paste, answer

Here's how it works. You ask a question. A search step digs through your documents: the handbook, the wiki, that folder of old PDFs, and grabs a few passages that look relevant. They get pasted into the context window, the model's desk, next to your question. Then the model answers using them, ideally citing where it found them.

### Who named this?

Retrieve, augment, generate. Find it, paste it, answer it. The name comes from a 2020 research paper, whose lead author later admitted they'd have put more thought into the name. Why only a few passages? They have to fit on the desk. Finding the right ones? Another episode.

### Only as good as what it finds

Here's the catch. RAG is only as good as what it finds. Outdated handbook? Outdated answer. Wrong passage? Wrong answer, now with a footnote. In 2024, Stanford researchers tested legal research tools built this way. They hallucinated less than a general chatbot, but still seventeen to thirty-three percent of the time. Fewer. Not zero.

### The question that silences the room

So ask what it searches, and whether it shows its sources. And that rag? Not a cleaning cloth. Though it does mop up some of the mess. Next time someone says we should add RAG, nod. Then ask the question that silences the room: great, when were those documents last updated? Silence. Congratulations. You're nodding with intent.

## Sources

Every claim was checked against these sources on 2026-12-03 before recording.

1. [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020, NeurIPS)](https://arxiv.org/abs/2005.11401)
2. [What is RAG (Retrieval-Augmented Generation)? (AWS)](https://aws.amazon.com/what-is/retrieval-augmented-generation/)
3. [Reduce hallucinations (Claude API docs)](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations)
4. [Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools (Magesh et al., Stanford, 2024)](https://arxiv.org/abs/2405.20362)
5. [What Is Retrieval-Augmented Generation, aka RAG? (NVIDIA blog, interview with Patrick Lewis)](https://blogs.nvidia.com/blog/what-is-retrieval-augmented-generation/)

---

Written by Tim Benniks (https://timbenniks.dev) for Nodding Along: AI explained for people who work with nerds but aren't one. https://noddingalong.tech
