From f9c071a761502631cbb92b14726cc2c1ac00a90e Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 Apr 2024 13:14:45 -0700 Subject: [PATCH] Improved tests for L1 distance with halfvec --- test/t/032_ivfflat_halfvec_build_recall.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/t/032_ivfflat_halfvec_build_recall.pl b/test/t/032_ivfflat_halfvec_build_recall.pl index f26f011..4b056a3 100644 --- a/test/t/032_ivfflat_halfvec_build_recall.pl +++ b/test/t/032_ivfflat_halfvec_build_recall.pl @@ -102,7 +102,12 @@ for my $i (0 .. $#operators) )); # Test approximate results - if ($operator ne "<#>") + if ($operator eq "<+>") + { + test_recall(1, 0.30, $operator); + test_recall(10, 0.90, $operator); + } + elsif ($operator ne "<#>") { # TODO Fix test (uniform random vectors all have similar inner product) test_recall(1, 0.34, $operator); @@ -131,7 +136,12 @@ for my $i (0 .. $#operators) like($stderr, qr/using \d+ parallel workers/); # Test approximate results - if ($operator ne "<#>") + if ($operator eq "<+>") + { + test_recall(1, 0.30, $operator); + test_recall(10, 0.90, $operator); + } + elsif ($operator ne "<#>") { # TODO Fix test (uniform random vectors all have similar inner product) test_recall(1, 0.34, $operator);