Chunking
How AI systems split your pages into passages to embed, index, and retrieve — chunk size, overlap, semantic vs. fixed-size, and how it ties to Google's passage ranking.
Chunking is the preprocessing step where AI systems split a document into smaller passages before embedding and retrieving them. The chunk — not the page — is the unit of retrieval in AI search, so being indexed isn't enough; you need a passage that answers a specific query in isolation. Chunk size is a trade-off (small = precise but thin on context; large = context-rich but noisy) with no size that guarantees a citation, overlap prevents boundary loss but duplicates tokens, contextual prefixes can disambiguate a chunk but mislead retrieval if they're stale, and 'Lost in the Middle' — a position effect measured on specific 2023 models and tasks, not every model — means LLMs often use the start and end of context best. You can't optimize for a specific chunk size — Google explicitly says you don't need to chop content into pieces — but answer-first, self-contained sections under a clear heading hierarchy chunk and cite cleanly. It's the same sub-document principle as Google's passage ranking, applied to RAG.
TL;DR — ChunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. is how AI search enginesAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity. cut your page into smaller pieces before they store and search it. They don’t match a query against your whole page — they match it against the single passage that answers it best. So getting indexedStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. isn’t enough; you need a section that makes sense on its own and answers the question clearly.
What chunking is
Chunking divides documents into smaller units for embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. and retrieval systems. Evidence for this claim Retrieval systems can split files into chunks that are embedded and indexed for later search. Scope: OpenAI's retrieval implementation; chunk sizes, overlap, and indexing behavior are implementation-dependent. Confidence: high · Verified: OpenAI: Retrieval guide Chunk size and overlap are implementation choices whose best values depend on content, model, and evaluation task. Evidence for this claim Retrieval-augmented generation combines a generator with retrieved external passages or documents. Scope: The original RAG research architecture; it does not establish one optimal chunking strategy for every production system. Confidence: high · Verified: Lewis et al.: Retrieval-Augmented Generation
When you search Google the old way, the page is the unit: a page ranks, and you click through. AI systems work differently. Before ChatGPT, Perplexity, or Google’s AI OverviewsAI Overviews are the AI-generated summary box Google shows above or within its regular search results, written by Gemini models from pages retrieved out of Google's normal Search index. It's a Search feature, not a separate platform or index. can use your content, they break it into smaller segments — called chunks or passages — and store each one separately. When someone asks a question, the system goes and finds the chunks that best match it, then writes an answer from those.
So the unit of retrieval isn’t your page. It’s a passage from your page.
Why they bother
Two reasons:
- Size limits. The models that turn text into searchable math (see embeddingsEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords.) can only take so much text at once. A 5,000-word page won’t fit, so it gets split.
- Precision. A whole page about “technical SEOTechnical SEO is the practice of making a site easy for search engines to crawl, render, index, and (now) be eligible for AI answers. It's the foundation that lets your content and links rank — not a ranking trick of its own.” is a blurry match for a specific question like “what is crawl budgetThe number of URLs an engine will crawl in a timeframe..” A focused 400-word section that’s only about crawl budgetThe number of URLs an engine will crawl in a timeframe. is a sharp match. Smaller pieces let the system find the needle instead of handing over the haystack.
What this means for you
You can’t control how any AI system chops up your content — and you don’t need to. What you can do is write so that each section survives being pulled out on its own:
- Put the answer first. Lead a section with the definition or the key claim, not three paragraphs of throat-clearing.
- Keep sections focused. One topic or question per heading.
- Make each section self-contained. Ask yourself: if someone read just this paragraph, with nothing around it, would it still make sense?
Good news: this is just clear writing. Google says outright that you don’t need to break your content into tiny pieces for AI — its systems do the splitting. The advanced version gets into chunk size, overlap, the research, and how this all connects to Google’s “passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed..”
TL;DR — ChunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. is the preprocessing step that splits a document into passages before they’re embedded, indexedStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed., and retrieved. It exists because embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. models and context windowsA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. have token limits, and because passage-level retrieval is more precise than page-level. The chunk, not the page, is the unit of retrieval. Chunk size is a trade-off (small = precise/thin; large = rich/noisy) and no size, overlap value, or splitter guarantees a citation; overlap guards boundaries but costs index size and duplication; semantic chunking isn’t reliably better than fixed-size; contextual prefixes can disambiguate a chunk but mislead retrieval when stale. “Lost in the Middle” — a position effect documented on specific 2023 models and tasks — means an LLMA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). often uses the start and end of its context best. You can’t optimize for a specific chunk size — and Google says you shouldn’t try — but answer-first, self-contained sections under a clear heading hierarchy chunk and cite cleanly. It’s the same sub-document principle as Google’s passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed., applied to RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights..
What chunking is, and why it exists
Retrieval systems operate over indexed units, but public search engines do not expose a universal publisher-controlled chunk size. Evidence for this claim Retrieval systems can split files into chunks that are embedded and indexed for later search. Scope: OpenAI's retrieval implementation; chunk sizes, overlap, and indexing behavior are implementation-dependent. Confidence: high · Verified: OpenAI: Retrieval guide RAG research supports retrieve-then-generate patterns without proving that every AI searchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity. product uses identical mechanics. Evidence for this claim Retrieval-augmented generation combines a generator with retrieved external passages or documents. Scope: The original RAG research architecture; it does not establish one optimal chunking strategy for every production system. Confidence: high · Verified: Lewis et al.: Retrieval-Augmented Generation
Chunking is the process of dividing a document into smaller, discrete segments — chunks or passages — before those segments are turned into embeddingsEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords., stored in a vector index, and retrieved to answer queries. It’s a foundational step in RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. (Retrieval-Augmented Generation) pipelines, and it’s the part of AI searchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity. SEOs underrate most, because it’s invisible: it happens during ingestion, not at query time.
Two problems force it:
- The token-limit problem. Embedding models accept a bounded number of tokens
per input — Microsoft notes the
text-embedding-3-smallmodel caps at 8,191 tokens, and other models are far smaller. LLMs have finite context windows too. A long page simply won’t fit as a single unit, so it gets split. - The retrieval-precision problem. A 5,000-word page about “technical SEOTechnical SEO is the practice of making a site easy for search engines to crawl, render, index, and (now) be eligible for AI answers. It's the foundation that lets your content and links rank — not a ranking trick of its own.” collapsed into one vector is a fuzzy, averaged signal. A 400-word section that’s specifically about crawl budgetThe number of URLs an engine will crawl in a timeframe., embedded as its own vector, is a sharp one. Sub-document granularity is what lets a system pull the one relevant passage out of a long, multi-topic page.
The consequence is the single most important idea here: the chunk, not the page, is the unit of retrieval in AI search. Being crawled and indexed is necessary but not sufficient. You need a chunk that answers a specific query, clearly, on its own. A page ranking #15 organically can earn an AI citation while the #1 result gets skipped — if the #15 page has the more extractable passage.
How chunking works, end to end
A four-stage flow begins with one long document containing several topics. The system splits and embeds focused passages as separate vectors. A query retrieves one or more best-matching passages, and those selected passages enter the model context for answer generation.
© Patrick Stox LLC · CC BY 4.0 ·
- Ingestion + splitting. An AI crawlerAI crawlers are bots from AI companies that fetch web pages to train language models, build AI-search indexes, or answer live user questions. They come in three categories, each with its own user-agent tokens and its own robots.txt controls. downloads the page; a chunking algorithm divides the text into (usually overlapping) segments.
- Embedding. Each chunk becomes a numerical vector and is stored in a vector index. (That’s the embeddingsEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. step.)
- Retrieval + generation. A query is embedded, the nearest chunk vectors are pulled via vector searchVector search finds content by comparing the meaning of a query against stored content as numerical vectors, retrieving the closest ones in a high-dimensional embedding space. At scale it uses approximate nearest neighbor (ANN) algorithms — not exact comparison — to search billions of vectors in milliseconds., and the retrieved chunks are passed to an LLM that writes the answer with citations.
This whole architecture traces back to Dense Passage Retrieval (Karpukhin et al., 2020), which showed that retrieving by dense vector similarity beat the old keyword approach (BM25) by 9–19% absolute on top-20 passage accuracy — and that passage-level retrieval works better than document-level for answering specific questions. The RAG paper (Lewis et al., 2020) named the pattern and used 100-word passages from Wikipedia as its chunks. Every AI search system retrieving web content is running a variant of that pipeline.
Chunking strategies
There’s no single algorithm — systems pick from a menu, and they change it over time:
- Fixed-size — split by a token or character count, with some overlap. Most common. Microsoft’s example: “a fixed size sufficient for semantically meaningful paragraphs (for example, 200 words or 600 characters)” with 10–15% overlap.
- Sentence / paragraph — split on natural language boundaries instead of an arbitrary token count, preserving semantic units.
- Semantic / content-aware — group sentences by embedding similarity and split where the topic shifts, aiming to keep each chunk about one thing.
- Hierarchical / recursive (RAPTOR) — build a tree of summaries (document → section → paragraph) so a query can be answered at the right level of abstraction. RAPTOR (Sarthi et al., 2024) reported a 20% absolute accuracy gain on a hard QA benchmark when paired with GPT-4.
- Sliding window with overlap — each chunk shares some tokens with its neighbors so a sentence split across a boundary isn’t lost.
- Adaptive / query-dependent (Mix-of-Granularity) — a trained router picks the chunk size per query. The most sophisticated approach; not yet standard in commercial systems.
Chunk size and overlap — the core trade-off
This is the lever everyone asks about, and the honest answer is it depends:
- Small chunks (128–256 tokens): more precise retrieval, but they can lose the surrounding context the answer needs.
- Large chunks (512–1,024 tokens): more context preserved, but noisier retrieval — you drag in irrelevant material with the relevant bit.
The research doesn’t crown a winner. LlamaIndex’s evaluation found 1,024 tokens optimal in their setup; Chroma’s benchmarks found a 200-token recursive splitter performed consistently across metrics. Ravi Theja’s takeaway is the right mindset: “Identifying the best chunk size for a RAG system is as much about intuition as it is empirical evidence.” Those numbers describe what won in one team’s benchmark, on one document set, with one embedding model and evaluation task — not a universal setting. No chunk size, overlap value, or splitter guarantees retrieval, citation, ranking, or inclusion in an answer from an external AI system; each provider’s pipeline picks its own defaults and can change them without notice.
Overlap is the underrated half of this. Without it, content near a boundary gets split and lost. Microsoft recommends starting at 25% overlap so there are “smoother transitions between chunks without excessive duplication”; other sources suggest 10–15%. Overlap isn’t free, though: overlapping tokens get embedded and stored twice, which inflates the index and can surface near-duplicate passages side by side in a retrieved set — so it’s a trade against index size and redundancy, not a costless safety net. Weigh it against how often a boundary actually costs you a missed fact, not on principle. The practical point for content: don’t assume the system will keep a key fact intact if you bury it exactly where a chunk is likely to break.
So, does semantic chunking always win? No — that’s the inconvenient finding. Vectara’s 2024 study found “performance differences are minimal” on real-world documents, and — crucially — the embedding model’s quality mattered more than the chunking strategy. When GPT-4o generated the answers, the differences between strategies were “negligible.” That result is specific to Vectara’s document set, models, and evaluation method — it’s evidence semantic chunking isn’t a reliable default win, not proof it never helps in any pipeline. Translation for SEOs: obsessing over an exact structure matters far less than content quality and semantic clarity.
Chunk context: what prefixes can (and can’t) fix
A chunk that reads clearly to a human can still retrieve badly once it’s separated from the document around it — the section it sits under, the entity it’s actually about, a qualifier stated two headings up. One documented mitigation is prepending a short, chunk-specific context string (the document title, the section it belongs to, what the chunk is actually about) before the chunk is embedded — an approach Anthropic calls contextual retrieval. Titles, section ancestry, and a contextual prefix can disambiguate an otherwise-orphaned chunk and cut down on retrieval misses caused by missing context.
That fix has a failure mode of its own, though: stale or wrong context doesn’t just fail to help — it actively misleads the retriever toward the wrong chunk. A prefix generated from a heading that no longer matches the section after a page reorg, or a contextual summary that misstates what the chunk covers, is worse than no prefix at all. Context preservation is a pipeline design choice with its own error mode, not a one-way improvement you can bolt on and forget.
Google’s passage ranking — the SEO ancestor of chunking
Google has been doing sub-document granularity since long before “RAG” was a buzzword. At Search On 2020, Prabhakar Raghavan announced passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed.: “By better understanding the relevancy of specific passages, not just the overall page, we can find that needle-in-a-haystack information you’re looking for.” It went live in U.S. English on February 10, 2021 and affects roughly 7% of queries.
Two things people get wrong about it:
- It’s “passage ranking,” not “passage indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed..” Google’s first announcement used “indexing,” then quickly corrected it: “this change doesn’t mean we’re indexing individual passages independently of pages.” The page is still indexed as a whole; the relevant passage is an additional ranking signal.
- The page ranks, not the passage. John Mueller: “Passage ranking is not about ranking a specific passage but understanding the content on a really long, not SEO optimized page, and ranking that page (not the passage) for a query where the passage is relevant.”
So passage ranking and RAG chunking share a principle — a paragraph, not a page, is often the right unit to match against a specific query — but the outcome differs: passage ranking lifts the page’s ranking; RAG chunking retrieves a chunk to feed a generated answer. Same idea, different machinery. (The technical underpinning, per Dawn Anderson’s reporting, is DeepCT — BERT-derived contextual term weights replacing TF-IDF, so term frequency no longer equals term relevance.)
”Lost in the Middle” — where your answer sits matters
Even after your chunk is retrieved, where it lands in the LLM’s context affects whether the model actually uses it. The Stanford “Lost in the Middle” study (Liu et al., 2023) found that “performance is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts.”
That finding doesn’t apply universally by default — it’s a position effect measured on named multi-document QA and key-value retrieval tasks, on the specific model generation Liu et al. tested in 2023. It’s not proof that every current model ignores evidence placed centrally in its context; different architectures, longer effective context windows, and newer training can narrow or widen the effect. Treat it as a documented risk to design around, not a fixed law of every model you’ll ever be retrieved into.
The content implication is still concrete and low-risk either way: lead with your answer. Put the definition, the key finding, the direct answer in the first sentence of each section — not buried in paragraph four. This is the same answer-first (BLUF) discipline that serves human skimmers; it just happens to also hedge against being dropped into the middle of a context window on models where the effect holds.
The practical constraints you can’t see
- Chrome’s ~30-passage limit. Dan Petrovic’s research suggests Chrome’s DocumentChunker analyzes content in ~200-word passages and “only ever considers the first 30 passages of a page.” It tree-walks the semantic HTMLSemantic HTML is the practice of using elements like <main>, <article>, <section>, <nav>, <header>, and <aside> to describe what content is, not just how it looks. It helps search engines and assistive tech identify a page's main content more reliably, but it isn't a ranking factor on its own. top to bottom. Implication: your most important content should appear early — not at the bottom of a 10,000-word page.
- You don’t control the chunker. Despina Gavoyannis (Ahrefs) is blunt: “You can’t control how Google, ChatGPT, or Perplexity chunk your content. Their pipelines change based on cost, model, and context.” And: “Manual ‘chunk optimization’ is impossible in practice.”
Check whether a section still makes sense when a retrieval system separates it from the surrounding page with the Chunk Tester Free
- Paste a representative article or section and inspect the simulated passage boundaries.
- Review orphan headings, weak heading context, and dangling openers as editorial prompts—not as a model of any search engine’s private chunks.
- Fix passages that lose their subject or qualification, then reread the full page so retrieval clarity does not come at the expense of human flow.
A focused Chunk Tester finding labeled orphan heading says the document ends on a heading with no section content and recommends adding section content after the heading or removing the empty heading.
What “chunk optimization” actually is (and the Google caveat)
Here’s the nuance the hype skips. Google’s 2026 AI optimization guide says plainly: “There’s no requirement to break your content into tiny pieces for AI to better understand it.” Its systems “are able to understand the nuance of multiple topics on a page and show the relevant piece to users.” So no — do not rewrite your content into rigid 300-word blocks.
But that doesn’t mean structure is irrelevant. As Gavoyannis puts it, “Most SEOs using the term [chunk optimization] are just talking about good content structure.” The advice underneath the buzzword is sound; the framing just inflates its novelty. Duane Forrester’s line captures the shift well: “If traditional SEO optimized for clicks, GenAI systems optimize for chunks… Structure still wins.”
So what do you actually do? Write chunk-ready content:
- One topic per section. A focused H2/H3 maps cleanly to a coherent chunk.
- Answer-first. Lead with the claim; support it below.
- Self-contained sections. Test: would this paragraph make sense if it appeared in isolation? If not, it won’t survive being chunked out.
- Appropriate length. 200–500 words per major section lines up naturally with 256–512-token chunks — complete enough to be useful, not artificially short.
- Structured formats. Tables and lists give systems explicit boundaries to detect. (Onely’s research: tables increase citation rates ~2.5x.)
Mike King’s framing is the right reassurance: “chunking and writing for users is not mutually exclusive.” The structure that helps a reader skim is the structure that chunks cleanly. You’re not optimizing for a robot at the expense of a human — it’s the same content.
Passage ranking vs. RAG chunking — side by side
| Google passage ranking | RAG chunking | |
|---|---|---|
| What it is | A ranking signal | A preprocessing step |
| Granularity | Passage within a page | Chunk split before embedding |
| Outcome | The page ranks higher | A chunk is retrieved into the answer |
| Where it runs | At ranking time | At ingestion (then retrieval) |
| You control the split? | No | No |
| Shared principle | Sub-document granularity — a paragraph, not a page, often matches a specific query best |
Where this sits in the pipeline
Chunking is the first move in AI retrieval: chunk → embed → store → retrieve → generate. It feeds embeddingsEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. (each chunk becomes a vector), which feed vector searchVector search finds content by comparing the meaning of a query against stored content as numerical vectors, retrieving the closest ones in a high-dimensional embedding space. At scale it uses approximate nearest neighbor (ANN) algorithms — not exact comparison — to search billions of vectors in milliseconds. (query matches nearest chunks), which feeds RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. (retrieved chunks become an answer). Upstream, AI crawlersAI crawlers are bots from AI companies that fetch web pages to train language models, build AI-search indexes, or answer live user questions. They come in three categories, each with its own user-agent tokens and its own robots.txt controls. are how your content gets ingested in the first place. For the traditional-search version of this whole pipeline, see How Search WorksSearch works in three stages — crawling, indexing, and serving (ranking). A page has to clear each one to appear in results: getting crawled doesn't mean you're indexed, and getting indexed doesn't mean you rank..
AI summary
A condensed take on the Advanced version:
- ChunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. = splitting a document into passages before they’re embedded, indexedStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed., and retrieved. It’s the first step in a RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. pipeline and it happens at ingestion, not query time.
- The chunk, not the page, is the unit of retrieval. Being indexed isn’t enough; you need a passage that answers a specific query on its own. A #15 page can get cited over a #1 if its passage is more extractable.
- Why it exists: embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. models and context windowsA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. have token limits, and passage-level retrieval is more precise than page-level.
- Chunk size is a trade-off: small (128–256 tokens) = precise but thin on context; large (512–1,024) = rich but noisy. No universal best — LlamaIndex foundA 302 (\"Found\") is a temporary redirect: it forwards users to a new URL while telling search engines the original URL should stay in the index. It's a weak canonicalization signal, not the zero-equity dead end of SEO folklore. 1,024 optimal, Chroma found 200 — and no chunk size or splitter guarantees a citation. Overlap (10–25%) guards chunk boundaries but duplicates tokens and inflates the index; weigh it against actual boundary losses.
- Semantic chunking isn’t reliably better than fixed-size (Vectara 2024, on that study’s models/documents) — embedding-model quality matters more than the chunking strategy.
- Contextual prefixes (titles, section ancestry — Anthropic’s “contextual retrieval”) can disambiguate an orphaned chunk, but a stale or wrong prefix actively misleads retrieval; it’s a design choice with its own failure mode.
- “Lost in the Middle” (Liu et al., 2023): a position effect measured on named tasks and 2023-era models, not proof every current model ignores central context — LLMsA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). in that study used the start and end of context best, so lead each section with the answer regardless.
- Google’s passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. (2020/2021, ~7% of queries) is the same sub-document principle — but it’s a signal that ranks the page, not separate indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. of passages. RAG chunking retrieves a chunk.
- You can’t optimize for a chunk size, and Google says you don’t need to chop content into tiny pieces. You can write answer-first, self-contained, focused sections under clear headings — which is just good structure.
Official documentation
Primary-source documentation on passage-level retrieval and chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking..
- A Guide to Google Search Ranking Systems — defines passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. as “an AI system we use to identify individual sections or ‘passages’ of a web page.”
- Optimizing your website for generative AI features — Google’s stance that you don’t need to break content into tiny pieces (last updated June 15, 2026).
- In-Depth Guide to How Google Search Works — the crawl → indexStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. → serve pipeline this AI version extends.
Microsoft / Azure AI SearchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity.
- Chunk large documents for vector search — the most thorough official chunking guide of any major provider: chunk-size defaults (512 tokensA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory.), overlap (25% start point), and the fixed/variable/semantic technique table (last updated June 8, 2026).
OpenSearch
- Text chunking — chunking as a built-in vector-search ingestion pipeline feature.
Practitioner reference (vendor docs)
- Pinecone — Chunking Strategies — the canonical strategy taxonomy, with the test that anchors it all: “If the chunk of text makes sense without the surrounding context to a human, it will make sense to the language model as well.”
Quotes from the source
On-the-record statements from Google. Each link is a deep link that jumps to the quoted passage on the source page.
Google — what passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. is (and isn’t)
- “By better understanding the relevancy of specific passages, not just the overall page, we can find that needle-in-a-haystack information you’re looking for.” — Prabhakar Raghavan, Google SVP, October 2020 (via Search Engine Land). Jump to quote
- “this change doesn’t mean we’re indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. individual passages independently of pages.” — Google, October 20, 2020 clarification (via Search Engine Land). Jump to quote
- “passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. launched yesterday afternoon Pacific Time for queries in the US in English.” — @searchliaison, February 11, 2021 (via Search Engine Land). Read the coverage
Google — passage ranking ranks the page, not the passage
- “Passage ranking is not about ranking a specific passage but understanding the content on a really long, not SEO optimized page, and ranking that page (not the passage) for a query where the passage is relevant.” — John Mueller, Google Search Advocate (via Search Engine Roundtable). Read the coverage
Google — on whether you should chunk your content
- “There’s no requirement to break your content into tiny pieces for AI to better understand it.” — Google Search Central, “Optimizing your website for generative AI features.” Read the guide
Microsoft Azure AI SearchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity. — why chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. is necessary
- “Partitioning large documents into smaller chunks can help you stay under the maximum tokenA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. input limits of chat completion and embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. models.” — Microsoft Azure AI SearchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity. docs. Read the docs
Chunking — cheat sheet
The chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. strategies, compared
| Strategy | How it splits | Strength | Watch-out |
|---|---|---|---|
| Fixed-size | TokenA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory./char count (e.g. 512 tokens) | Simple, fast, predictable | Cuts mid-thought without overlap |
| Sentence / paragraph | Natural language boundaries | Preserves semantic units | Variable, uneven chunk sizes |
| Semantic | Splits where the topic shifts (embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. similarity) | Coherent chunks | Costly; not reliably better (Vectara 2024) |
| Hierarchical (RAPTOR) | Tree of summaries: doc → section → paragraph | Answers at the right abstraction level | Complex to build |
| Sliding window | Overlapping fixed chunks | Guards boundary context | Some duplication |
| Adaptive (Mix-of-Granularity) | Router picks size per query | Most flexible | Not standard in production |
Chunk size, at a glance
| Size | Tokens | Behavior |
|---|---|---|
| Small | 128–256 | Precise retrieval, thin on context |
| Medium | 512 | Common default (Microsoft starting point) |
| Large | 1,024 | Context-rich, noisier (LlamaIndex’s optimum in test) |
| Overlap | 10–25% | Prevents boundary loss; Microsoft starts at 25% |
Fast facts
- The chunk, not the page, is the unit of retrieval in AI searchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity..
- Embedding model cap example:
text-embedding-3-small= 8,191 tokens. - No chunk size, overlap value, or splitter guarantees retrieval, citation, or inclusion in an AI answer — those are pipeline defaults, not universal settings.
- Overlap isn’t free: overlapping tokens are stored twice, inflating the indexStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. and risking near-duplicateThe same or very similar primary content reachable at more than one URL. There's no general duplicate content penalty — the real costs are possible signal dilution, the wrong URL getting chosen, and less-efficient crawling. retrieved passages.
- Contextual prefixes (title, section ancestry) can disambiguate a chunk — but a stale or wrong prefix misleads retrieval instead of helping it.
- “Lost in the Middle”: in the 2023 study’s tasks and models, LLMsA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). used the start and end of context best → lead with the answer regardless of model.
- Chrome’s DocumentChunker reportedly considers only the first ~30 passages (~200 words each) → put key content early.
- Google: passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. ≠ passage indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed.. The page ranks; the passage is a signal.
- Google: you don’t need to chop content into tiny pieces. Structure, don’t fragment.
The mental models
1. The retrieval pipeline — chunk → embed → store → retrieve → generate. ChunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. is move one. If your content isn’t getting cited, work the chain: was it crawled, was a coherent chunk produced, did that chunk match the query, did it land where the LLMA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). would use it?
2. The chunk is the unit, not the page. Stop thinking “is my page indexedStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed.?” and start thinking “does my page contain a passage that answers this specific query, on its own?” IndexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. is necessary; extractability is what wins the citation.
3. The size trade-off — precision vs. context. Small chunks = sharp but thin. Large chunks = rich but noisy. There’s no universal answer, and you don’t set the size anyway — so optimize the thing you do control: make each section coherent enough to work at either granularity.
4. Answer-first beats the middle. “Lost in the Middle” says position inside the context windowA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. matters. Lead every section with the definition or claim. The same discipline that helps human skimmers keeps your point out of the dead zone.
5. Structure, don’t fragment. Google says don’t chop content into tiny pieces — so the move isn’t artificial chunking. It’s clear heading hierarchy, one topic per section, self-contained paragraphs. “Chunk optimization” is mostly just good structure wearing a new name.
6. Passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. ≠ RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. chunking. Same principle (sub-document granularity), different outcome. Passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. is a signal that ranks the page; RAG chunking retrieves a chunk into an answer. Don’t conflate the SEO-era concept with the AI-era one.
Chunk-ready content checklist
A pass to make your content survive being split, retrieved, and cited out of context:
- Each H2/H3 section covers one topic or question — no two-in-one sections.
- Each section leads with the answer (definition / key claim first, support below) — not buried in paragraph 3–4.
- Each major section reads as self-contained: it would make sense in isolation, with nothing around it.
- Sections are an appropriate length (~200–500 words) — complete, not artificially chopped into tiny blocks.
- Most important content appears early on the page (Chrome reportedly considers only the first ~30 passages).
- Heading hierarchy is clean (logical H1An H1 tag is the HTML `<h1>` element that marks a page's primary heading — the big visible headline at the top of the content. It helps users, search engines, and screen readers understand what the page is about. → H2 → H3) — it’s part of the structural signal a chunker walks.
- Facts that must stay together aren’t stranded across a likely boundary (e.g. a claim in one paragraph, its evidence three paragraphs later).
- Used tables / lists where the content is genuinely list-like (explicit boundaries chunkers detect; higher citation rates).
- You did not rewrite everything into rigid word-count blocks — Google says that’s not required.
Writing one giant section for several intents
A long block about definitions, implementation, exceptions, and measurement may be useful as a page but noisy as a retrieved passage. Split distinct questions under headings and give each section enough local context to stand alone.
Fragmenting every sentence into its own heading
Tiny chunks can lose qualifications and relationships. Do not optimize for an imagined tokenA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. number. Keep a complete idea, its constraints, and supporting evidence together.
Opening with a contextless back-reference
Passages that begin with “this,” “it,” or “however” may be separated from the text that names the subject. Open important sections with a direct sentence that identifies the topic and answer.
Duplicating text to force overlap
Repeated paragraphs create competing near-duplicateThe same or very similar primary content reachable at more than one URL. There's no general duplicate content penalty — the real costs are possible signal dilution, the wrong URL getting chosen, and less-efficient crawling. passages and a worse reading experience. Retrieval systems can add overlap internally; authors should use clear transitions and self-contained sections instead of copying prose.
Prompt: audit passage independence
Review the article section by section as if each section could be retrieved without its
neighbors. For each heading, state the question it answers, whether the opening sentence
names the subject, what context is missing, whether unrelated intents are mixed, and the
smallest edit that makes the section self-contained. Preserve necessary qualifications
and evidence. Do not target an arbitrary token count or rewrite the author's voice.
Article:
[PASTE ARTICLE WITH HEADINGS] Prompt: split an overloaded section
This section covers several ideas. Propose a minimal heading structure that groups one
complete intent per section. For each proposed section, write only an answer-first
opening sentence and list which existing paragraphs belong under it. Do not add facts,
remove caveats, duplicate prose, or turn every sentence into a heading.
Section:
[PASTE HEADING AND CONTENT] DevTools Console: flag long rendered sections
Run this on an article page. The character threshold is a review aid, not a search-engine chunk boundary.
console.table([...document.querySelectorAll('main h2, main h3')].map((heading, i, all) => {
let text = '';
for (let node = heading.nextElementSibling; node && !all.includes(node); node = node.nextElementSibling) text += ` ${node.textContent}`;
return { heading: heading.textContent.trim(), characters: text.trim().length };
}).filter(row => row.characters > 2000)); Regex: find contextless section openers in Markdown
This multiline pattern flags headings whose first prose word is a common back-reference. Review each hit manually.
^#{2,4}\s+.+\n+(?:\n|>.*\n|\s*)*(This|That|It|They|These|Those|However|Therefore|Also|And|But|So|Then)\b Patrick's relevant free tools
- Chunk Tester — Paste content or a URL and see how a retrieval system would split it into the chunks AI answer engines actually retrieve and cite — colored chunk bands, token estimates, and flags for chunks that retrieve badly (too long, no heading context, dangling pronouns, split tables and lists). Adjustable chunk size and overlap; runs in your browser.
- Semantic Site Map — Explore this site's build-time semantic center, topic coherence, article outliers, and nearest editorial neighbors.
- AI Content Brief Generator — Assemble an exportable brief while preserving which research inputs are observed, heuristic, or not evaluated.
Tools for passage QA
- A browser outline or document map quickly reveals headings that combine unrelated questions or leave long stretches without subheadings.
- A vector databaseVector search finds content by comparing the meaning of a query against stored content as numerical vectors, retrieving the closest ones in a high-dimensional embedding space. At scale it uses approximate nearest neighbor (ANN) algorithms — not exact comparison — to search billions of vectors in milliseconds. or embeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. playground can demonstrate how chunk size affects a controlled retrieval test, but do not convert one model’s result into a universal SEO prescription.
- Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. and citation tracking measure page outcomes. They cannot tell you the exact proprietary chunk a search platform stored.
Validate a chunking-oriented rewrite
| Test to run | Expected result | Failure interpretation | Monitoring window | Rollback trigger |
|---|---|---|---|---|
| Read each edited section without its neighbors | The heading and opening identify the topic and answer | The passage depends on missing context | Editorial review | Restore context if a qualification or subject was lost |
| Compare claims and citations before and after | Facts, caveats, and source relationships remain intact | Structural editing changed the meaning | Before publish | Roll back any unsupported or broadened claim |
| Run the Chunk Tester on old and new versions | Targeted long or dangling sections improve without artificial fragmentation | The rewrite optimized the score instead of comprehension | Before publish | Roll back if reading flow or completeness worsens |
| Test a small versioned retrieval set | Relevant sections are retrieved for intended questions without losing exceptions | Splits made passages too thin or mixed intents remain | After publish in the controlled system | Recombine or resplit if key context repeatedly disappears |
| Inspect rendered heading hierarchy | Headings are ordered, descriptive, and followed by content | Markup changes broke document structure | Release QA | Roll back if headings become inaccessible or malformed |
Test yourself: Chunking
Resources worth your time
My related writing
- What We Actually Know About Optimizing for LLM Search — covers the Chrome DocumentChunker / 30-passage finding and how AI retrieval really treats your content.
The foundational research
- Dense Passage Retrieval (Karpukhin et al., 2020) — why dense passage retrieval beats keyword matching; the architecture under modern RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights..
- Retrieval-Augmented Generation (Lewis et al., 2020) — the paper that named RAG; used 100-word Wikipedia passages.
- Lost in the Middle (Liu et al., 2023) — LLMsA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). use the start and end of context best; why answer-first matters.
- RAPTOR (Sarthi et al., 2024) — hierarchical/recursive chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. via a tree of summaries.
- Is Semantic Chunking Worth the Cost? (Vectara, 2024) — the study finding semantic chunking isn’t reliably better than fixed-size.
The SEO counterpoint (read this)
- SEO Chunk Optimization is Overrated (Despina Gavoyannis, Ahrefs) — the case that “chunk optimization” is mostly just good content structure, and that you can’t control how systems chunk you. The most important nuance on this topic.
Practitioner guides
- Pinecone — Chunking Strategies — the canonical strategy taxonomy.
- LlamaIndex — Evaluating the Ideal Chunk Size (Ravi Theja) — the 128/256/512/1024/2048 test that landed on 1,024.
- Databricks — Chunking Strategies for RAG — six strategies with domain-specific guidance.
From around the industry
- Content Chunking Guide (Search Engine Land) — covers definition, UX origins, macro/micro/atomic chunk types, and how chunking connects to AI retrieval.
- Chunk, Cite, Clarify, Build (Benu Aggarwal, Search Engine Land) — four-part content framework for AI searchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity.; frames “content now competes in a probability-weighted lottery of answer generation.”
- Content Chunking: What Is It & Should You Care? (Semrush) — practitioner overview with Mike King’s quote (“chunking and writing for users is not mutually exclusive”) and Q&A format testing.
- Chunked, Retrieved, Synthesized (Duane Forrester) — ex-Bing perspective on why structure wins even with large context windowsA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory.; “If traditional SEO optimized for clicks, GenAI systems optimize for chunks.”
- LLM-Friendly Content (Onely / Bartosz Góralewicz) — primary source for the tables-increase-citation-rates-2.5x finding and the listicles-account-for-50%-of-top-AI-citations stat.
- 2025 AI Citation & LLM Visibility Report (The Digital Bloom) — data on what predicts LLM citations; brand search volume, statistics, and quotations all shown to lift visibility.
- The Ultimate Guide for Chunking Strategies (Agenta.ai) — comprehensive developer-oriented strategy taxonomy with Chroma benchmark data across chunking methods.
Stats worth citing
- 9–19% absolute — how much dense passage retrieval (DPR) beat BM25Semantic search is meaning-based retrieval — matching what a user means, not just the words they typed. Search engines detect entities, expand synonyms, infer intent, and rank by conceptual relevance, which is why keyword stuffing lost its power and topical depth gained it. keyword matching on top-20 passage accuracy. The case for retrieving by meaning, not keywords. Karpukhin et al., 2020
- ~7% of queries — the share of search queries Google’s passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. affects at full rollout (U.S. English live February 10, 2021). Coverage
- +20% absolute accuracy — RAPTOR’s hierarchical-chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. gain on a hard QA benchmark when paired with GPT-4. Sarthi et al., 2024
- EmbeddingEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords. model > chunking strategy — Vectara’s 2024 finding that model quality affected retrieval more than whether chunking was semantic or fixed-size; on real documents the differences were “minimal.” Study
- First ~30 passages — the number Chrome’s DocumentChunker reportedly considers per page (~200 words each), per Dan Petrovic’s research — argument for front-loading your key content. Via Ahrefs
- ~2.5x citation rate — Onely’s finding that tables increase AI-citation rates, with listicles accounting for ~50% of top AI citationsAn AI citation is the visible source link an AI answer engine shows next to its generated text — the clickable reference that credits the web page it used. A citation's presence is a separate thing from whether the cited page actually supports the statement, and from being retrieved (read behind the scenes) or merely mentioned (named without a link); citation is driven more by brand mentions and being retrievable than by traditional ranking.. Structure helps. Onely
- 93.67% of Google AI OverviewsAI Overviews are the AI-generated summary box Google shows above or within its regular search results, written by Gemini models from pages retrieved out of Google's normal Search index. It's a Search feature, not a separate platform or index. cite at least one top-10 organic result — strong but not absolute correlation between organic rankings and AI citation, meaning a passage-level match can override ranking position. The Digital Bloom, 2025 AI Citation Report
Chunking
Chunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking.
Chunking
Chunking is the process of dividing a document into smaller, discrete segments — called chunks or passages — before those segments are turned into embeddingsEmbeddings are dense numerical vectors — lists of floating-point numbers — that represent the meaning of text in a high-dimensional space. Semantically similar content lands close together, so search and AI systems can match by meaning, not just keywords., stored in a vector indexStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed., and retrieved to answer queries. AI systems don’t embed or retrieve whole web pages; they embed and retrieve individual chunks. The chunk, not the page, is the unit of retrieval in AI searchAI search uses large language models and retrieval-augmented generation (RAG) to synthesize an answer from multiple sources rather than returning a ranked list of links. Examples include Google AI Overviews, ChatGPT Search, and Perplexity..
It exists because of hard limits: embedding models accept only so many tokensA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. per input (often 512–8,191), and large language modelsA large language model (LLM) is a deep-learning model trained on massive text corpora to predict the next token and generate human-like text. LLMs use the transformer architecture and power AI search features like Google's AI Overviews (Gemini) and Bing Copilot (GPT-4). have finite context windows. Splitting a long page into smaller pieces keeps each one inside those limits — and makes retrieval more precise, because a focused 400-word passage about one topic matches a specific query far better than a 5,000-word page averaged into a single vector.
There’s a trade-off in chunk size: small chunks (128–256 tokens) retrieve precisely but can lose surrounding context; large chunks (512–1,024 tokens) keep context but retrieve more noise. There’s no universally “right” size — it depends on the content, the embedding model, and the query. Overlap (sharing 10–25% of tokens between adjacent chunks) prevents a sentence split across a boundary from being lost.
Chunking is closely related to — but distinct from — Google’s passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. (announced 2020, live in U.S. English in 2021). Both rely on sub-document granularity, but passage rankingPassage ranking is a Google AI system that scores individual sections ('passages') of a page so a single page can earn multiple relevance scores for different queries. Google still indexes whole pages — only the ranking changed. is a signal that helps Google rank the whole page; RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. chunking retrieves a specific chunk to feed an answer. You can’t control how any given system chunks your content, but clear heading hierarchy and self-contained, answer-first sections make your pages easier to chunk and cite.
Build-time retrieval analysis plus live signals for this exact article. The automatic chunk report includes a deterministic readiness score and is ready without a model download.
Search Console
sampleGA4 traffic (28d)
sampleCloudflare traffic (7d)
sampledCrUX field data (28d, phone)
sampleGoogle NLP entities
localChangelog
Updated Jul 18, 2026.
Editorial summary and recorded change details.Summary
Added verified-evidence qualification to chunk size, overlap, semantic chunking, and Lost in the Middle, plus a new section on contextual prefixes and their failure mode.
Change details
-
Added a 'Chunk context: what prefixes can (and can't) fix' section covering contextual retrieval (titles/section ancestry) and how stale or wrong context prefixes mislead retrieval instead of helping it.
-
Stated plainly that no chunk size, overlap value, or splitter guarantees retrieval, citation, ranking, or inclusion in an AI answer.
-
Added overlap's cost (duplicated tokens, inflated index, near-duplicate retrieved passages) alongside its benefit.
-
Scoped 'Lost in the Middle' as a position effect measured on named tasks and 2023-era models, not proof every current model ignores central context.
Full comparison unavailable — no prior snapshot was archived for this revision.