Menu

Half an Answer Still Counts as a Hit: A 5-Step Chunking Audit for Your .NET RAG
📰

Half an Answer Still Counts as a Hit: A 5-Step Chunking Audit for Your .NET RAG

DEV Community: dotnet·MICHAEL-MAURICE·10 days ago
#EvrMy6E5
#devtodotnet#devto#dev#tokens#question
Long article (1466 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.