Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
Signed-off-by: Heemin Kim <[email protected]>
  • Loading branch information
heemin32 committed Jul 29, 2024
1 parent dda9293 commit 839999b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/org/opensearch/knn/integ/BinaryIndexIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public void testFaissHnswBinary_when1000Data_thenRecallIsAboveNinePointZero() {
Set.of(Arrays.copyOf(testData.groundTruthValues[i], k)),
knnResults.stream().map(KNNResult::getDocId).collect(Collectors.toSet())
);
System.out.println("testFaissHnsw_when1000Data_thenRecallIsAboveNinePointZero");
System.out.println("Line: " + i);
System.out.println(knnResults.stream().map(KNNResult::getDocId).collect(Collectors.toList()));
assertTrue("Recall: " + recall, recall > 0.9);
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/org/opensearch/knn/integ/IndexIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public void testFaissHnsw_when1000Data_thenRecallIsAboveNinePointZero() {
Set.of(Arrays.copyOf(testData.groundTruthValues[i], k)),
knnResults.stream().map(KNNResult::getDocId).collect(Collectors.toSet())
);
System.out.println("testFaissHnsw_when1000Data_thenRecallIsAboveNinePointZero");
System.out.println("Line: " + i);
System.out.println(knnResults.stream().map(KNNResult::getDocId).collect(Collectors.toList()));
assertTrue("Recall: " + recall, recall > 0.9);
}
}
Expand Down

0 comments on commit 839999b

Please sign in to comment.