v21

latestOpenAPI 3.1.0raw.githubusercontent.com2025-05-22122299.2 KB

Recursive Chunker

Recursively chunks documents into smaller chunks. It is a good choice for documents that are long but well structured.

post/v1/chunk/recursive

Response

Successful Response: A list of RecursiveChunk objects.

textstring

The actual text content of the chunk.

start_indexinteger

The starting character index of the chunk within the original input text.

end_indexinteger

The ending character index (exclusive) of the chunk within the original input text.

token_countinteger

The number of tokens in this specific chunk, according to the tokenizer used.

levelinteger

The level of this chunk in the recursive splitting process (starts from 0).