Skip to content

Commit d77dee2

Browse files
committed
Changed distance precision in tests
1 parent b3dcd99 commit d77dee2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data/semantickernel-data-oracle/src/test/java/com/microsoft/semantickernel/data/jdbc/oracle/OracleVectorStoreRecordCollectionTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ public void exactSearch(DistanceFunction distanceFunction, List<Double> expected
216216
assertEquals(3, results.size());
217217
// The third hotel should be the most similar
218218
assertEquals(hotels.get(2).getId(), results.get(0).getRecord().getId());
219-
assertEquals(expectedDistance.get(0).doubleValue(), results.get(0).getScore(), 0.0001d);
219+
assertEquals(expectedDistance.get(0).doubleValue(), results.get(0).getScore(), 0.0002d);
220220
assertEquals(hotels.get(0).getId(), results.get(1).getRecord().getId());
221-
assertEquals(expectedDistance.get(1).doubleValue(), results.get(1).getScore(), 0.0001d);
221+
assertEquals(expectedDistance.get(1).doubleValue(), results.get(1).getScore(), 0.0002d);
222222
assertEquals(hotels.get(3).getId(), results.get(2).getRecord().getId());
223-
assertEquals(expectedDistance.get(2).doubleValue(), results.get(2).getScore(), 0.0001d);
223+
assertEquals(expectedDistance.get(2).doubleValue(), results.get(2).getScore(), 0.0002d);
224224

225225
options = VectorSearchOptions.builder()
226226
.withVectorFieldName(distanceFunction.getValue())
@@ -258,7 +258,7 @@ public void searchWithFilter(DistanceFunction distanceFunction, double expectedD
258258
assertEquals(3, results.size());
259259
// The first hotel should be the most similar
260260
assertEquals(hotels.get(0).getId(), results.get(0).getRecord().getId());
261-
assertEquals(results.get(0).getScore(), expectedDistance, 0.0001d);
261+
assertEquals(results.get(0).getScore(), expectedDistance, 0.0002d);
262262
}
263263

264264

0 commit comments

Comments
 (0)