blazechunk

The fastest semantic text chunking library — up to 1 TB/s throughput.

Throughput
1 TB/s
Chunkers
9
APIs
Sync+Async

blazechunk splits text at semantic boundaries and does it stupid fast. It ships nine chunkers: a zero-copy byte Chunker, six structural chunkers ( RecursiveChunker, SentenceChunker, TokenChunker, TableChunker, CodeChunker), and three embedding-based chunkers ( SemanticChunker, SDPMChunker, LateChunker) — all with matching synchronous and asynchronous methods.

Why blazechunk

Blazing fast

SIMD memchr/lookup-table/Aho-Corasick delimiter search; up to 1 TB/s on the raw primitive.

Correct by construction

Chunk offsets are real byte offsets into your input; multi-byte / CJK text is never split mid-character.

Sync and async everywhere

Every chunker has chunk/chunk_async and chunk_batch/chunk_batch_async, safe to use inside FastAPI/asyncio without blocking the event loop.

Pick a chunker

ChunkerBest forUnitDefault
Chunkermax-throughput byte splittingbytes4096
RecursiveChunkerlong, well-structured docscharacters2048
SentenceChunkerretrieval where sentence integrity matterscharacters2048
TokenChunkerfixed-size windows for token-limited modelscharacters2048
TableChunkerlarge Markdown/HTML tablesrows3
CodeChunkersource code, structure-awarecharacters2048
SemanticChunkersemantic boundaries via embeddingscharacters2048
SDPMChunkersemantic + bridging gaps (skip-window merge)characters2048
LateChunkerlate-interaction embeddings per chunkcharacters2048

Framework integrations

Use blazechunk directly in your favorite frameworks with official integrations:

Availability: Python (sync+async)