This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT! |
Refer to the Dependency Management section to add the Spring AI BOM to your build file. Refer to the Repositories section to add Milestone and/or Snapshot Repositories to your build file. |
this is a breaking change! In earlier versions of Spring AI, this schema initialization happened by default. |
Check the list of configuration parameters to learn about the default values and configuration options. |
Refer to the Dependency Management section to add the Spring AI BOM to your build file. |
These filter expressions are converted into the equivalent Milvus filters. |
Property | Description | Default value |
---|---|---|
spring.ai.vectorstore.milvus.database-name |
The name of the Milvus database to use. |
default |
spring.ai.vectorstore.milvus.collection-name |
Milvus collection name to store the vectors |
vector_store |
spring.ai.vectorstore.milvus.initialize-schema |
whether to initialize Milvus' backend |
false |
spring.ai.vectorstore.milvus.embedding-dimension |
The dimension of the vectors to be stored in the Milvus collection. |
1536 |
spring.ai.vectorstore.milvus.index-type |
The type of the index to be created for the Milvus collection. |
IVF_FLAT |
spring.ai.vectorstore.milvus.metric-type |
The metric type to be used for the Milvus collection. |
COSINE |
spring.ai.vectorstore.milvus.index-parameters |
The index parameters to be used for the Milvus collection. |
{"nlist":1024} |
spring.ai.vectorstore.milvus.client.host |
The name or address of the host. |
localhost |
spring.ai.vectorstore.milvus.client.port |
The connection port. |
19530 |
spring.ai.vectorstore.milvus.client.uri |
The uri of Milvus instance |
- |
spring.ai.vectorstore.milvus.client.token |
Token serving as the key for identification and authentication purposes. |
- |
spring.ai.vectorstore.milvus.client.connect-timeout-ms |
Connection timeout value of client channel. The timeout value must be greater than zero . |
10000 |
spring.ai.vectorstore.milvus.client.keep-alive-time-ms |
Keep-alive time value of client channel. The keep-alive value must be greater than zero. |
55000 |
spring.ai.vectorstore.milvus.client.keep-alive-timeout-ms |
The keep-alive timeout value of client channel. The timeout value must be greater than zero. |
20000 |
spring.ai.vectorstore.milvus.client.rpc-deadline-ms |
Deadline for how long you are willing to wait for a reply from the server. With a deadline setting, the client will wait when encounter fast RPC fail caused by network fluctuations. The deadline value must be larger than or equal to zero. |
0 |
spring.ai.vectorstore.milvus.client.client-key-path |
The client.key path for tls two-way authentication, only takes effect when "secure" is true |
- |
spring.ai.vectorstore.milvus.client.client-pem-path |
The client.pem path for tls two-way authentication, only takes effect when "secure" is true |
- |
spring.ai.vectorstore.milvus.client.ca-pem-path |
The ca.pem path for tls two-way authentication, only takes effect when "secure" is true |
- |
spring.ai.vectorstore.milvus.client.server-pem-path |
server.pem path for tls one-way authentication, only takes effect when "secure" is true. |
- |
spring.ai.vectorstore.milvus.client.server-name |
Sets the target name override for SSL host name checking, only takes effect when "secure" is True. Note: this value is passed to grpc.ssl_target_name_override |
- |
spring.ai.vectorstore.milvus.client.secure |
Secure the authorization for this connection, set to True to enable TLS. |
false |
spring.ai.vectorstore.milvus.client.idle-timeout-ms |
Idle timeout value of client channel. The timeout value must be larger than zero. |
24h |
spring.ai.vectorstore.milvus.client.username |
The username and password for this connection. |
root |
spring.ai.vectorstore.milvus.client.password |
The password for this connection. |
milvus |