Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

TextSplitter

Split a text string into a list of strings.

Key Features

  • Splits a single text string into multiple output strings.
  • Requires no configuration — works out of the box.
  • Useful for testing pipeline splitting behavior.

Configuration

  1. Drag the TextSplitter component onto the canvas from the Component Library.
  2. Click the component to open the configuration panel.
  3. Configure the parameters as needed.

Connections

TextSplitter receives a sentence string as input. It outputs an output list of strings.

Usage Example

components:
TextSplitter:
type: testing.sample_components.text_splitter.TextSplitter
init_parameters:

Parameters

Inputs

ParameterTypeDefaultDescription
sentencestrThe text to split.

Outputs

ParameterTypeDefaultDescription
outputList[str]The split text as a list of strings.

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription

Run Method Parameters

These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.

ParameterTypeDefaultDescription
sentencestrThe text to split.