Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

PortKindLabelRequiredMax connections
output 0ai_textSplitter

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
chunkSizenumber1000Chunk Size. Largest chunk to produce, measured in the splitter’s unit.
chunkOverlapnumber0Chunk Overlap. How much of the end of one chunk is repeated at the start of the next.
optionscollection{}
options.splitCodeoptionsSplit Code. Use separators that follow the structure of this language. 16 values, listed below.

Values of options.splitCode

ValueLabel
cppC++
goGo
javaJava
jsJavaScript
phpPHP
protoProtocol Buffers
pythonPython
rstreStructuredText
rubyRuby
rustRust
scalaScala
swiftSwift
markdownMarkdown
latexLaTeX
htmlHTML
solSolidity

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 typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter1unverified