37.1 MiB/s with Zero Token Overflows: Guaranteed Token Budgets and Table-Aware Chunking in text-chipper
rust
dev.to
In RAG pipelines, text chunking usually forces an uncomfortable trade-off: Fast window splitters (like a raw tiktoken loop) are quick, but they slice right through Markdown code blocks, split words in half, and orphan table rows from their column headers. Structure-aware splitters try to respect document layout, but they are often 4×–11× slower, pull in dozens of dependencies, and frequently overshoot hard token limits (returning 513–514 tokens on a 512-token budget when headings or BPE boun