-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Ɑ: vector store
Related to vector store module
Comments
dosubot
bot
added
Ɑ: vector store
Related to vector store module
🔌: milvus
Primarily related to Milvus vector store integration
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
Aug 11, 2024
@ccurme Got this working by making changes as mentioned in milvus-io/pymilvus#2161 (comment) But this needs an update in langchain_milvus package as well as suggested |
4 tasks
efriis
added a commit
that referenced
this issue
Aug 26, 2024
Thank you for contributing to LangChain! - [x] **PR title**: "package: description" - Where "package" is whichever of langchain, community, core, experimental, etc. is being modified. Use "docs: ..." for purely docs changes, "templates: ..." for template changes, "infra: ..." for CI changes. - Example: "community: add foobar LLM" - "libs: langchain_milvus: add db name to milvus connection check" - [x] **PR message**: ***Delete this entire checklist*** and replace with - **Description:** add db name to milvus connection check - **Issue:** #25277 - [x] **Add tests and docs**: If you're adding a new integration, please include 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. - [x] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/ Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. --------- Co-authored-by: Erick Friis <[email protected]>
Hi, @tvvignesh. I'm Dosu, and I'm helping the LangChain team manage their backlog. I'm marking this issue as stale. Issue Summary
Next Steps
Thank you for your understanding and contribution! |
dosubot
bot
added
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Nov 20, 2024
dosubot
bot
removed
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Nov 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: milvus
Primarily related to Milvus vector store integration
Ɑ: 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: