Improved precision for cosine distance [skip ci]

This commit is contained in:
Andrew Kane
2024-09-23 18:53:23 -07:00
parent 22efa8ec22
commit 044f0c6441
2 changed files with 5 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ for my $i (0 .. $#operators)
));
# Test approximate results
if ($operator eq "<->")
if ($operator ne "<#>")
{
# TODO Fix test (uniform random vectors all have similar inner product)
test_recall(1, 0.33, $operator);
@@ -112,7 +112,7 @@ for my $i (0 .. $#operators)
# Test probes equals lists
if ($operator eq "<=>")
{
test_recall(100, 0.30, $operator);
test_recall(100, 0.98, $operator);
}
else
{
@@ -131,7 +131,7 @@ for my $i (0 .. $#operators)
like($stderr, qr/using \d+ parallel workers/);
# Test approximate results
if ($operator eq "<->")
if ($operator ne "<#>")
{
# TODO Fix test (uniform random vectors all have similar inner product)
test_recall(1, 0.33, $operator);
@@ -141,7 +141,7 @@ for my $i (0 .. $#operators)
# Test probes equals lists
if ($operator eq "<=>")
{
test_recall(100, 0.30, $operator);
test_recall(100, 0.98, $operator);
}
else
{