# Retrieval-augmented generation (RAG)

> What retrieval-augmented generation (RAG) is, why AI answers that search the web repeat what third-party pages say, and what that means for product accuracy.

By Dries Augustyns, Founder of Corrigend. Published 2026-10-31, updated 2026-10-31.

**Short answer:** Retrieval-augmented generation (RAG) is a technique where an AI model first retrieves relevant documents, such as web pages, and then writes its answer from them. It is why AI search answers about your product often repeat what the pages they retrieved say, right or wrong.

Retrieval-augmented generation, or RAG, pairs a language model with a search step. Instead of answering only from what it absorbed in training, the system first retrieves documents relevant to the question, then generates an answer grounded in them. The approach was named in a 2020 paper by Patrick Lewis and colleagues, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks," which reported more factual output than a model working from its parameters alone ([arXiv](https://arxiv.org/abs/2005.11401)).

## What it means in practice

AI search features work this way. When ChatGPT searches the web, Perplexity answers with citations, or Google shows an [AI Overview](https://corrigend.com/glossary/ai-overview), the answer is built from pages retrieved at that moment. Which pages get retrieved matters. Profound's citation study, which is vendor research, found Reddit was the most cited domain for Perplexity (6.6% of citations) and AI Overviews (2.2%), while Wikipedia led for ChatGPT ([Profound](https://www.tryprofound.com/blog/ai-platform-citation-patterns)).

## An example

Hypothetically, someone asks an assistant "Does Ledgerly have an API?" It retrieves Ledgerly's docs and a [comparison page](https://corrigend.com/glossary/comparison-page) that says "no public API." If the comparison page ranks higher or is more detailed, the answer may say no, even though Ledgerly's docs say yes.

## Why it matters for accuracy

RAG cuts both ways. It means a wrong answer is often not a [brand hallucination](https://corrigend.com/glossary/brand-hallucination) but a faithful summary of a wrong page. It also means fixing that page, or making your own page clearer, can change future answers. The practical step is to look at what an answer cites. See [how to trace the source of AI misinformation](https://corrigend.com/guides/find-the-source-of-ai-misinformation).

## Related

- [AI Overview](https://corrigend.com/glossary/ai-overview): What a Google AI Overview is, how often it appears, where its claims come from, and how to report one that gets your product wrong.
- [Brand hallucination](https://corrigend.com/glossary/brand-hallucination): What a brand hallucination is, real examples of AI inventing facts about a company, and how to tell an invention from a repeated error.
- [Where ChatGPT got that from](https://corrigend.com/guides/find-the-source-of-ai-misinformation): A wrong AI answer about your company almost always repeats a page. Here is how to find the page, using citations, exact phrases and a few searches.

---

Canonical: https://corrigend.com/glossary/retrieval-augmented-generation

Join the Corrigend waitlist at https://corrigend.com/#waitlist.
