NVIDIA / NVIDIA/GenerativeAIExamples

Chatting with NVIDIA Financial Reports MilvusException timeout

Open
#253 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.2k
Forks
1.1k
Avg merge
10h 15m
Merged PRs (30d)
1

Description

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},
``

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with RAG/notebooks/langchain/Chat_with_nvidia_financial_reports.ipynb and reproduce the Milvus.from_documents call using the reported connection_args. Check the Milvus service endpoint at milvus:19530 and compare the notebook setup with the working hello-milvus.py example. Done means the notebook connects successfully and completes the similarity_search without a MilvusException timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.