v104 Oct 2026abhydesai8 min 6 secb9e8014
First published version.
0 views0 likes on this version
In Episode 02 of Retrieval Explained, we cut one short travel policy into chunks four ways, and ask each version the same question: what is the domestic meal allowance? Cutting every hundred characters splits the answer across two chunks. A larger size keeps it whole but mixes in unrelated rules, and overlap gives text near a cut a second chance without guaranteeing a complete idea. Cutting at the document's own headings keeps each section whole, a recursive splitter adds a size budget for long sections, and each chunk becomes a record with its title, heading and source.
You'll learn how to:
This video is for developers building a search over their own documents. The code runs from the companion repo.
b9e8014First published version.