Abruf-gestützte Generierung (RAG)

wie RAG funktioniert — the retrieve-then-generieren pattern behind Google AI Overviews, ChatGPT Suche, und Perplexity — und war es bedeutet für getting Ihre Inhalt cited.

Erstveröffentlicht: 24. Juni 2026 · Zuletzt aktualisiert: 3. Aug. 2026 · Fortgeschritten
Sprachen

RAG (Retrieval-Augmented Generation) ist the retrieve-then-generieren pattern behind AI search. es läuft two phases bei Anfrage time — retrieval (finden relevant passages aus ein external index) und augmented generation (feed diese passages zu ein LLM zu schreiben ein grounded, cited Antwort) — ohne ever changing the model's weights. es ist wie AI answers abdecken Informationen beyond ein model's training cutoff. The retrieval phase chains chunking → embeddings → vector search → re-Ranking → top-k passages. RAG reduces hallucinations aber tut nicht eliminate them — und insufficient retrieved Kontext kann machen them worse. für SEO es gibt kein separate AI index: being crawlable, indexed, und structured into klar, self-contained passages ist the prerequisite für being retrieved und cited.

Lewis und colleagues’ 2020 System paired sequence generation mit dense retrieval aus ein non-parametric index. Evidence for this claim The original RAG paper combined a pretrained sequence-to-sequence model with a non-parametric dense-vector index retrieved during generation. Scope: Lewis et al.'s 2020 RAG architecture and experiments, not every modern retrieval system. Confidence: high · Verified: Lewis et al.: Retrieval-Augmented Generation Google Cloud’s current overview defines RAG mehr broadly als supplying retrieved external knowledge zu ein model. Evidence for this claim Google Cloud describes RAG as retrieving relevant information from external knowledge sources and providing it to a model to improve generated responses. Scope: General RAG architecture in Google Cloud documentation; quality depends on retrieval, source quality, and generation. Confidence: high · Verified: Google Cloud: RAG overview

TL;DR — RAG ist ein two-phase, inference-time pattern: retrieval (finden relevant passages in ein external corpus) then augmented generation (feed diese passages zu ein LLM zu produce ein grounded, cited Antwort). The weights never ändern — es combines the model’s parametric memory mit non-parametric memory retrieved live. The retrieval phase chains chunking → embeddings → vector search → re-Ranking → top-k. “Naive” RAG ist retrieve-then-generieren; advanced RAG adds Anfrage rewriting und re-Ranking; agentic RAG adds iterative, multi-hop retrieval. Retrieval kann ground answers aber tut nicht guarantee correctness; in one Gemma evaluation, insufficient Kontext coincided mit mehr incorrect answers. für SEO: es gibt kein separate AI index; crawlability, indexing, und passage-level clarity sind the prerequisites für being retrieved.

The two phases (und warum “inference time” ist the whole point)

Retrieval is a pipeline: chunk, embed, search, re-rank, then hand the survivors to the model. Quelle: /ai-search/how-search-works/rag/

Five stages run left to right at inference time. Chunking splits documents into retrievable passages. Embeddings represent each passage as a dense vector. Vector search retrieves candidates and some systems combine it with BM25 keyword search. Re-ranking re-scores and narrows the candidate set. The top surviving passages enter the model context. The model's weights do not change.

© Patrick Stox LLC · CC BY 4.0 ·

RAG combines trained model memory with retrieved context at query time — without changing the weights. Quelle: /ai-search/how-search-works/rag/

Two sources feed one generation step. Parametric memory is knowledge encoded in the model weights during training and is limited by the training data and cutoff. Non-parametric memory consists of passages retrieved from an external index at query time. Generation uses both while the weights remain unchanged, producing an answer that can be grounded in and cite the retrieved sources; this does not guarantee correctness.

© Patrick Stox LLC · CC BY 4.0 ·

Break the acronym apart und Sie haben the model: Retrieval plus Augmented Generation. ein Anfrage comes in; the System retrieves the meisten relevant passages aus ein external corpus; es injects diese passages into the LLM’s Kontext window; the LLM generates ein Antwort grounded in them.

The detail that everyone erhält wrong: dies happens bei inference time, und the model’s weights sind never touched. RAG ist nicht training und es ist nicht fine-tuning. The original 2020 paper aus Patrick Lewis und colleagues bei Facebook AI Recherche framed es als combining two kinds von memory — parametric memory (knowledge baked into the weights during training) und non-parametric memory (knowledge retrieved live aus ein index). RAG uses both bei once. AWS puts the practical case plainly: retraining ein foundation model für fresh oder domain-specific knowledge ist expensive, und “RAG ist ein mehr cost-effective approach zu introducing neu Daten zu the LLM.”

(The naming, für war es ist worth, war ein accident. Lewis later admitted: “wir definitely would haben put mehr thought into the name hatte wir known unser arbeiten would werden so widespread… wir immer planned zu haben ein nicer sounding name, aber wenn es came time zu schreiben the paper, kein one hatte ein better idea.”)

Innerhalb der Retrieval-Phase

“Retrieve the relevant passages” ist doing ein lot von arbeiten in that sentence. in ein real System es ist ein pipeline:

  1. Chunking. Documents erhalten split into retrievable pieces. Chunk size ist ein real tradeoff — too small und ein passage loses its Kontext; too large und es floods the token budget mit irrelevance. Strategies range aus fixed token counts (100/256/512) zu recursive/sliding windows zu “Small2Big” (retrieve ein small sentence, zurückgeben its parent chunk für generation).
  2. Embeddings. jede chunk ist turned into ein dense vector — ein numeric representation von its meaning — so similarity ist computed semantically, nicht durch Keyword match. dies ist warum Inhalt über ein topic erhält retrieved even wenn es tut nicht verwenden the exact Anfrage phrasing.
  3. Vector search. The Anfrage ist embedded too, und the System findet the chunks whose vectors sit closest zu es. meisten production stacks ausführen hybrid search — dense vector retrieval plus BM25 Keyword Suche — weil jede catches recall the other misses.
  4. Re-Ranking. ein separate model re-scores the candidates durch relevance zu the Anfrage und reorders them, “effectively reducing the overall Dokument pool.” nur the top survivors machen es into the Kontext.
  5. Top-k into the prompt. The beste passages sind concatenated mit the user’s Anfrage und handed zu the generator.

Chunking ist the fragile Link. Anthropic identified that “traditional RAG solutions entfernen Kontext wenn encoding Informationen” — ein chunk pulled out von its Dokument loses the surrounding Kontext that made es meaningful. Their Contextual Retrieval technique (prepending chunk-specific Kontext vor indexing) reduced failed retrievals durch 49%, und durch 67% combined mit re-Ranking. das ist ein strong signal that the chunking problem ist real — und that self-contained, Kontext-rich passages sind easier zu retrieve correctly.

Naive, advanced, und agentic RAG

The survey literature (Gao et al., 2023) splits RAG into ein nützlich taxonomy:

  • Naive RAG“ein traditional process that enthält indexing, retrieval, und generation.” Retrieve top-k once, generieren once. es “struggles mit precision und recall, leading zu the selection von misaligned oder irrelevant chunks.”
  • Advanced RAG — adds “pre-retrieval und post-retrieval strategies.” Pre-retrieval: Anfrage rewriting und better indexing (einschließlich HyDE, wo the model generates ein hypothetical Antwort, embeds that, und retrieves documents that look like answers anstatt questions). Post-retrieval: re-Ranking und Kontext compression.
  • Modular / agentic RAG — the model retrieves, reasons über war ist still missing, und retrieves again, iterating across multiple hops. dies ist the current state von AI search. als Michael King put es: “The retrieve-once-then- generieren pattern that defined the erste wave ist obsolete… Agentic RAG ist now the Standard.”

dies matters für SEO weil Inhalt now hat zu survive multiple retrieval rounds und contradiction-checking — nicht just ein single retrieval pass.

tut RAG eliminate hallucinations? kein.

In one evaluation, Gemma answered incorrectly on 10.2% of questions with no context and 66.1% with insufficient context; this is not a universal model effect. Quelle: Data: Google Research

Two bars report Gemma's incorrect-answer rate in one Google Research evaluation. With no context, the rate is 10.2 percent. With insufficient context, the rate is 66.1 percent. The comparison comes from Google Research's ICLR 2025 sufficient-context study and should not be generalized to every model, dataset, or retrieval system.

RAG kann ground answers in retrieved Quellen, aber the LLM kann still misread oder over-interpret war es pulled. Google Recherche (ICLR 2025) dokumentiert ein counterintuitive Ergebnis in one evaluation: Gemma produced incorrect answers auf 10,2% von questions mit kein Kontext und 66,1% mit insufficient Kontext. The researchers Bericht that models kann “excel mit sufficient Kontext aber fail zu recognize wenn Kontext ist insufficient.” Treat that als ein model- und evaluation-specific warning, nicht proof that retrieval universally causes worse answers. The practical lesson ist narrower: retrieval quality und Kontext sufficiency benötigen zu sein evaluated anstatt assumed. Google operationalized the finding als ein LLM re-ranker in its Vertex AI RAG Engine.

RAG vs. Fine-Tuning

These erhalten conflated constantly, und sie sind fundamentally different:

  • RAG retrieves external Informationen bei Anfrage time. Weights unchanged. beste für fresh/changing Informationen, citation requirements, und cost. The survey gefunden “RAG consistently outperforms [unsupervised fine-tuning], für both existing knowledge encountered during training und entirely neu knowledge.”
  • Fine-tuning modifies the model’s weights in ein separate training ausführen. beste für changing style und behavior, oder teaching stable domain knowledge that tut nicht ändern.

Sie’d reach für RAG zu machen ein model know the latest facts; Sie’d reach für fine-tuning zu ändern wie es talks.

RAG in der Praxis: Google, ChatGPT, Perplexity

  • Google AI Overviews. Google calls RAG “ein technique (auch known als grounding)… relying auf unser core Suche Ranking Systeme zu retrieve relevant, up-zu-date Web Seiten aus unser Suche index.” Two things folgen. erste, dort ist kein separate AI index“unser generative AI features auf Google Suche sind rooted in unser core Suche Ranking und quality Systeme.” Second, Google läuft query fan-out: “concurrent, related Anfragen generiert durch the model zu Anfrage mehr Informationen.” ein single question kann spawn multiple sub-Anfragen, jede retrieving different Inhalt — so Ihre Inhalt hat zu satisfy the implied sub-questions, nicht just the head Anfrage.
  • ChatGPT Suche. Launched (October 2024) mit Bing als its Daten partner, und OpenAI’s own crawler documentation confirms OAI-SearchBot tut independent fetching und indexing für Suche citations, separate aus GPTBot’s training-crawlen. OpenAI hasn’t published the current retrieval mix zwischen Bing und its own index, und OpenAI hat since positioned ChatGPT Suche als ein standalone competitor zu Bing anstatt ein wrapper rund es — so treat “es ist basically Bing” als ein simplification. The dokumentiert, actionable lever ist narrower und mehr durable: don’t block OAI-SearchBot in robots.txt, weil das ist the crawler OpenAI itself names als the one that indexes Inhalt für Suche citations.
  • Perplexity. erstellt auf hybrid retrieval (Vespa.ai — BM25 + dense) mit custom embedding models und ein strict re-Ranking threshold: durch Drittanbieter- analysis, nur the top ~30% von 60-plus retrieved Quellen survive zu the generation stage, und “citations sind nicht retrofitted post-generation — they sind structurally assigned during Kontext assembly.” Deep Recherche läuft the agentic loop across dozens von searches.

war RAG bedeutet für SEO

Strip away the jargon und the playbook ist concrete:

  • Being in the index ist the prerequisite — full stop. kein separate AI index bedeutet the crawlen → index → retrieve chain hat zu sein intact. wenn ein Seite kann nicht sein crawled und indexed, es kann nicht sein retrieved into ein AI Antwort. The gleich ist true für the AI Engines that erstellen their own pools: AI crawlers like OAI-SearchBot und PerplexityBot haben zu sein allowed zu fetch Sie, oder Sie sind invisible zu diese answers.
  • schreiben self-contained passages. RAG retrieves fragments, nicht whole Seiten. als iPullRank’s Francine Monahan put es, AI Systeme examine “fragments von Seiten rather than the Seite als ein whole” — so craft “stand-out passages und phrases” that Antwort ein specific question auf their own. dies ist exactly the H2/H3 structure und klar topic sentences good SEO already rewards. Google explicitly says nicht zu chop Ihre Inhalt into tiny pieces für AI — well-structured Inhalt chunks well auf its own.
  • abdecken the sub-topics. Query fan-out bedeutet one question kann trigger viele retrievals. Depth across related sub-questions beats one Seite stuffed rund ein single Keyword.
  • Authority drives citation mehr als ranken position. aus ein 8 000-citation analysis: “Strong organic Suche presence und broad Web visibility leads zu AI citations, nicht the other Weg rund” — und “highly authoritative Inhalt aus ein lower-Ranking Seite” sometimes erhält cited over ein weniger credible top-Ranking one. My own Daten lines up (aus my AI Overview citation research): mentions auf heavily-linked Seiten sind the strongest predictor von AI Overview inclusion (ρ ≈ 0,70), und branded Web mentions correlated ~0,66 across 75 000 brands.
  • Fresh Inhalt hat ein edge. AI citations skew meaningfully fresher than organic Ergebnisse, so currency matters.

wenn Sie wollen the one-sentence version: RAG didn’t ersetzen SEO — es raised the stakes auf the parts von SEO that waren immer über being findable und being klar.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.