Milvus client not initialized - Vector DB

I am trying to connect to Milvus vector DB but I keep getting this error - ““ERROR Milvus client not initialized””. I was able to upsert data into the knowledge base but I’m not able to query the vector db.

Hey @darshan_naidu
thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!

1 Like

Hey @darshan_naidu can you share more details? Like the agent config and a bit of more code?

Did you refer the implementation from here- agno/cookbook/agent_concepts/knowledge/vector_dbs/milvus_db/milvus_db.py at main · agno-agi/agno · GitHub
??

1 Like

The error went away and it started working after I changed the search type in Milvus from hybrid search to just vector search. I think the problem might have been caused by using hybrid search. Maybe Milvus only supports vector search in this case? Not too sure though. How to actually use hybrid search with Milvus?

This is the milvus db hybrid search cookbook- agno/cookbook/agent_concepts/knowledge/vector_dbs/milvus_db/milvus_db_hybrid_search.py at main · agno-agi/agno · GitHub

it also works, you’ll have to provide with some code for me to check whats happening.

1 Like