Type identifier:
text:recursiveSplitCategory: Text Operations
The Text - Recursive Split node divides text into smaller chunks suitable for processing by language models or other text analysis tools. It splits on natural boundaries (paragraphs, lines, words) where possible, while respecting the configured chunk size. Overlapping between chunks ensures context is preserved across boundaries.
Handle | Type | Description |
|---|---|---|
|
| The text to split into chunks. Content is serialised to text before splitting. |
Handle | Type | Description |
|---|---|---|
|
| Array of text chunks respecting size and overlap constraints. |
Option | Type | Default | Description |
|---|---|---|---|
Chunk Size |
|
| Maximum size of each chunk in characters. |
Chunk Overlap |
|
| Number of characters to overlap between consecutive chunks. |
Recursively splits text using a hierarchy of separators:
\n\n)\n)The recursive splitter prioritises preserving semantic units:
Overlap ensures context continuity:
Configuration:
Input:
This is a longer text that needs to be split into chunks.
It has multiple paragraphs.
Each paragraph contains different information.Output (chunks):
[
"This is a longer text that needs to be split into chunks.",
"It has multiple paragraphs.",
"Each paragraph contains different information."
]Configuration:
Use case: Preparing a long document for embedding or analysis by an AI model.