Skip to content

Commit

Permalink
Fix BaseVectorStoreTests
Browse files Browse the repository at this point in the history
  - Fix assertion of value which is in Double in some of the vector stores (Milvus, Pinecone for now)

Signed-off-by: Ilayaperumal Gopinathan <[email protected]>
  • Loading branch information
ilayaperumalg committed Feb 26, 2025
1 parent 0065949 commit 96c8157
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected void deleteById() {
Map<String, Object> metadata = results.get(0).getMetadata();
assertThat(normalizeValue(metadata.get("country"))).isEqualTo("BG");
// the values are converted into Double
assertThat(normalizeValue(metadata.get("year"))).isEqualTo("2023.0");
assertThat(normalizeValue(metadata.get("year"))).containsAnyOf("2023", "2023.0");

vectorStore.delete(List.of(documents.get(2).getId()));
});
Expand Down

0 comments on commit 96c8157

Please sign in to comment.