Skip to content

[Bug]: Pymilvus 2.6.4 breaks AsyncMilvusClient in MilvusVectorStore #20313

@Magolor

Description

@Magolor

Bug Description

Pymilvus 2.6.4 breaks AsyncMilvusClient in MilvusVectorStore, while downgrading pymilvus from 2.6.4 to 2.6.3 fixes the error. Probably related to pymilvus #3096?

Version

llama-index 0.14.8, llama-index-vector-stores-milvus 0.9.4, pymilvus 2.6.4

Steps to Reproduce

Install pymilvus 2.6.4 and use llama index to create a MilvusVectorStore instance:

from llama_index.vector_stores.milvus import MilvusVectorStore
vdb = MilvusVectorStore(uri=..., collection_name=..., dim=...)

Results in:

RuntimeError: no running event loop

Meanwhile, downgrading pymilvus from 2.6.4 to 2.6.3 fixes the error.

Relevant Logs/Tracbacks

File "/usr/local/python3/lib/python3.11/site-packages/llama_index/vector_stores/milvus/base.py", line 325, in __init__
  self._async_milvusclient = AsyncMilvusClient(
File "/usr/local/python3/lib/python3.11/site-packages/pymilvus/milvus_client/async_milvus_client.py", line 42, in __init__
  self._using = create_connection(
File "/usr/local/python3/lib/python3.11/site-packages/pymilvus/milvus_client/_utils.py", line 41, in create_connection
  loop = asyncio.get_running_loop()
RuntimeError: no running event loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions