
A language model on its own can’t cite anything. It keeps no record of where its knowledge came from. Retrieval-augmented generation (RAG) changes that by fetching documents first and writing second. Nearly every AI search product works this way, which makes RAG the step that turns a ranking page into a cited source.
The term comes from a 2020 paper by Patrick Lewis and co-authors, presented at NeurIPS that year. They combined two kinds of memory. Parametric memory is what a pretrained model stores in its weights. Non-parametric memory was a dense vector index of Wikipedia, searched by a neural retriever.
The authors named two problems that outside memory could solve. One was showing where an answer came from. The other was updating knowledge without retraining. Answer engines adopted RAG for the same two reasons.
Systems differ in the details. Some retrieve with keyword search, some with vector search, and many combine the two. Web answer engines also rewrite the user’s prompt into several searches before retrieving. The step-by-step sequence is covered under retrieval pipeline.
Newer systems retrieve in loops. An agentic RAG system checks whether it has enough evidence and searches again when it doesn’t. Deep research modes in AI assistants work this way, running many searches for one report. See multi-step retrieval for how those rounds work.
| Term | What it is | Can it cite sources? |
|---|---|---|
| RAG | An architecture: retrieve documents, then generate | Yes |
| Grounding | The aim: answers tied to verifiable sources | Yes, when it runs through retrieval |
| Fine-tuning | Extra training that changes the model’s weights | No |
| Long context | Whole documents placed in a large window | Only if the system tracks where text came from |
Grounding is usually achieved through RAG. Fine-tuning is a different tool, better at teaching format and tone than facts.
RAG systems split documents into chunks before indexing, and a chunk loses the text around it. Anthropic’s contextual retrieval write-up gives an example. A chunk says a company’s revenue grew 3% over the previous quarter, but names neither the company nor the period. A retriever can’t match it to a question about that company.
Anthropic’s fix was to add a short context line to each chunk before indexing. Paired with contextual keyword matching, that cut top-20 retrieval failures by 49%. Adding reranking took the cut to 67%.
Publishers can apply the same idea in their writing. Every section should name its subject and state its main fact, so it still makes sense after it’s cut loose from the page.
AI search engines are RAG systems at web scale. ChatGPT search, Perplexity, AI Overviews and Copilot search first, then write from what they found. Each page has to clear three gates.
Our own site shows the scale involved. ansvisor.com was a cited source in 9.6% of the 103,427 AI answers in our dataset. Source: Ansvisor tracking data, September 15 to October 14, 2026. Each of those citations began with a retriever selecting one of our pages. Our guide on how to get cited in ChatGPT and AI search covers the page-level work.
Ansvisor’s Citations Monitoring lists the URLs AI answers cite, filtered by prompt, topic, platform, region and language. Its gap view shows prompts where competitor pages get cited and yours don’t. Query Fan-Out adds the searches ChatGPT, Perplexity and Microsoft Copilot ran, so you can see what the retrieval step looked for. Start a 14-day free trial to see the sources behind your own prompts.
Each prompt you win brings more mentions, more citations and more buyers. Ansvisor keeps finding the next one.
RAG is a way of building AI systems in two steps. A retriever finds documents relevant to a question, and a language model writes the answer from them. It lets the model use current or private information it never saw in training, and it makes citations possible.
Documents are split into chunks and indexed, often as embeddings. When a question arrives, the system retrieves the most relevant chunks, adds them to the prompt and asks the model to answer from them. Many systems also rerank results before generation and attach citations after it.
RAG adds outside documents to the prompt at answer time and leaves the model unchanged. Fine-tuning changes the model’s weights with extra training. RAG suits facts that change and answers that need sources, while fine-tuning suits style, format and narrow behaviors.
It follows the same pattern. ChatGPT search, Perplexity, Google AI Overviews and Microsoft Copilot run web searches, read the results and write answers that link to their sources. Each uses its own index, ranking and citation rules, so the pages they pick differ.
In a RAG-based answer engine, a page can be cited only if the retriever finds it and selects one of its passages. Crawl access, indexing and self-contained passages become conditions for appearing in AI answers, next to the authority signals SEO already works on.
See how AI answers describe your brand, find out why competitors get picked, and close the gaps with AI agents that work alongside your team.
14-day free trial or 50% off your first month with code SAVE50.
Continue exploring key AI visibility concepts.
Measure and improve how often your brand appears in AI-generated answers.
Learn more →Strategies for increasing visibility in answer engines and AI summaries.
Learn more →Optimizing content for AI-powered discovery experiences.
Learn more →Understand how OpenAI retrieves and synthesizes information.
Learn more →AI-generated summaries that appear directly in Google Search.
Learn more →Explore how Perplexity cites and presents sources.
Learn more →References and sources used by AI systems to support answers.
Learn more →Measure the quality and influence of cited sources.
Learn more →How easily AI systems can discover and reuse your content.
Learn more →New terms are added regularly.
Help us improve the page or suggest a new term →
Co-founder at Ansvisor
Cihan Geyik is the co-founder of Ansvisor, an open-source AI Visibility platform for AI Search. With more than 15 years of experience in digital marketing and growth, he writes about AI visibility, AI search, AEO, GEO, citations, and answer engines. He focuses on helping brands understand and improve their presence across ChatGPT, Gemini, Google AI Overviews, Bing AI Mode and other AI answer engines.
Add Ansvisor as a preferred source and Google will show you more of our AI search, AEO and GEO guides.
© 2026 Ansvisor. All rights reserved. Ansvisor is an open-source AI Search Execution Platform for AI Visibility. Ansvisor is a brand owned and operated by Empler AI Inc.
The open-source AI Search Execution Platform. Track how AI answers talk about your brand and act on it.
Open source · MIT license© 2026 Ansvisor, a brand of Empler AI Inc. · 1401 PE Ave. Unit 105, Wilmington, DE 19806, United States
Cookie preferences
We use cookies to keep the site working and, with your OK, to measure traffic and improve our marketing. Read our Cookies & Tracking policy.