mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-11 22:50:00 +00:00
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4765 There are use cases where there is a group id associated to each vector id. We want no more than max_per_group results per group but of course we also want to keep the best results for each group. This diff demonstrates how to obtain this functionality, using a custom result handler. Differential Revision: D91020690 fbshipit-source-id: 92669cf8396ad8b11faa87c4420b35a3db2de7f9