Short answer: Retrieval-augmented generation (RAG) is a technique where an AI system retrieves relevant documents, such as web pages or database entries, and feeds them to a language model before it writes a response. The model then answers from that retrieved material instead of memory alone, which makes answers more current and traceable but ties their quality to what retrieval finds.
What is retrieval-augmented generation?
Retrieval-augmented generation is a way of pairing a language model with an external source of knowledge it can consult at answer time. The idea was formalized in a 2020 paper by Lewis and colleagues, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. The authors observed that large language models store knowledge in their parameters but struggle to "access and precisely manipulate" it, and that tracing where an answer came from and updating stale knowledge were open problems.
Their solution combined two kinds of memory. Parametric memory is the knowledge baked into the model's weights. Non-parametric memory is an external index, in their case a dense vector index of Wikipedia, that a retriever searches for relevant passages. The paper reported that this combination produced language that was more specific, more diverse and more factual than a model working from parameters alone.
How does RAG work step by step?
A RAG system works by turning the question into a search, collecting the best-matching passages and handing them to the model as context. The pipeline usually looks like this:
- Index. Documents are split into chunks and stored so they can be searched, often as numerical embeddings that capture meaning.
- Retrieve. When a question arrives, the system finds the chunks most similar to it, sometimes combining meaning-based search with keyword search.
- Rank. The candidates are sorted, and only the top handful are kept because the model's context window is limited.
- Generate. The model reads the question plus the retrieved chunks and writes an answer, ideally citing the chunks it used.
The public AI assistants follow the same pattern with the live web as the document store. Their search tools run queries, return pages and pass extracted text to the model, as described in our overview of how AI assistants answer questions. Google says its AI Overviews and AI Mode may use a "query fan-out" technique that issues multiple related searches across subtopics and data sources to build a response.
Why does chunking matter so much?
Chunking matters because a passage that loses its context can be missed by retrieval or misread by the model. Anthropic gives a clear example in its write-up on contextual retrieval: a filing chunk that reads "The company's revenue grew by 3% over the previous quarter" does not say which company or which quarter, so a question about one specific company's growth may never match it.
Anthropic's fix was to prepend a short, chunk-specific explanation to each chunk before indexing it. In its tests, that approach combined with keyword (BM25) search reduced the rate of failed retrievals by 49%, and by 67% when a reranking step was added.
For anyone whose reputation is being summarized by AI, the lesson is practical. A sentence on your site such as "She joined in 2019 and led the expansion" may be retrieved without the paragraph that names her or the company. Pages that restate who they are about, in plain words, near the facts that matter are easier to retrieve correctly.
Where does RAG go wrong?
RAG goes wrong when retrieval returns the wrong material or when the model fails to use the right material well. The common failure points are:
- Wrong entity. A search for a common name returns pages about someone else, and the model writes a confident blended profile. Our guide to identity confusion covers this in depth.
- Stale pages. An old bio or archived article ranks above the current one, so the answer is grounded in out-of-date facts.
- Thin results. Only one or two weak pages are found, so the model fills gaps from training data.
- Buried evidence. Research titled Lost in the Middle found that model performance "is often highest when relevant information occurs at the beginning or end of the input context," and drops when it sits in the middle of a long context.
That last finding suggests position matters twice: where your page ranks in retrieval, and where the key fact sits within your page.
How is RAG different from what the model already knows?
RAG differs from trained knowledge in when the information was gathered and whether it can be traced. The comparison below shows the trade-offs.
| Trained knowledge only | Retrieval-augmented | |
|---|---|---|
| Freshness | Frozen at the training cutoff | As current as the retrieved pages |
| Traceability | No direct source | Can cite the pages used |
| Main risk | Outdated or invented details | Grounding in the wrong or weak page |
| What you can influence | Very little, slowly | The pages that rank and get retrieved |
The bottom row is the important one. You cannot edit what a model learned in training, but you can influence which accurate pages exist and how clearly they describe you. The question of how recency affects AI answers builds directly on this distinction.
What does RAG mean for how AI describes you?
RAG means the AI's description of you is largely a summary of whatever retrieval finds for your name at that moment. That shifts the job from "train the model" to "make the right pages findable and unambiguous."
A few habits help retrieval land on the right material:
- Keep one authoritative, current page that states plainly who you are and what you do.
- Put the identifying facts (full name, role, organization, location) in the same passage, not scattered across the page.
- Make sure independent sources corroborate those facts, since AI systems weigh what makes content credible.
- Retire or update outdated bios that still rank.
Our explainer on how AI chooses sources goes further into what tends to get retrieved.
How can you check what retrieval is finding about you?
You can check by looking at which sources each assistant cites when asked about your name, then judging whether those pages are accurate and actually about you. JudgedbyAI does this across ChatGPT, Claude, Gemini and Grok, grounding the check in live search results and showing which sources shaped each answer. Our methodology explains the scoring, and you can run a free audit to see your own results in about 90 seconds.