JoinAnswers Parameters

Check the init and runtime parameters you can specify for the JoinAnswers node.

YAML Init Parameters

These are the parameters you can specify in pipeline YAML:

ParameterTypePossible ValuesDescription
join_modeStringconcatenate
merge
Default: concatenate
The mode to use for joining answer lists.
concatenate - Combines answers into a single list.
merge - Aggregates scores of individual answers.
Required.
weightsList of float valuesDefault: noneUsed with the merge join mode. Assigns the importance to the input nodes. By default, answers from all nodes are assigned equal weight.
Optional.
top_k_joinIntegerDefault: noneThe final number of answers to return in the resulting list.
Optional.
sort_by_scoreBooleanTrue
False
Default: True
Sorts the incoming answers by their score. If any of the answers come from a Generator (like PromptNode), set this parameter to False, as these answers have no score.
Required.

REST API Runtime Parameters

These are the runtime parameters you can pass in the body of the request to the Search endpoint:

ParameterTypePossible ValuesDescription
top_k_joinIntegerDefault: NoneThe maximum number of answers to return in the resulting list.
Optional.