Recursive Character Text Splitter
ai.text_splitter_recursive · version 1 · AI sub-node
Split text on paragraphs, then lines, then words until chunks fit.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| output 0 | ai_textSplitter |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
chunkSize | number | 1000 | Chunk Size. Largest chunk to produce, measured in the splitter’s unit. | ||
chunkOverlap | number | 0 | Chunk Overlap. How much of the end of one chunk is repeated at the start of the next. | ||
options | collection | {} | |||
options.splitCode | options | Split Code. Use separators that follow the structure of this language. 16 values, listed below. |
Values of options.splitCode
| Value | Label |
|---|---|
cpp | C++ |
go | Go |
java | Java |
js | JavaScript |
php | PHP |
proto | Protocol Buffers |
python | Python |
rst | reStructuredText |
ruby | Ruby |
rust | Rust |
scala | Scala |
swift | Swift |
markdown | Markdown |
latex | LaTeX |
html | HTML |
sol | Solidity |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter | 1 | unverified |