Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix TANIMOTO BruteForce distance calculation wrong (#718)
Browse files Browse the repository at this point in the history
Signed-off-by: Yudong Cai <[email protected]>
  • Loading branch information
cydrain authored Mar 7, 2023
1 parent 67094b7 commit 024a841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowhere/archive/BruteForce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ BruteForce::Search(const DatasetPtr base_dataset, const DatasetPtr query_dataset

if (faiss_metric_type == faiss::METRIC_Tanimoto) {
for (int i = 0; i < topk; i++) {
cur_distances[i] = faiss::Jaccard_2_Tanimoto(distances[i]);
cur_distances[i] = faiss::Jaccard_2_Tanimoto(cur_distances[i]);
}
}
break;
Expand Down

0 comments on commit 024a841

Please sign in to comment.