pgvector.git / summary / log / commit / refs

commit    f9c071a761502631cbb92b14726cc2c1ac00a90e
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Apr 22 20:14:45 2024 +0000

    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 f26f011b..4b056a31 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); [parent: 9f4b770db312]