Skip to content

PyMilvus 2.5.1 Release Notes

Compare
Choose a tag to compare
@XuanYang-cn XuanYang-cn released this 23 Dec 05:44
· 11 commits to 2.5 since this release
37736a2

New Features

Support AsyncIO (EXPERIMENTAL)

Introducing the native asyncio client in PyMilvus: AsyncMilvusClient. While only a subset of APIs is currently supported, this marks a significant step forward for PyMilvus. Enjoy exploring it!

import asyncio

from pymilvus import MilvusClient, AsyncMilvusClient, DataType


async def main():
    URI = "./milvus.db"
    async_client = AsyncMilvusClient(uri=URI)
    await async_client.create_collection("async_example", dimension=768)
    await async_client.drop_collection("async_example")
    await async_client.close()


if __name__ == "__main__":
    asyncio.run(main())

What's Changed

Full Changelog: v2.5.0...v2.5.1