Key points
- RAG connects a language model to a document index queried at question time (Lewis et al., 2020).
- Dense retrieval with embeddings beats BM25 by 9 to 19 points of top-20 accuracy (Karpukhin et al., 2020).
- Models use information at the beginning or end of their context better (Liu et al., 2023).
- Google sets no additional requirement for AI Overviews: an indexed page eligible for a snippet.
Summary: ChatGPT, Gemini, Perplexity and Google AI Overviews pair a document retrieval system with a language model. This architecture, retrieval-augmented generation (RAG), was formalized by Lewis et al. in 2020. Passages are first retrieved by semantic similarity, then re-ranked, then synthesized with citations. Those citations remain imperfect: in the audit of four generative engines by Liu, Zhang and Liang (2023), only 51.5% of generated sentences were fully supported by their sources.
What is retrieval-augmented generation?
Retrieval-augmented generation (RAG) refers to a language model that consults an external corpus before answering. In the founding paper, Lewis et al. (2020) combine a parametric memory, a pre-trained seq2seq model, with a non-parametric memory, a dense vector index of Wikipedia accessed by a neural retriever. Their system set the state of the art on three open-domain question-answering tasks.
The survey by Gao et al. (2023) sums up the rationale: models alone suffer from hallucination, outdated knowledge and hard-to-trace reasoning; retrieving external documents improves the accuracy and credibility of answers on knowledge-intensive tasks, and lets that knowledge be updated without retraining the model.
Consumer engines apply this principle at web scale. OpenAI documents a dedicated crawler, OAI-SearchBot, used to surface websites in ChatGPT's search results. Google states that AI Overviews and AI Mode may use a "query fan-out" technique: several related searches are issued across subtopics and data sources to build the answer.
Step 1: semantic relevance through embeddings
The first selection relies on how close in meaning each passage is to the question. The question and the passages are converted into vectors, embeddings, and cosine similarity measures the angle between them: the smaller the angle, the more relevant the passage.
Two papers made this method practical. Reimers and Gurevych (2019) adapted BERT to produce sentence embeddings comparable with cosine similarity: finding the most similar pair in a set of 10,000 sentences drops from about 65 hours with BERT to about 5 seconds with their model, Sentence-BERT. Karpukhin et al. (2020) showed that a dense retriever trained on a small number of questions and passages beats a Lucene-BM25 system by 9 to 19 absolute points of top-20 passage accuracy.
For a writer, the consequence is that selection happens at passage level, not page level. A paragraph that names its subject explicitly and answers a precise question is more likely to be matched to that question than one that relies on the context of earlier sections.
Step 2: re-ranking passages
Vector search is fast but approximate. Systems therefore add a re-ranking step: a costlier model reads the question and each passage together, instead of comparing two vectors computed separately. Nogueira and Cho (2019) applied BERT to this re-ranking; their system took first place on the MS MARCO leaderboard, with a 27% relative gain in MRR@10 over the previous best result. Only the best re-ranked passages are passed to the model that writes the answer.
Step 3: synthesis, and why position matters
The language model receives the selected passages and writes its answer. Not all passages are used equally. Liu et al. (2023) found that performance is often highest when the relevant information sits at the beginning or end of the context, and degrades significantly when the model must retrieve it from the middle, even for models built for long contexts.
At page level, the lesson matches a known editorial rule: give the answer in the first sentence of the section, then the detail.
Step 4: source attribution
Once the answer is written, the engine attaches citations. Their quality can be measured. Liu, Zhang and Liang (2023) audited four generative engines (Bing Chat, NeevaAI, perplexity.ai and YouChat): on average, 51.5% of generated sentences were fully supported by their citations, and 74.5% of citations actually supported the sentence they were attached to.
A page where every figure is already tied to its source leaves less room for interpretation when the engine cites it.
Authority and freshness: what is documented
No answer engine publishes an authority score. In its documentation on helpful, reliable content, Google writes that its systems identify a mix of factors related to experience, expertise, authoritativeness and trustworthiness (E-E-A-T), while stating that E-E-A-T itself is not a specific ranking factor.
External measurements point the same way. Chen, Wang, Chen and Koudas (2025) compared the sources cited by ChatGPT, Perplexity and Gemini with Google's, across several verticals and languages. AI engines show a systematic bias toward third-party earned media over brand-owned content, and differ from each other in domain diversity, source freshness and sensitivity to query phrasing.
Engines compared: what their publishers and studies say
| Engine | What is documented | Source |
|---|---|---|
| ChatGPT | The OAI-SearchBot crawler surfaces websites in ChatGPT search results | OpenAI |
| Google AI Overviews and AI Mode | Multiple searches per subtopic (query fan-out); any indexed page eligible for a snippet can be a supporting link | Google Search Central |
| Perplexity | Answers with inline citations, included in the 2023 verifiability audit | Liu et al. |
| ChatGPT, Perplexity, Gemini | Preference for third-party media, differences in source freshness and diversity across engines | Chen et al. |
What these mechanisms change for a page
Each step above translates into a checkable writing rule:
- One question per section, answer in the first sentence. Retrieval works at passage level, and the model uses what comes first more reliably.
- The exact vocabulary of the topic. Embeddings match meanings; a passage that names the expected concepts sits closer to the question.
- Every figure with its source and link. Engine citations are imperfect; explicit attribution limits errors.
- A presence beyond your own site. AI engines' preference for third-party media cannot be offset by brand content alone.
- An indexed page eligible for a snippet. It is the only technical condition Google sets for AI Overviews.
For the full approach, see our GEO guide for businesses.
Sources
- 1.Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, Lewis et al. (2020)
- 2.Retrieval-Augmented Generation for Large Language Models: A Survey, Gao et al. (2023)
- 3.Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks, Reimers et Gurevych (2019)
- 4.Dense Passage Retrieval for Open-Domain Question Answering, Karpukhin et al. (2020)
- 5.Passage Re-ranking with BERT, Nogueira et Cho (2019)
- 6.Lost in the Middle: How Language Models Use Long Contexts, Liu et al. (2023)
- 7.Evaluating Verifiability in Generative Search Engines, Liu, Zhang et Liang (2023)
- 8.Generative Engine Optimization: How to Dominate AI Search, Chen, Wang, Chen et Koudas (2025)
- 9.AI features and your website, Google Search Central
- 10.Creating helpful, reliable, people-first content, Google Search Central
- 11.Overview of OpenAI Crawlers, OpenAI