chunk_text
Partitions raw text documents into uniform sliding-window segments with configurable character overlap. Returns an array of formatted text chunks. Use when preparing unstructured documents for vector database embeddings and RAG retrieval pipelines. Do not use for syntactic token counting or semantic sentence segmentation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The source document text string to segment into discrete chunks. | |
| chunk_size | No | Maximum character length of each individual chunk segment. Defaults to 500 characters. | |
| chunk_overlap | No | Number of overlapping characters shared between consecutive chunks to maintain semantic context. Defaults to 50 characters. |