1、
html
spring:
application:
name: spring-ai-alibaba-rag-milvus-example
ai:
dashscope:
api-key: sk-xxxxxxoooooo
vectorstore:
milvus:
client:
host: xxx.ooo.mmm.nnn
port: 19530
username: root
password: Milvus
databaseName: default
collectionName: vector_store
#初始化 collection结构
initializeSchema: true
embeddingDimension: 1536 # default: 1536
indexType: IVF_FLAT # default: IVF_FLAT
metricType: COSINE # default: COSINE
2、初始化的milvus的collection结构如下
