Skip to content

Commit

Permalink
fixing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Scikud committed Oct 13, 2023
1 parent 1de43eb commit 141b76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/bindings_test_returnlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def testRandomSelf(self):
hnsw_index.add_items(data)
bf_index.add_items(data)

# filter_function = lambda id: id%2 == 0
# filter_function designed to return different number of elements for each query
filter_function = lambda index: index > (num_elements-2) if random.random() < 0.5 else index > (num_elements-1)
labels, distances = hnsw_index.knn_query_return_lists(data, k=1, num_threads=1, filter=filter_function)

Expand Down

0 comments on commit 141b76a

Please sign in to comment.