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:
Parameter | Type | Possible Values | Description |
---|---|---|---|
join_mode | String | concatenate 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. |
weights | List of float values | Default: none | Used 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_join | Integer | Default: none | The final number of answers to return in the resulting list. Optional. |
sort_by_score | Boolean | True 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:
Parameter | Type | Possible Values | Description |
---|---|---|---|
top_k_join | Integer | Default: None | The maximum number of answers to return in the resulting list. Optional. |