fastrag.retrieval.hybrid#
Composable hybrid retrieval with replaceable ranking fusion.
Classes
|
Fetch candidates from each retriever concurrently, then fuse their ranks. |
- class fastrag.retrieval.hybrid.HybridRetriever(*, retrievers, fusion=None, candidate_k=40)[source]#
Bases:
RetrieverFetch candidates from each retriever concurrently, then fuse their ranks.
- Parameters:
fusion (RankFusion | None)
candidate_k (int)