You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix NPE when metadata is null in MilvusVectorStore
Adds a null check before injecting the distance property into metadata to prevent a NullPointerException if metadata is missing from the row record.
Signed-off-by: little_huang <[email protected]>
Copy file name to clipboardExpand all lines: vector-stores/spring-ai-milvus-store/src/main/java/org/springframework/ai/vectorstore/milvus/MilvusVectorStore.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -379,8 +379,10 @@ public List<Document> doSimilaritySearch(SearchRequest request) {
0 commit comments