Open magallardo opened 1 month ago
did not find any unexpected info in the logs. @congqixia could you please help to double check it?
/assign @congqixia /unassign
From the information provided, are you trying to connect milvus with langchain-milvus? Did you try using vanilla milvus pymilvus sdk?
hi, @magallardo Is your pymilvus version == v2.0.0rc2 ? maybe it is a little bit old for langchain_milvus. and after you upgrade your pymilvus version, can you try this code snippet
from pymilvus import MilvusClient
URI = "http://76.208.102.187:19530" # your uri
milvus_client = MilvusClient(uri=URI)
then try your langchain milvus code
vector_store_loaded = Milvus(
embeddings,
connection_args={"uri": URI},
collection_name="langchain_example",
)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen
.
Is there an existing issue for this?
Environment
Current Behavior
When I try to connect, I get the following error
2024-10-07 12:06:00 vectorDB = Milvus( 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 326, in init 2024-10-07 12:06:00 self.alias = self._create_connection_alias(connection_args) 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 410, in _create_connection_alias 2024-10-07 12:06:00 raise e 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 405, in _create_connection_alias 2024-10-07 12:06:00 connections.connect(alias=alias, connection_args) 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 449, in connect 2024-10-07 12:06:00 connect_milvus(kwargs, user=user, password=password, token=token, db_name=db_name) 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 400, in connect_milvus 2024-10-07 12:06:00 gh._wait_for_channel_ready(timeout=timeout) 2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 150, in _wait_for_channel_ready 2024-10-07 12:06:00 raise MilvusException( 2024-10-07 12:06:00 pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 76.208.102.187:19530, illegal connection params or server unavailable)>
Expected Behavior
Successful connection
Steps To Reproduce
Milvus Log
milvus.log
Anything else?
No response