From a3f44872eedfcb842a75a926e1f25ba76dd4547f Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Tue, 20 Aug 2024 09:27:08 +0200 Subject: [PATCH] Fix OracleVectorStoreObservationIT bug --- .../org/springframework/ai/vectorstore/OracleVectorStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java index 118cbabea2..260f4c4990 100644 --- a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java +++ b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java @@ -625,7 +625,7 @@ public Builder createObservationContextBuilder(String operationName) { return VectorStoreObservationContext.builder(VectorStoreProvider.ORACLE.value(), operationName) .withDimensions(this.embeddingModel.dimensions()) .withCollectionName(this.getTableName()) - .withFieldName(getSimilarityMetric()); + .withSimilarityMetric(getSimilarityMetric()); } private static Map SIMILARITY_TYPE_MAPPING = Map.of(