Bug description
According to this documentation, the MilvusVectorStore
expects a MilvusVectoreStoreConfig
as third parameter. However, the IDE tells me that the third parameter is a boolean called initializeSchema
. Is the documentation outdated? If so, how can I manually configure the Milvus vector store.
Environment
Spring AI version 1.0.0-M3
Steps to reproduce
@Bean
fun vectorStore(milvusClient: MilvusServiceClient, embeddingModel: EmbeddingModel): VectorStore {
val config = MilvusVectorStoreConfig.builder()
.withCollectionName("foo")
.withDatabaseName("bar")
.withMetricType(MetricType.COSINE)
.build()
return MilvusVectorStore(milvusClient, embeddingModel, config)
}
This should result in a type mismatch error for the third parameter.
Expected behavior The constructor signature should match the documented signature.
Comment From: ilayaperumalg
Hi @Stevan1996, The JavaDoc documentations for both SNAPSHOT and M3 are now fixed and published here.