GenerativeAIExamples icon indicating copy to clipboard operation
GenerativeAIExamples copied to clipboard

Chatting with NVIDIA Financial Reports MilvusException timeout

Open chesterxgchen opened this issue 1 year ago • 0 comments

OS. Linux Ubuntu 20.04

Issue: consistently get

MilvusException: <MilvusException: (code=2, message=Fail connecting to server on milvus:19530. Timeout)>

Example: https://github.com/NVIDIA/GenerativeAIExamples/blob/main/RAG/notebooks/langchain/Chat_with_nvidia_financial_reports.ipynb code with issue

COLLECTION_NAME = "NVIDIA_Finance"
from langchain_community.vectorstores import Milvus
vectorstore = Milvus.from_documents(
    documents,
    embedder_document,
    collection_name=COLLECTION_NAME,
    connection_args={"uri": 'http://milvus:19530'}, # replace this with the ip of the workstation where milvus is running
    drop_old=True,
)
docs = vectorstore.similarity_search("what are 2024 Q3 revenues? ")

The hello-milvus.py from Milvus is working file. I added timeout 60 or 120.still doesn't work

connection_args={"uri": 'http://milvus:19530', timeout:120},
``

chesterxgchen avatar Dec 01 '24 06:12 chesterxgchen