Tools API
Context-aware text splitting
Splits a long block of text (maximum 4000 words) into smaller chunks while preserving the semantic meaning of the text and context between the chunks.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The text to be split into chunks.
The strategy to be used for splitting the text into chunks. llm_split
uses the language model to split the text, fast_split
uses a fast heuristic-based approach, and hybrid_split
combines both strategies.
Available options:
llm_split
, fast_split
, hybrid_split
Response
200 - application/json
An array of text chunks generated by splitting the input text based on the specified strategy.
Was this page helpful?