.env
file with the name WRITER_API_KEY
.POST https://api.writer.com/v1/tools/context-aware-splitting
Parameter | Type | Description |
---|---|---|
text | string | The text content to be split. The text should be fewer than 4000 words. |
strategy | string | The splitting strategy to use. Options include: llm_split , fast_split , and hybrid_split . See below for more details. |
llm_split
: Uses an LLM for precise semantic splittingfast_split
: Uses heuristic-based approach for quick splittinghybrid_split
: Combines both approachesParameter | Type | Description |
---|---|---|
chunks | array[string] | An array of text chunks as strings. |