Comment From: ilayaperumalg
Hi @sqyww , The properties such as databaseName
can be configured via VectorStore properties. Please refer to this documentation for more details.
Comment From: sqyww
Quote reply
I know this, what I mean is connecting different databases and querying multiple databases. I only found that when creating a collection, the database name can be specified, but when searching, it cannot be specified
Comment From: sqyww
I have a rough idea. To connect to multiple databases, it is necessary to initialize multiple vectorstores.I'm not sure if this is the case.
Comment From: markpollack
Thanks for the feedback. Indeed, we need to update the design of the VectorStore interface to be able to pass in more runtime properties, e.g using cosine vs. inner product as a measure of distance. The same if you want to query a different database that has the same schema in this issue.
We are working to achieve this by 1.0 GA early next year. In the meantime, i'm afraid you will have to create multiple @Bean
definitions , each pointing to a different database. instance.
Comment From: markpollack
This will have to wait until after GA