Skip to content

Commit

Permalink
Fix flaky test in quantization oversampling (qdrant#2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanPleshkov authored and timvisee committed Sep 12, 2023
1 parent 3e3bda9 commit 94d3602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/segment/tests/integration/hnsw_quantized_search_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn hnsw_quantized_search_test(
&false.into(),
);
let best_1 = oversampling_1_result[0][0];
let worst_1 = oversampling_1_result[0][top - 1];
let worst_1 = oversampling_1_result[0].last().unwrap();

let oversampling_2_result = hnsw_index.search(
&[&oversampling_query],
Expand All @@ -160,7 +160,7 @@ fn hnsw_quantized_search_test(
&false.into(),
);
let best_2 = oversampling_2_result[0][0];
let worst_2 = oversampling_2_result[0][top - 1];
let worst_2 = oversampling_2_result[0].last().unwrap();

if best_2.score < best_1.score {
println!("oversampling_1_result = {:?}", oversampling_1_result);
Expand Down

0 comments on commit 94d3602

Please sign in to comment.