Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aggregating scores in JoinDocuments node #683

Merged
merged 3 commits into from
Dec 16, 2020

Conversation

tanaysoni
Copy link
Contributor

@tanaysoni tanaysoni commented Dec 14, 2020

With the new Pipeline class, a new node JoinDocuments was added to support combining results from multiple retrievers. By default, a join_mode called concatenate was implemented to collect documents retrieved by multiple retrievers.

This PR adds a new join_mode called merge that can aggregate (weighted) scores for documents returned by multiple retrievers and return the top_k documents.

Resolves #125

@tanaysoni tanaysoni changed the title WIP: Add join_mode for JoinDocuments Node Add support for aggregating scores in JoinDocuments node Dec 14, 2020
haystack/pipeline.py Outdated Show resolved Hide resolved
@tanaysoni tanaysoni merged commit 4c2804e into master Dec 16, 2020
@tanaysoni tanaysoni deleted the join-documents branch December 16, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combination of multiple retrievers
2 participants