Skip to content

Commit 48aaf4f

Browse files
HaystackBotsjrl
andauthored
docs: sync Haystack API reference on Docusaurus (#11230)
Co-authored-by: sjrl <10526848+sjrl@users.noreply.github.com>
1 parent 744198c commit 48aaf4f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs-website/reference/haystack-api/retrievers_api.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)