StringJoiner
Join multiple string inputs into a single string output.
We're working on adding pipeline examples and most common component connections.
Key Features
- Accepts multiple variadic string inputs and joins them into a single output string.
Configuration
- Drag the
StringJoinercomponent onto the canvas from the Component Library. - Click on the component to open the configuration panel.
- On the General tab, no configuration is required.
Connections
StringJoiner accepts multiple string inputs through its input_str variadic input. Connect any component that outputs a string.
It outputs the joined string as output. Connect it to any downstream component that accepts a string input.
Source Code
To check this component's source code, open string_joiner.py in the Haystack repository.
Usage Examples
Basic Configuration
StringJoiner:
type: testing.sample_components.joiner.StringJoiner
init_parameters: {}
components:
StringJoiner:
type: testing.sample_components.joiner.StringJoiner
init_parameters:
Parameters
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
input_str | Variadic[str] | The string inputs to join. |
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
output | str | The joined string output. |
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 |
|---|---|---|---|
input_str | Variadic[str] | The string inputs to join. |
Was this page helpful?