My RAG retrieval eval was green. Four of the five chunking strategies I tested scored the same 98.4% hit@5. Then I asked a different question: did the whole answer reach the prompt? For 256-token chunks, 13 of my 62 test answers were cut in two by a chunk boundary.

Hit rate counts half an answer as a success. One of my test questions asks who holds which role during an incident. With 256-token chunks, the context kept the operations and communications leads and lost the incident commander, because the boundary fell right after "keeps the timeline, but" and the next chunk ranked outside the top 5. Retrieval said "hit". A model would have answered confidently and wrongly.

So here's the audit I now run on any RAG chunker before I trust its numbers. Five steps, C# skeletons, no embedding bill needed for the first two.

Tech Skill Builder is $5/month for a very limited time only (normally $10). Grab it now before it goes back to $10. Join Tech Skill Builder. The complete, tested chunking-evaluation project behind this post is in there.

Still building the RAG chatbot itself? My ASP.NET Core RAG Kit gives you document ingestion, OpenAI embeddings, Qdrant vector search and a streaming chat endpoint in C#.

Step 1: Label answers as quotes, not chunk IDs

Most retrieval evals label "the right chunk". That label breaks the moment you change the chunker, which is exactly when you need the eval. I label the answer text instead: every golden question carries a verbatim quote from its source document, and the harness turns it into a character range.

public sealed record AnswerSpan(GoldenQuestion Question, string DocumentId, TextSpan Span, int Tokens); public static AnswerSpan Locate(GoldenQuestion q, IReadOnlyDictionary<string, SourceDocument> documents, ITokenizer tokenizer) { // SKELETON: body described, not shown // 1. find the document, 2. find the quote with an ordinal IndexOf, // 3. throw if the quote is missing or appears twice // full implementation in the complete project } 

The "throw" part matters. When someone edits a document and the quote no longer matches, a lenient harness keeps producing numbers for a passage that doesn't exist. A failing run is annoying for a minute; a broken baseline you trust is annoying for a month.

Step 2: Measure split rate before you embed anything

Once answers are character spans, you can ask a question that needs no model at all: does any single chunk contain the whole answer?

public static bool IsSplit(AnswerSpan answer, IEnumerable<(string DocumentId, TextSpan Span)> contextUnits) => !contextUnits.Any(u => u.DocumentId == answer.DocumentId && u.Span.Contains(answer.Span)); 

That's the real method from the project, because it's that small. Run it over your chunker's output and you get the split rate. On my 12-document test handbook:

Chunker Answers split
Fixed 256 tokens, no overlap 21.0%
Fixed 512 tokens, overlap 50 4.8%
Recursive 512 / heading-aware / parent-child 0%

This was the number that found the problem first. It's free, and it doesn't depend on which embedding model you use.

Step 3: Score coverage on characters, and ignore whitespace

Split rate tells you an answer can be cut. Coverage tells you how much of it actually made the top-k. The harness unions the retrieved ranges from the answer's document and counts the covered characters:

public static double Fraction(AnswerSpan answer, string documentText, IEnumerable<(string DocumentId, TextSpan Span)> retrieved) { // SKELETON: body described, not shown // mark answer characters covered by any retrieved span from the same document, // skip whitespace when counting, return covered / total // full implementation in the complete project } // complete@k = share of questions with Fraction == 1.0 

The whitespace rule came from a bug. Chunkers trim spaces at chunk edges, so in my first version an answer that spanned two retrieved chunks lost exactly one space and scored 99.9%. Nine answers were marked incomplete because of a missing space. A missing space isn't a missing fact. A context that ends at "do" instead of "do not" is, and it should still fail.

Here are the four answers that 256-token chunks retrieved only in part (k = 5), next to parent-child retrieval:

Question Coverage, fixed 256 Coverage, parent-child
How do I rotate a live API key without downtime? 78.9% 100%
What does the saml_audience_mismatch error mean? 86.2% 100%
What are the incident roles, and can one person hold several? 60.7% 100%
When does the release controller roll back a canary automatically? 90.2% 100%

Every one of those counted as a hit.

Step 4: Put tokens next to quality

A bigger chunk or a bigger k can always buy completeness. The question is what you pay per question. So every row of my report has context tokens per question beside complete@5:

Strategy Hit@5 Complete@5 Tokens / question
Fixed 512, overlap 50 98.4% 96.8% 2,038
Fixed 256, no overlap 98.4% 91.9% 1,093
Recursive 512, overlap 50 98.4% 98.4% 1,961
Heading-aware 512 98.4% 98.4% 463
Parent 1,024 / child 128 100% 100% 487

Look at the hit@5 column: almost no signal. Complete@5 and tokens tell the real story. One honest outlier: fixed 1,024-token chunks also reached 98.4% complete, at 3,496 tokens per question, because on this corpus every document fits in a single chunk.

Step 5: Try "search small, return big"

The winner above is parent-child retrieval. Small child chunks (up to 128 tokens) are embedded and searched; the whole parent section (up to 1,024 tokens, heading-aware) is what goes into the prompt. The shape of the assembly step:

public static IReadOnlyList<ContextBlock> Assemble(IReadOnlyList<ChunkHit> rankedHits, int k) { // SKELETON: body described, not shown // for each hit: use its parent if it's a child chunk // merge hits that share a parent into one block // stop at k distinct blocks // full implementation in the complete project } 

One detail is easy to miss: several children often match the same section, so the search has to fetch more children than k. My harness fetches k × 4. Without that, k = 5 can collapse into two blocks.

What this audit won't tell you

  • My embedder was a stand-in. These numbers use an offline hashing embedder that behaves like keyword search. A neural model ranks differently. The method holds; the winning chunk size may not. Rerun with your real model before changing production.
  • My sections were short. Median 81 tokens, largest 226, so every parent was a whole section. Long sections change the picture.
  • Your documents will move the numbers. That's the point of running it on them instead of copying a chunk size from a tutorial (including this post).

Checklist

  • [ ] Golden answers are verbatim quotes, located once, failing loudly when missing
  • [ ] Split rate measured before any embedding
  • [ ] Coverage scored on characters, whitespace ignored
  • [ ] Complete@k reported next to hit@k, never instead of it
  • [ ] Tokens per question in the same table
  • [ ] Parent-child (or heading-aware) chunking tried, with extra children fetched
  • [ ] Rerun with your production embedding model and your own documents

All numbers are local measurements from Nov 24, 2026: .NET 10, a 12-document synthetic handbook (8,494 tokens), 62 golden questions, k = 5, offline hashing embedder. Quality numbers were identical in three runs and matched against a local Qdrant 1.20.2.

Get the complete project

The snippets above are the skeleton. The full, tested .NET 10 project is in Tech Skill Builder: a Clean Architecture harness with fixed, recursive, heading-aware and parent-child chunkers budgeted in real o200k tokens, Microsoft.Extensions.AI embeddings, Qdrant and in-memory indexes, a thin minimal API with per-question drill-down, the chunk-tune CLI (22-configuration sweep, Pareto frontier, budgeted recommendation and a CI gate that fails the build on a chunking regression), a sample handbook with a 62-question golden set, 253 offline tests and a 73-page PDF guide with architecture and request-flow diagrams. It's $5/month for a very limited time only (normally $10). Grab it now before it goes back to $10.

Need the chatbot to plug a better chunker into? The ASP.NET Core RAG Kit is a complete C# RAG API with an ingestion pipeline, OpenAI embeddings and chat, Qdrant (cloud or Docker), a streaming chat endpoint, Clean Architecture and Swagger, for $20.

What chunk size is your RAG running in production, and have you ever checked how many answers it cuts?