Skip to main content
Chonkie provides multiple chunking strategies to handle different text processing needs. Each chunker in Chonkie is designed to follow the same core principles outlined in the concepts page.

Availability

Different chunkers are available depending on your installation:
ChunkerDefaultembeddings"chonkie[all]"Chonkie JSAPI Chunking
TokenChunker
SentenceChunker
RecursiveChunker
TableChunker
CodeChunker
SemanticChunker
LateChunker
NeuralChunker
SlumberChunker

Common Interface

All chunkers share a consistent interface:
# Single text chunking
chunks = chunker.chunk(text)

# Batch processing
chunks = chunker.chunk_batch(texts)

# Direct calling
chunks = chunker(text)  # or chunker([text1, text2])

F.A.Q.

Yes, all the chunkers are thread-safe. Though, the performance might vary since some chunkers use threading under the hood. So, monitor your performance accordingly.
I