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’all’
TokenChunker
WordChunker
SentenceChunker
SemanticChunker
SDPMChunker

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.