microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.02k stars 208 forks source link

[BUG] Value of query_result_dist is 0 / 0.0000 #525

Open asharani97 opened 5 months ago

asharani97 commented 5 months ago

Expected Behavior

There should be approximate distance .

Actual Behavior

Getting value of query_result_dists as 0

Example Code

for (uint64_t i = 0; i < query_num; ++i) { for (uint64_t j = 0; j < recall_at; ++j) { dists_file << std::fixed << std::setprecision(6) << query_result_dists[test_id][i * recall_at + j]<< " "; } dists_file << std::endl; }

Dataset Description

Dataset : Eurlex -4k

Error

Paste the full error, with any sensitive information minimally redacted and marked $$REDACTED$$

Your Environment

asharani97 commented 5 months ago

This is solved by https://github.com/microsoft/DiskANN/pull/528