Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Feb 3, 2024
1 parent b1a4f87 commit 7337570
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions experiments/run-big-bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,14 @@ def compute_metrics(
"""
is_flatnav_index = type(index) in (flatnav.index.L2Index, flatnav.index.IPIndex)
index.set_num_threads(1)
if is_flatnav_index:
index.set_num_threads(1)
start = time.time()
_, top_k_indices = index.search(
queries=queries, ef_search=ef_search, K=k, num_initializations=300
)
end = time.time()
else:
index.set_num_threads(1)
index.set_ef(ef_search)
start = time.time()
# Search for HNSW return (ids, distances) instead of (distances, ids)
Expand Down

0 comments on commit 7337570

Please sign in to comment.