Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benwtrent committed Sep 20, 2024
1 parent 979caf6 commit 2de38ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public KnnVectorsFormat knnVectorsFormat() {
}
};
String expectedPattern =
"Lucene912BinaryQuantizedVectorsFormat(name=Lucene912BinaryQuantizedVectorsFormat, numVectorsPerCluster=90000000, flatVectorScorer=Lucene912BinaryFlatVectorsScorer(nonQuantizedDelegate=DefaultFlatVectorScorer()))";
"Lucene912BinaryQuantizedVectorsFormat(name=Lucene912BinaryQuantizedVectorsFormat, numVectorsPerCluster=90000000, flatVectorScorer=Lucene912BinaryFlatVectorsScorer(nonQuantizedDelegate=%s()))";
var defaultScorer = format(Locale.ROOT, expectedPattern, "DefaultFlatVectorScorer");
var memSegScorer =
format(Locale.ROOT, expectedPattern, "Lucene99MemorySegmentFlatVectorsScorer");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public KnnVectorsFormat knnVectorsFormat() {
String expectedPattern =
"Lucene912HnswBinaryQuantizedVectorsFormat(name=Lucene912HnswBinaryQuantizedVectorsFormat, maxConn=10, beamWidth=20,"
+ " flatVectorFormat=Lucene912BinaryQuantizedVectorsFormat(name=Lucene912BinaryQuantizedVectorsFormat, numVectorsPerCluster=90000000,"
+ " flatVectorScorer=Lucene912BinaryFlatVectorsScorer(nonQuantizedDelegate=DefaultFlatVectorScorer())))";
+ " flatVectorScorer=Lucene912BinaryFlatVectorsScorer(nonQuantizedDelegate=%s())))";

var defaultScorer = format(Locale.ROOT, expectedPattern, "DefaultFlatVectorScorer");
var memSegScorer =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public void testQuantizeForIndexCosine() {
float normOC = corrections[1];
float oDotC = corrections[2];

assertEquals(0.8145253f, ooq, 0.0000001f);
assertEquals(0.8145253f, ooq, 0.000001f);
assertEquals(1.3955297f, normOC, 0.00001f);
assertEquals(0.026248248f, oDotC, 0.0001f);
assertArrayEquals(
Expand Down

0 comments on commit 2de38ba

Please sign in to comment.