published fresh until

RAG chunking: which strategy should I use? A 7-way benchmark

Summary A vendor benchmark reports recursive 512-token splitting ahead of its semantic setup under an equal context budget. Treat it as a starting point and compare on your own documents with 512-token chunks

Not for choosing a vector database or pgvector indexes; see vector-database-for-ai-app-pgvector-first

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, use recursive 512-token splitting as a baseline, then compare it on your own documents with an equal context budget. The vendor benchmark supports a starting point, not a universal winner.

Do first: choose a small labelled question set and hold retrieved context near 2,000 tokens across variants, following the benchmark design.

The problem

You are building retrieval over documents and every blog says something different: 512 tokens with overlap, semantic chunking, or structure-aware chunking. Your agent will pick one at random unless you say.

What the source says

A r/Rag post written by a Vecta engineer (a RAG-evaluation vendor, so read it as a vendor test), compared seven strategies on 50 academic papers (about 905,000 tokens), with text-embedding-3-small, Chroma and gemini-2.5-flash-lite, scored on 30 generated question-answer pairs. Its design point: each strategy retrieves a different number of chunks so every one gets about 2,000 tokens of context, which removes the advantage of big chunks.

Results (accuracy / page-level F1): recursive 512 tokens (LangChain-style splitter) 69% / 0.92; fixed 512 with 50 overlap 67% / 0.88; fixed 1024 61% / 0.72; page-per-chunk 57% / 0.69; semantic 54% / 0.91 (it produced 17,481 chunks averaging 43 tokens, retrieving k=46); proposition chunking 51% / 0.97; document-structure (headings, up to 1024 tokens) 52% / 0.69. The author's conclusion: the boring strategies won, and fancier ones fragment context.

Commenters raised fair doubts: the semantic chunker used a fixed 0.7 cosine threshold that gave tiny chunks (one called 47 tokens a red flag; embedders are not trained for fixed thresholds); the document-structure chunks of up to 1024 tokens should be capped, and combining structure with a 512 limit would be better; the corpus was homogeneous academic text; the code and documents were not published; and parsing quality (OCR cleanup) matters as much as chunking. A commenter's practical view: with page-level chunks, put effort into metadata and graph techniques; another delegates retrieval to the LLM through search tools over document structure.

How to put it to your agent

Suggested experiment: Build the ingestion with a token-aware recursive splitter at 512 tokens as the baseline; choose and record the overlap separately. Create 30 question-answer pairs from our own documents and measure answer accuracy and whether the right pages are retrieved. Compare against heading-aware splitting capped at 512 tokens. Keep the same context budget in tokens for every variant. Report numbers before changing anything else.

Mistakes to check

  • Comparing strategies at a fixed top-k: larger chunks win because they get more context.
  • Semantic chunking with one global threshold; check the average chunk size.
  • Judging chunking before checking the PDF-to-text step.

Limits

One vendor benchmark on academic papers, with synthetic questions and disputed semantic-chunking settings. Your document types (contracts, tickets, code) may behave differently. Related threads cover hybrid search and embedding evaluation.

Sources

  • Vecta engineer’s benchmark and discussion: the setup, seven strategy scores and tiny semantic chunks are the author’s reported results. The author also acknowledges that the 0.7 threshold likely needed tuning. The comments challenge thresholds, corpus scope and missing reproducibility material.

Started from a post by @Confident-Honeydew66, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# RAG chunking: which strategy should I use? A 7-way benchmark
Summary: A vendor benchmark reports recursive 512-token splitting ahead of its semantic setup under an equal context budget. Treat it as a starting point and compare on your own documents with 512-token chunks
Copy for agent
get the whatworks thread rag-chunking-recursive-512-beat-semantic-benchmark and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread rag-chunking-recursive-512-beat-semantic-benchmark
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks