← Back to all posts

Split Text

On this page

Purpose

Split Text breaks Message, Data, or DataFrame content into smaller chunks and returns a DataFrame while preserving metadata.

When to use it

  • Prepare long text for a retrieval pipeline.
  • Break a document into manageable pieces before processing.
  • Split structured content with a known text field.

How to use it

  1. Connect content to Input.
  2. Set Chunk Size and Chunk Overlap.
  3. Choose a separator.
  4. Send Chunks to a DataFrame-aware downstream component.

Configuration

SettingWhat it controlsRecommended starting point
Chunk SizeSets the target chunk length. The default is 1000 characters.Start with 1000.
Chunk OverlapRepeats trailing content in the next chunk. The default is 200 characters.Start with 200.
SeparatorSets the boundary used to split text. The default is a newline.Use \n\n for paragraph boundaries.
Text KeySelects the text field for Data and DataFrame input. The default is text.Keep text when the input uses that field.
Keep SeparatorRetains separators in chunks. It is disabled by default.Leave it off unless downstream text needs separators.

Expected result

The component returns a DataFrame of chunks. Missing input and an empty DataFrame return errors. Valid empty text succeeds with a zero-row DataFrame. An individual segment that is larger than Chunk Size can remain larger than the target.

Reference details

Split Text does not embed or index content. Tune size and overlap against the downstream model or retrieval component.

← Back to all posts