8000 GitHub - jina-ai/executor-matchmerger: **MatchMerger** Merges the results of shards by appending all matches.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jina-ai/executor-matchmerger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatchMerger

MatchMerger merges the matches in the same request based on the .id attribute. The matches with parents of the same id will be merged into one single Document's matches

Usage

Combine the matches from different shards

Assuming you have 20 shards and use top-k=10, you will get 200 results in the merger. When adding an Executor to the Flow, MatchMerger is used in the uses_after attribute so that the executor returns one Document with 200 matches instead of 10 Documents.

Combine the matches from different paths

MatchMerger is also used when you want to combine the matches retrieved from different pathways. Assuming you have two paralell retrieval pathways, one pathway retrieves 10 matches based on images and the other retrieves 10 matches based on audio. When combining the requests from the two pathways, you will receive two Documents with the same id but matches from different pathways. You can use MatchMerger to merge the matches into one Document with 20 matches.

About

**MatchMerger** Merges the results of shards by appending all matches.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages

0