Langchain Milvus - Handle switch between multiple databases #25277
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: milvus
Primarily related to Milvus vector store integration
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Ɑ: vector store
Related to vector store module
Checked other resources
Example Code
If I try to do operations in different databases of the vectorstore, Milvus, it doesn't work until I disconnect all existing connections. Otherwise, it always does the operation in the connection of 0th index of the global connections object
Only this works:
If I don't disconnect to all databases before doing all operations, all collections get created in the default milvus db and does not respect the db_name parameter in connection_args even when I noticed that the right db_name was being passed for the collection
Description
I have commented on the same issue here: milvus-io/pymilvus#2161 (comment) - this needs an urgent look since because of this, we are unable to use multiple databases with langchain_milvus without disconnecting all existing connections which is not the right way for us and is causing a lot of trouble.
I assume because of this code block:
While it gets the previous, connection, I am not sure if
db_name
parameter supplied inconnection_args
is respected when it reconnects.System Info
The text was updated successfully, but these errors were encountered: