
AEO vs. SEO: What's the Difference? (And Do You Need Both?)
AEO gets your brand cited inside AI-generated answers. SEO gets it ranked in a list. The gap between those two outcomes is widening — and most brands are only doing one of them.
A technical guide to how LLMs retrieve passages, rank sources, attach citations, prevent fabrication, and expose attribution across major AI platforms.

LLMs produce reliable citations when a retrieval system fetches source passages, places them in context, and binds generated claims to those passages. Training memory can generate plausible references, but it does not preserve a verifiable document pointer. A page therefore competes twice: first for retrieval, then for attribution inside the generated answer.
An LLM citation is an attribution the model attaches to a sentence it generated, pointing back to a retrieved passage that supported the claim. That makes it a different object from a traditional search result. A blue link is a ranked pointer to your page, and the click is the payoff. A generated citation is a byproduct of synthesis: the model wrote its own answer and attached a pointer to your content for supplying part of it.
When you ask how do LLMs cite sources, you’re asking two questions. First, how does your content get into the model’s context window at answer time. Second, once it’s there, why does the model attribute a sentence to your passage instead of the four passages sitting next to it.
Everything in this article maps to those two selection stages. For marketers, the unit of competition shifts from the page to the passage. Individual passages must be relevant across related sub-queries and clear enough for the model to attribute without relying on surrounding paragraphs.
Documented RAG implementations use variants of the pipeline below, though each platform’s proprietary stack differs across ChatGPT, Perplexity, Gemini, and Google’s AI surfaces.
A common documented RAG pipeline has four stages between a user’s question and a cited answer: query analysis, retrieval, re-ranking, and synthesis. Query analysis rewrites the raw question into something retrievable. Systems rewrite the question and decompose it into parallel sub-queries. They then route those sub-queries to the right indexes.
Retrieval then pulls candidate chunks. A documented contextual retrieval implementation combines BM25 keyword matching with embedding-based semantic search, merges the result lists through rank fusion, and passes the strongest chunks into the prompt.
Re-ranking cuts the candidate pool hard. A fast retriever returns a wide set of plausible chunks, and a slower, more accurate cross-encoder re-scores them so only the strongest handful reaches the model. In testing, adding a re-ranking step cut the top-20 retrieval failure rate from 5.7% to 1.9%, a 67% reduction. During synthesis, the system packs the surviving chunks into an augmented prompt, and the model generates the answer with citation markers tied to specific chunks.
Your content can drop out at any of the four stages, and you can see only the last one in the rendered answer.
The distinction that governs citability comes from the foundational RAG paper. Training stores parametric knowledge as weight values distributed across billions of model parameters. Non-parametric knowledge lives in an external index of text that the system queries at answer time.
Parametric knowledge can produce a plausible citation, but a model’s weights do not preserve a traceable pointer to the original document. Retrieved text is different because it supplies an identifiable passage with a known origin. The distinction between training memory and live retrieval determines whether a reader can verify the attribution.
The strategic consequence: the model may know your brand from training data and still never cite you. Reliable citations flow through retrieval, so your content has to be crawlable and retrievable at the moment of the query. Presence in a training corpus alone does not meet that requirement.
One user prompt rarely triggers one search. Google’s AI Overviews and AI Mode expand a query into multiple related searches across subtopics and merge the results before generating, a mechanism Google calls query fan-out. A question about fixing a weedy lawn can fan out into sub-queries about weed removal and prevention.
Fan-out expands the retrieval surface beyond the head query. A useful AI search content strategy maps adjacent buyer questions and gives each one a complete answer, increasing the number of relevant passages available across related searches. Treat this as coverage planning, not a guaranteed citation formula.
When a system retrieves through multiple methods or multiple sub-queries, it has to merge several ranked lists into one. The authors of a 2009 SIGIR paper introduced reciprocal rank fusion: each document scores the sum of 1/(k + rank) across every list it appears in, and implementations conventionally set k to 60. The algorithm gives a chunk near the top of several lists a higher score than a chunk that tops one list and misses the others, which is why it rewards consistent presence across sub-queries more than a single strong ranking.
In a typical implementation, reciprocal rank fusion orders candidates before the system assembles the model’s context. The generation model receives selected passages, but not necessarily the raw fusion scores. A source can therefore fail at retrieval or survive retrieval without receiving attribution. Test direct, self-contained passages as an editorial hypothesis rather than treating them as a documented ranking factor.
Documented systems and platform guidance point to several source-selection inputs, although proprietary engines do not publish a universal weighting model:
For Google AI surfaces, core Search systems still influence which pages enter retrieval. Passage relevance and clarity then shape chunk selection. The most heavily tested structural signal, schema markup, has not shown reliable citation lift. Google’s guidance says generative AI search requires no special structured data. Structure your prose for extraction first, and use markup for general SEO hygiene.
Interfaces and APIs use several common attribution patterns:
Citation density differs by platform and query type. Some systems return broad source lists, while others attach only a handful of citations after visiting a larger candidate set. A citation usually credits the supporting passage. If your extractable chunk sits in paragraph fourteen, paragraph fourteen is what gets cited, and the model may never touch your headline claim.
Ungrounded models generate fabricated references through the same next-token prediction used for the rest of an answer. A plausible title, author, or URL can match the statistical shape of a real citation without corresponding to a real source. Retrieval narrows the candidate set, but reliable attribution still requires constraints or verification.
Production RAG systems can add four mitigations on top of basic grounding:
If you’re building your own retrieval workflow, reliable citations require clear instructions plus schema-enforced decoding. The system prompt sets the citation contract, and the instructions that work are blunt:
The schema makes the contract checkable. Define the output as JSON with an answer field, then constrain the source IDs in the citations array to an enum of the retrieved document IDs. Constrained decoding then enforces it mechanically: OpenAI’s Structured Outputs converts the JSON schema into a grammar and masks every invalid token to zero probability at each sampling step, taking schema conformance from 93% under prompting alone to 100%. The guarantee is syntactic, though. The model can still place the wrong source ID in a perfectly valid slot.
Single-pass generation inserts citations while writing, which is fast but depends on in-context faithfulness. A two-pass system generates first, then aligns each claim to its claimed source and removes unsupported citations. The second pass adds latency and token cost in exchange for an explicit audit layer.
Platform interfaces differ enough that Google rankings cannot stand in for citation visibility everywhere. ChatGPT can retrieve live web sources and attach inline links, while its selected sources may differ from Google’s results. Measure each platform directly instead of inferring one engine’s behavior from another.
Perplexity retrieves through its own search stack and remains selective after retrieval. A March–May 2025 attribution analysis found that its Sonar model visited roughly 10 relevant pages per query but cited only 3 to 4, though this reflects what that study observed and may not represent fixed platform behavior.
Google AI Overviews retrieve through Google’s core search systems with query fan-out layered on top, and render citations mostly in a link panel instead of in-text. Google must index a page and deem it eligible for a normal Search snippet, which makes AIO the surface where traditional SEO and AEO overlap most.
In the same usage-log study, Gemini provided no clickable citation in 92% of sampled answers and generated 34% of sampled responses without explicitly fetching online content. Those figures describe the study’s March–May 2025 dataset, not permanent platform behavior.
Use those observed differences as a monitoring plan, not a fixed platform ranking. Track ChatGPT independently from Google, test retrieval coverage in Perplexity, and treat AI Overview visibility as the surface most directly tied to traditional search eligibility.
Keep this article focused on citation mechanics. For implementation, use the dedicated guide to earn citations in ChatGPT and Perplexity. The immediate prerequisite is crawler access, because a blocked retrieval bot cannot evaluate the passage at all.
Start with crawler access, because everything downstream depends on it. OpenAI runs separate crawlers: GPTBot gathers training data while OAI-SearchBot powers ChatGPT Search, and blocking one does not block the other. A robots.txt rule your team wrote a year ago to keep content out of model training may be silently removing you from ChatGPT’s citable index today, and OpenAI’s robots.txt changes propagate in roughly 24 hours.
Run the same audit for Claude search controls, including Claude-SearchBot and Claude-User, then check PerplexityBot, Perplexity-User, and your CDN’s bot-management rules. A block at either robots.txt or the CDN layer can remove a page from retrieval before content quality is evaluated.
Then structure for extraction:
Use a fixed prompt set representing buyer questions, run it on a consistent cadence, and calculate mention rate and citation share separately for each engine. A ChatGPT citation tracking framework should preserve prompt versions, geography, model changes, and whether the brand appeared as a mention or a linked source.
GA4’s AI Assistants channel classifies referrals from external assistants and explicitly excludes Google AI Overviews and AI Mode, which remain inside Organic Search. Use an AI search attribution framework to evaluate observable referrals without presenting them as a complete measure of citation visibility.
Anthropic’s Citations API can ground responses in user-provided documents and return references to exact passages. OpenAI’s web-search responses include URL citation annotations with the source title, URL, and location in the generated message. Perplexity’s Sonar response schema returns citation URLs and search-result metadata. These formats expose source pointers programmatically, but developers still need to test whether each cited source supports its associated claim.
Model and retrieval updates can change attached sources even when an answer’s broad meaning remains stable. Annotate citation tracking with known platform or model changes, then investigate abrupt shifts before treating them as content-performance movement.
The mechanics will keep changing. The Messy Middle newsletter delivers weekly practitioner breakdowns of AI search visibility, retrieval changes, and the measurement systems needed to keep up.
Every week, we share real examples and systems the fastest-growing companies are using to scale smarter.
Get the last workshop recording when you sign up.

AEO gets your brand cited inside AI-generated answers. SEO gets it ranked in a list. The gap between those two outcomes is widening — and most brands are only doing one of them.

A practical guide to fifteen ChatGPT prompt frameworks covering the full marketing workflow — from strategy and positioning to content production, outreach, and growth experimentation.

Context artifacts are reusable documents that give AI everything it needs to produce consistent, on-brand output — every time you start a new session. Here's the four-artifact system that separates production-grade AI content from generic output.