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

StringJoiner

Join multiple string inputs into a single string output.

Work in Progress

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

  1. Drag the StringJoiner component onto the canvas from the Component Library.
  2. Click on the component to open the configuration panel.
  3. 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

ParameterTypeDefaultDescription
input_strVariadic[str]The string inputs to join.

Outputs

ParameterTypeDefaultDescription
outputstrThe joined string output.

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
input_strVariadic[str]The string inputs to join.