The name comes from a 2020 paper by Lewis and colleagues at Facebook AI Research. Today almost every AI search product is a RAG system at heart: ChatGPT search, Perplexity, Google AI Overviews and AI Mode, Copilot and Claude with web search all retrieve pages before they answer.
How it works
- The system turns the user’s question into one or more search queries.
- A retriever pulls candidate documents from an index (a web search engine, a vector database, or both).
- The system selects passages from those documents and puts them in the model’s context window.
- The model writes an answer from that context and, in search products, cites the sources.
Why it matters for SEO and GEO
The model can only cite what the retriever found. That makes retrieval the gate. If your page is not indexed by the backend the product uses, is blocked to its crawler, or loses at the passage selection step, the generation step never sees it.
Example
# simplified RAG loop
queries = rewrite(question) # e.g. 3 to 5 sub-queries
docs = search_index.search(queries, k=10)
passages = select_passages(docs, question, limit=8)
answer = llm.generate(question, context=passages)
Common mistakes
- Assuming the model “knows” your site from training data. Training data is old and fuzzy. Retrieval is where current pages come in.
- Writing long pages where the answer is spread across many sections. Passage selection favors chunks that make sense alone.
How Renderly handles it
We optimize for each stage: crawl access, index presence, passage quality. See how LLMs choose sources.