What Is RAG?
RAG, or retrieval-augmented generation, is the method an AI tool uses to look information up before answering rather than relying only on what it memorised during training. The tool searches a source, retrieves the most relevant passages, and writes its answer from those passages. It is why a page has to be retrievable before it can be quoted.
Key facts
- RAG is why AI answers can cite sources and reference recent events.
- The retrieval step favours short, self-contained passages over long, winding ones.
- If a page is blocked from crawling, it cannot be retrieved and cannot be cited.
- Amazon, Google and OpenAI all describe retrieval-based approaches in their published research.
How does RAG work, step by step?
The sequence is the same whether the system is a shopping assistant or a search engine.
- The user asks a question.
- The system converts the question into a search against an index, which may be the web or a private document set.
- It retrieves the passages that look most relevant.
- It writes an answer using those passages, usually citing them.
- Anything not retrieved is invisible to that answer, however good it is.
Why does RAG matter for a website?
RAG changes what a well-written page looks like. A passage that makes sense on its own, states its facts plainly and does not depend on the three paragraphs above it is far more likely to be retrieved and quoted.
This is also why pronouns are a quiet problem. A sentence beginning "This means that…" loses its meaning the moment it is lifted out of the page, so the retrieval system has less reason to use it.
RAG FAQs
Do I need to do anything technical for RAG?
No special technology is required. The useful changes are editorial: self-contained sections, plain statements of fact, clear headings in question form, and no reliance on surrounding paragraphs for meaning.
Is RAG the same as search?
Search is the retrieval half. RAG adds a generation step, where a language model writes an answer from what was retrieved. The practical difference for a site owner is that being retrieved no longer guarantees a click.
How do I know if my pages are being retrieved?
Check referral traffic from AI tools in your analytics, and ask the assistants the questions your customers ask and see whether your pages appear as sources. Neither is complete, but together they give a usable picture.
Next in the glossary
AEO
AEO, or answer engine optimisation, is the practice of getting a business named and cited in the answers AI tools give....
GEO
GEO, or generative engine optimisation, is the practice of making sure generative AI tools describe and recommend a...
LLMO
LLMO, or large language model optimisation, is the practice of shaping how large language models such as ChatGPT, Claude...
Crawling
Crawling is the process by which a search engine discovers and fetches the pages on a website. A crawler follows links...
Indexing
Indexing is the step where a search engine stores and organises a page it has crawled, so that the page can be returned...