StringListJoiner
Join multiple lists of strings into a single string output.
We're working on adding pipeline examples and most common component connections.
Key Features
- Accepts multiple variadic list-of-string inputs and joins them into a single output string.
Configuration
- Drag the
StringListJoinercomponent 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
StringListJoiner accepts multiple List[str] inputs through its inputs variadic input. Connect any component that outputs a list of strings.
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 joiner.py in the Haystack repository.
Usage Examples
Basic Configuration
StringListJoiner:
type: testing.sample_components.joiner.StringListJoiner
init_parameters: {}
components:
StringListJoiner:
type: testing.sample_components.joiner.StringListJoiner
init_parameters:
Parameters
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
inputs | Variadic[List[str]] | The list of 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 |
|---|---|---|---|
inputs | Variadic[List[str]] | The list of string inputs to join. |
Was this page helpful?