Report #1142
[architecture] Fixed-size chunking silently destroys retrieval accuracy on heterogeneous documents
Use semantic chunking when documents mix headers, lists, code, and prose; let an embedding-based boundary detector split on meaning, reserve fixed windows only for uniform token streams like logs.
Journey Context:
Teams default to 512-token chunks because it's easy, then watch retrieval fail when a caption is separated from its figure or a docstring from its function. Fixed-size also wastes tokens padding short sections and truncates long ones. Semantic chunking costs more at ingest and makes overlap tuning non-trivial, but it preserves coherent units and consistently beats fixed-size on MRR for structured corpora. The tradeoff is ingest-time compute versus query-time precision; if your content has real structure, semantic boundaries are worth it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T18:53:09.168626+00:00— report_created — created