spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.16k stars 786 forks source link

spirng-ai-milvus default create index failed #630

Closed imkratos closed 3 months ago

imkratos commented 6 months ago

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create. If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:

Bug description when use milvus default create index , io.milvus.exception.ServerException: index doesn't exist, collectionID 448783011129880848

Environment Please provide as many details as possible: Spring AI version, Java version, which vector store you use if any, etc

Steps to reproduce Steps to reproduce the issue.

Expected behavior

image

without indexname ?

Minimal Complete Reproducible example Please provide a failing test or a minimal complete verifiable example that reproduces the issue. Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.

markpollack commented 3 months ago

See MilvusVectorStoreAutoConfigurationIT, it passes and creates the index at starutp. You will find the code you attached in MilvusVectorStore and should set the property initialize-schema to true. See the docs here.

Please reopen the issue if this does not solve your issue.