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
- Drag the
TextSplittercomponent onto the canvas from the Component Library. - Click the component to open the configuration panel.
- 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
| Parameter | Type | Default | Description |
|---|---|---|---|
| sentence | str | The text to split. |
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| output | List[str] | The split text as a list of strings. |
Init Parameters
These are the parameters you can configure in Pipeline Builder:
| Parameter | Type | Default | Description |
|---|
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
| sentence | str | The text to split. |
Was this page helpful?