File tree Expand file tree Collapse file tree
docs-website/reference/haystack-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -877,7 +877,10 @@ __init__(
877877 retrievers: dict[str , TextRetriever],
878878 filters: dict[str , Any] | None = None ,
879879 top_k: int = 10 ,
880- max_workers: int = 4
880+ max_workers: int = 4 ,
881+ join_mode: Literal[
882+ " concatenate" , " reciprocal_rank_fusion"
883+ ] = " reciprocal_rank_fusion"
881884) -> None
882885```
883886
@@ -890,6 +893,9 @@ Create the MultiRetriever component.
890893- ** filters** (<code >dict\[ str, Any\] | None</code >) – A dictionary of filters to apply when retrieving documents.
891894- ** top_k** (<code >int</code >) – The maximum number of documents to return per retriever.
892895- ** max_workers** (<code >int</code >) – The maximum number of threads to use for parallel retrieval.
896+ - ** join_mode** (<code >Literal[ 'concatenate', 'reciprocal_rank_fusion'] </code >) – How to merge results from multiple retrievers. Available modes:
897+ - ` concatenate ` : Combines all results into a single list and deduplicates.
898+ - ` reciprocal_rank_fusion ` : Deduplicates and assigns scores based on reciprocal rank fusion.
893899
894900#### warm_up
895901
You can’t perform that action at this time.
0 commit comments