Bug description Can't do similarity search with different columns.
see line 338 and 341 https://github.com/spring-projects/spring-ai/blob/9381ab609f40da038e85405586686c201f03c714/vector-stores/spring-ai-milvus-store/src/main/java/org/springframework/ai/vectorstore/MilvusVectorStore.java#L325-L341
Environment Spring AI version: 0.8.0 Java version: 17 vector store: Milvus (zilliz cloud)
Steps to reproduce
Create a collection with columns other than [doc_id, content, metadata]
.
Now try to do similarity search.
Expected behavior
SearchRequest
should provide way to override the default output params.
Note: EMBEDDING_FIELD_NAME = embedding
is also fixed.
Comment From: markpollack
maybe related to search options in https://github.com/spring-projects/spring-ai/pull/203
Comment From: sobychacko
@siddharthshankarpaul Is this still a problem for you? In the Milvus vector store now, the collections are created with more fields than the default ones you mentioned above - [doc_id, content, metadata]
. I believe those were added since this issue was initially created. Could you confirm whether this is still a problem on your end?
See this: https://github.com/spring-projects/spring-ai/blob/main/vector-stores/spring-ai-milvus-store/src/main/java/org/springframework/ai/vectorstore/milvus/MilvusVectorStore.java#L444
This is invoked from the Mivus vector store IT.
Thanks!
Comment From: sobychacko
Closing this issue due to no recent activity. Feel free to re-open it if the issue is still there and provide any extra relevant information. Thanks!