Recursive Chunker
Chunk the given text using the Recursive Chunker.
Authorizations
Your API Key from the Chonkie Cloud dashboard
Body
Data to pass to the Recursive Character Text Splitter.
The input text or list of texts to be chunked.
Tokenizer to use. Can be a string identifier or a tokenizer instance
Maximum number of tokens per chunk
Rules to split text by. Find all recipes on our Hugging Face.
Language of the text. This must match the language of the recipe.
Minimum number of characters per chunk
Whether to return chunks as text strings or as RecursiveChunk objects
texts
, chunks
Response
The actual text content of the chunk.
The starting character index of the chunk within the original input text.
The ending character index (exclusive) of the chunk within the original input text.
The number of tokens in this specific chunk, according to the tokenizer used.
The level of this chunk in the recursive splitting process.
Was this page helpful?