Skip to content

Commit 5cd14c5

Browse files
committed
benchmark: dynamic nprobe setting for IVF Index
1 parent 5f7e55b commit 5cd14c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/sift1m-ivf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def main(args):
7575
print("Running batch search...")
7676
K = args.k
7777
t0 = time.time()
78-
all_results = index.search_batch(queries.tolist(), K)
78+
all_results = index.search_batch(queries.tolist(), K, args.nprobe)
7979
t_search = time.time() - t0
8080
qps = len(queries) / t_search
8181

0 commit comments

Comments
 (0)