RAG (Retrieval-Augmented Generation)
Also known as: Retrieval-Augmented Generation, Retrieval augmented generation
Retrieval-augmented generation is the mechanism an AI assistant uses to fetch documents (usually web pages) at question time, pick the most relevant passages and hand them to the language model as context before it writes the answer.
Retrieval-augmented generation (RAG) is the plumbing that lets an AI assistant read the web before it answers. The assistant searches, fetches pages, cuts them into passages, keeps the passages that look most relevant and pastes them into the LLM's context. The model then writes its answer with those passages in front of it.
RAG is a mechanism. Grounding is the result you hope it produces: claims tied to sources. You can have retrieval without good grounding (the model fetches five pages and ignores them), and the grounding page covers how each platform handles that. This page is about the pipe itself, and why your page does or doesn't make it through.
The pipeline, step by step
Take a real buyer question typed into the ChatGPT app: "What's a good uptime monitoring tool for a five-person SaaS team?" Here's what happens before a single word of the answer appears.
1. Decide whether to retrieve at all
The assistant first decides if the question needs the web. Not every answer does. In our tracking of the ChatGPT app over August and September 2026, 31% of answers didn't search at all and came straight from training data. Those answers carry no citations, and they almost never named the brand we were tracking. If retrieval doesn't run, nothing on your website matters for that answer.
2. Rewrite the question into searches
The assistant doesn't search for the user's sentence. It writes its own queries. In the 105 ChatGPT answers we logged, the median answer that searched ran three searches. None contained a question mark. Half named a vendor the user never mentioned, because the model built a shortlist first and then checked the names on it. A third asked for "official" pages or documentation. "Best" showed up in about 1% of searches.
So our uptime question might become something like "uptime monitoring pricing small team", "[Vendor A] status page pricing" and "[Vendor B] vs [Vendor C] uptime monitoring". Your page has to match the searches the model writes, not the question the human typed.
3. Query a search index
Those searches go to a search index. Google's assistants use Google Search. The others use their own index, a licensed one, or a mix. Your page has to be in that index already. Retrieval does not crawl the whole web on demand.
4. Fetch the pages
The assistant, or a bot working for it, downloads the top results. These fetchers have names: OAI-SearchBot and ChatGPT-User for OpenAI, Claude-SearchBot and Claude-User for Anthropic, PerplexityBot and Perplexity-User for Perplexity. If robots.txt or your firewall turns them away, the page drops out here. If the text only appears after JavaScript runs, a fetcher that reads raw HTML gets an empty page.
5. Split pages into chunks
A whole page is too long and too noisy to paste in. The system cuts it into passages, often a few paragraphs or a section under one heading, and scores each passage against the query. Navigation, cookie banners and footers get thrown away, ideally.
6. Rank and keep the best passages
Only the top-scoring passages go into the model's context window. The rest of your page, however good, is not in the room. In our ChatGPT logs, answers that ran four or more searches read about 55 results and cited about 8. Most of what gets read never gets credit.
7. Generate, and maybe cite
The model writes the answer with the kept passages as context, blended with what it learned in training. Some passages get a citation link. Some influence the wording without one. Some get ignored because the model's prior belief won.
Why a page gets retrieved, or doesn't
| What went wrong | Step where it fails | How to check |
|---|---|---|
| robots.txt blocks the AI search or user bots | 4. Fetch | robots.txt tester |
| Firewall or bot protection returns a challenge page | 4. Fetch | AI crawler checker |
| Content loads only with JavaScript | 4. Fetch | AI crawler checker, "without JavaScript" result |
| Page isn't in the search index the assistant uses | 3. Search | Search the exact page title in that engine |
| Page doesn't match the searches the model writes | 2 to 3. Rewrite and search | Look at the queries an assistant runs for your category |
| The useful fact is buried mid-paragraph with no context | 5 to 6. Chunk and rank | Read each section on its own. Does it still make sense? |
| Information is stale or contradicts other sources | 7. Generate | Compare what AI says with your current page |
Most brands that are missing from AI answers fail at step 4 or step 6. Step 4 is a settings problem. Step 6 is a writing problem.
Writing for the chunker
Retrieval rewards pages that survive being cut into pieces. A few habits help:
- One question per section. Put a heading that names the thing ("Pricing for teams under 10 people"), then answer it in the first two sentences.
- Repeat the noun. A chunk that says "It costs $89 a month" has lost the word "it". "Renown Starter costs $89 a month" survives on its own.
- Facts in text, not pictures. Prices, specs and plan limits in images, PDFs or tabs that need a click are hard to retrieve. Plain HTML text and tables are easy.
- Tables for comparisons. A table row keeps the name and the number together, which is exactly what a passage ranker wants.
- Say who it's for. Pages that state the use case ("for small SaaS teams", "for dental clinics") match the long, specific searches models write.
- Keep it current. The fetched page is the source of truth for that answer. Last year's pricing page will be quoted as this year's.
None of this is exotic. It's the same work as writing a page a busy human can skim, with less tolerance for clever headings.
RAG, grounding and training data, side by side
| Layer | Training data | RAG | Grounding |
|---|---|---|---|
| What it is | Text the model learned from before its cutoff | Fetching passages at question time | Tying the answer's claims to sources |
| When it happens | Months before the question | Seconds before the answer | While the answer is written and cited |
| What you can change | Your presence in the text future models train on | Crawl access, indexing, page structure, freshness | Consistency of your facts across sources |
| How fast changes show | Next model release | Days, sometimes hours | Same as RAG, once sources agree |
How to see it working
You can watch retrieval from the outside. Ask an assistant a buyer question in your category, open the sources it lists and note which pages got cited and which competitors appear. Do it across a dozen questions and the pattern shows up fast. The free Ask AI tool builds those questions for you and opens them in each assistant.
Before that, rule out the boring failure. Run your site through the AI crawler checker to see which AI bots robots.txt and your firewall turn away, and what they read without JavaScript. The AI crawlers glossary entry explains which bot does what.
Renown records the sources each engine cites for your tracked prompts, so you can see which pages get retrieved for your category and whether yours is one of them.