---
title: "What is RAG | Retrieval-augmented generation | Len P. van der Hof | Len P. van der Hof"
description: "RAG is an AI method: the system finds a named passage in your files, then writes the answer from that passage. If you cannot open the source behind the sentence, you do not have RAG."
image: "https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.wide.webp"
---

[AI Systems](https://lenvanderhof.com/en/blog/category/ai-systems/) Research guide

# What is RAG? When AI looks up a source before it answers

A fluent AI answer can still be unsourced. RAG is the method that has to show the page it used.

Len P. van der HofPublished 23 August 2026Updated 23 August 20264 min read

Fetch the named passage. Then generate.

Direct answer

RAG, retrieval-augmented generation, is an AI method. A language model does not magically know your contracts, handbook, or last Tuesday's report. RAG makes it look up a specific passage in a collection you gave it, then write the answer from that passage. Retrieval is the product. The sentence is the last mile. If you cannot open the source behind the sentence, you do not have RAG. You have a chat window with extra text pasted in.

## Key takeaways

- RAG is an AI method: look up a named passage, then write.
- A fluent answer can still be unsourced. The test is whether you can open the page behind the sentence.
- Pasting a PDF into ChatGPT once is not a retrieval system.
- GRAIN is the inspectable loop. This page defines RAG, not a nine-move product.
- The RAG Engineer is in production and not for sale. You can already demand the passage.

You asked an AI chatbot a question about your company. It answered in clean English. You still cannot tell whether it used last year’s handbook, this year’s, or a paragraph it invented that merely sounded like a handbook.

That is the job **RAG** is supposed to do.

RAG is a method in artificial intelligence. The letters mean **retrieval-augmented generation**. In order: the system finds a specific passage in a collection you gave it, then it writes the answer from that passage. Retrieval is the product. The sentence is the last mile. If you cannot open the source behind the sentence, you do not have RAG. You have a chat window with extra text pasted in.

## What a language model actually does

A language model is the engine behind tools such as ChatGPT. It was trained on a huge pile of public text. It is good at sounding right. It does not have a live copy of your supplier contract, your HR handbook, or last Tuesday’s incident report unless you give it one.

When the model has no source, it still answers. Fluency is cheap. A confident number about notice periods, refunds, or who may sign, written from general internet folklore, is still a guess.

Pasting a PDF into the chat once is not a system. The window fills up. Tomorrow’s question starts from zero. Nobody can later point at which paragraph was used.

## Look it up, then write

Picture a warehouse of identical boxes. RAG is the person who pulls one folder, puts it under the lamp, and only then writes. The product is that folder, not the sentence.

In software terms the collection is usually cut into short passages, sometimes called chunks. A chunk is just a piece of a larger file: a clause, a section, a paragraph. The AI has to fetch one you can name, then generate.

Walk a question that actually costs money.

Someone asks: how many days of notice do we need to cancel the supplier contract?

Without retrieval, the model produces a number that sounds like contract law. It may even be a common number. It is still not *your* clause.

With RAG, the system searches the signed contracts you indexed, finds clause 12.3, and the answer names that clause. You can open the file. If the file is last year’s draft, you will see that too.

The same test holds for a holiday policy, a refund rule, a safety instruction, or a product spec. You can check the sentence against a file. That is the whole advantage.

## If you do not build AI for a living

You do not need to buy new software to use this definition. The next time a tool answers from “our docs,” ask to see the paragraph. If nobody can show it, the letters on the slide are decoration. Treat the chatbot as a drafting aid. Keep it off anything that has to match a signed file.

## What you were sold

Vendors put RAG on a slide and mean “we connected a search index to a chatbot.” A search index is a filing cabinet. Useful, and not a finished system.

Embeddings, vector stores, and similar parts are furniture in that cabinet. They help the system find candidates. They do not prove that the sentence on screen came from the passage you would accept in a dispute.

The system starts when someone can name the passage. Until then you shipped generation with extras.

## The five-line test

Take one bad answer from last week. Fill these lines. Use ordinary language.

1. Which passage was gathered?
2. Why did this one rank for this question, and not the older version?
3. What was assembled around it before the model wrote?
4. Did anyone inspect a miss, or only the demo that worked?
5. What would you look up next, or would you refuse to answer?

If those lines are blank, stop arguing about chunk size. You shipped a fluent guess.

[GRAIN](https://lenvanderhof.com/glossary/grain/) is the same loop with names: Gather, Rank, Assemble, Inspect, Navigate. RAG names the architecture. GRAIN names the honesty check. This page is the definition. It is not the nine-move expansion.

[Evaluate the reasoning, not the fluency](https://lenvanderhof.com/en/blog/evaluate-reasoning-not-fluency/) is the adjacent test when the sentence is tidy and the source is not.

## Demand the passage

[The RAG Engineer](https://lenvanderhof.com/books/the-rag-engineer/) owns the longer practice. It is in production. It is not for sale. You do not need the hardcover to demand the folder under the lamp.

If the team cannot open the passage behind the sentence, do not call it RAG. Call it a prompt with extras. Then take the extras out of any decision that has to survive a dispute.

## Terminology

- [RAG](https://lenvanderhof.com/glossary/rag/)
- [GRAIN](https://lenvanderhof.com/glossary/grain/)

## Sources

1. [RAG (glossary)](https://lenvanderhof.com/glossary/rag/)
2. [GRAIN (glossary)](https://lenvanderhof.com/glossary/grain/)
3. [Evaluate the reasoning, not the fluency](https://lenvanderhof.com/en/blog/evaluate-reasoning-not-fluency/)
4. [The RAG Engineer](https://lenvanderhof.com/books/the-rag-engineer/)

## Related essays

Evaluate the reasoning, not the fluency

## Further reading

- [RAG](https://lenvanderhof.com/glossary/rag/)
- [GRAIN](https://lenvanderhof.com/glossary/grain/)
- [Evaluate the reasoning, not the fluency](https://lenvanderhof.com/en/blog/evaluate-reasoning-not-fluency/)
- [The RAG Engineer](https://lenvanderhof.com/books/the-rag-engineer/)

About the author

## [Len P. van der Hof](https://lenvanderhof.com/en/authors/len-p-van-der-hof/)

Entrepreneur, AI Innovator and Venture Builder

Len P. van der Hof builds practical AI systems, digital ventures and evidence-informed tools for founders.

```json
{
	"@context": "https://schema.org",
	"@graph": [
		{
			"@type": "Person",
			"@id": "https://lenvanderhof.com/#person",
			"name": "Len P. van der Hof",
			"alternateName": [
				"Len van der Hof",
				"L.P. van der Hof",
				"Leendert Pieter van der Hof"
			],
			"honorificSuffix": "MSc",
			"url": "https://lenvanderhof.com/",
			"image": [
				"https://lenvanderhof.com/photos/len-portrait-1.jpg",
				"https://lenvanderhof.com/photos/len-portrait-2.jpg",
				"https://lenvanderhof.com/photos/len-portrait-3.jpg",
				"https://lenvanderhof.com/photos/len-portrait-4.jpg",
				"https://lenvanderhof.com/photos/len-speaking.jpg",
				"https://lenvanderhof.com/photos/len-hero.jpg"
			],
			"jobTitle": "Entrepreneur, AI Innovator and Venture Builder",
			"description": "Len P. van der Hof is a Dutch entrepreneur and AI innovator building ReasonKit, MindSesh and technology ventures through LPH98.ventures.",
			"address": {
				"@type": "PostalAddress",
				"addressLocality": "Zwijndrecht",
				"addressCountry": "NL"
			},
			"alumniOf": {
				"@type": "CollegeOrUniversity",
				"name": "Rotterdam School of Management, Erasmus University"
			},
			"knowsAbout": [
				"Artificial intelligence",
				"AI agents",
				"Agentic AI systems",
				"SEO",
				"Generative engine optimization",
				"Answer engine optimization",
				"Venture building",
				"Founder performance",
				"Founder psychology",
				"Evidence-based decision-making"
			],
			"sameAs": [
				"https://www.linkedin.com/in/lenvanderhof/",
				"https://x.com/LenvanderHof",
				"https://www.youtube.com/channel/UCTG20buKqYYbitqqf7l3zJA",
				"https://www.instagram.com/Lenvanderhof/",
				"https://www.threads.com/@lenvanderhof",
				"https://github.com/Lenvanderhof",
				"https://www.goodreads.com/author/show/70983905.Len_P_van_der_Hof",
				"https://www.amazon.com/stores/author/B0H8B1SCLQ",
				"https://www.bol.com/nl/nl/b/len-p-van-der-hof-msc/609879394/",
				"https://bsky.app/profile/lenvanderhof.com",
				"https://mastodon.social/@Lenvanderhof",
				"https://crates.io/users/Lenvanderhof",
				"https://cursor.com/@Lenvanderhof",
				"https://medium.com/@Lenvanderhof",
				"https://gitlab.com/Lenvanderhof",
				"https://hub.docker.com/u/lenvanderhof/",
				"https://dev.to/lenvanderhof",
				"https://www.facebook.com/Lenvanderhof",
				"https://soundcloud.com/Lenvanderhof"
			],
			"affiliation": [
				{
					"@id": "https://lenvanderhof.com/#publisher"
				},
				{
					"@id": "https://lenvanderhof.com/#mindsesh"
				}
			]
		},
		{
			"@type": "WebSite",
			"@id": "https://lenvanderhof.com/#website",
			"url": "https://lenvanderhof.com/",
			"name": "Len P. van der Hof",
			"description": "Len P. van der Hof is a Dutch entrepreneur and AI innovator building ReasonKit, MindSesh and technology ventures through LPH98.ventures.",
			"inLanguage": [
				"en",
				"nl"
			],
			"publisher": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "Organization",
			"@id": "https://lenvanderhof.com/#publisher",
			"name": "LPH98.ventures",
			"url": "https://lph98.ventures",
			"founder": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "Organization",
			"@id": "https://lenvanderhof.com/#mindsesh",
			"name": "MindSesh",
			"url": "https://mindsesh.net",
			"founder": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "SoftwareApplication",
			"@id": "https://lenvanderhof.com/#reasonkit",
			"name": "ReasonKit",
			"url": "https://reasonkit.sh",
			"creator": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "ImageObject",
			"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#primaryimage",
			"url": "https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.wide.webp",
			"contentUrl": "https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.wide.webp",
			"representativeOfPage": true
		},
		{
			"@type": "BreadcrumbList",
			"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#breadcrumb",
			"itemListElement": [
				{
					"@type": "ListItem",
					"position": 1,
					"name": "Home",
					"item": "https://lenvanderhof.com/"
				},
				{
					"@type": "ListItem",
					"position": 2,
					"name": "Blog",
					"item": "https://lenvanderhof.com/en/blog/"
				},
				{
					"@type": "ListItem",
					"position": 3,
					"name": "AI Systems",
					"item": "https://lenvanderhof.com/en/blog/category/ai-systems/"
				},
				{
					"@type": "ListItem",
					"position": 4,
					"name": "What is RAG? When AI looks up a source before it answers",
					"item": "https://lenvanderhof.com/en/blog/what-is-rag/"
				}
			]
		},
		{
			"@type": "WebPage",
			"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#webpage",
			"url": "https://lenvanderhof.com/en/blog/what-is-rag/",
			"name": "What is RAG? When AI looks up a source before it answers",
			"description": "RAG is an AI method: the system finds a named passage in your files, then writes the answer from that passage. If you cannot open the source behind the sentence, you do not have RAG.",
			"isPartOf": {
				"@id": "https://lenvanderhof.com/#website"
			},
			"primaryImageOfPage": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#primaryimage"
			},
			"breadcrumb": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#breadcrumb"
			},
			"inLanguage": "en-GB"
		},
		{
			"@type": "BlogPosting",
			"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#article",
			"mainEntityOfPage": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-rag/#webpage"
			},
			"headline": "What is RAG? When AI looks up a source before it answers",
			"description": "RAG is an AI method: the system finds a named passage in your files, then writes the answer from that passage. If you cannot open the source behind the sentence, you do not have RAG.",
			"datePublished": "2026-08-23T08:00:00.000Z",
			"dateModified": "2026-08-23T17:33:00.000Z",
			"author": {
				"@id": "https://lenvanderhof.com/#person"
			},
			"publisher": {
				"@id": "https://lenvanderhof.com/#person"
			},
			"image": [
				"https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.square.webp",
				"https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.landscape.webp",
				"https://lenvanderhof.com/media/generated/blog-hero-rag-named-passage-v1.df279e994670.wide.webp"
			],
			"articleSection": "AI Systems",
			"inLanguage": "en-GB"
		}
	]
}
```
