PyMilvus 2.5.1 Release Notes
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
- fix: Branch 2.5 action rules by @XuanYang-cn in #2384
- enhance: [2.5] grant/revoke v2 optional db and collection params by @shaoting-huang in #2393
- feat: [2.5] support recalls field in SearchResult by @chasingegg in #2391
- fix: [2.5] fix list aliases rpc call and grant/revoke v2 by @shaoting-huang in #2405
- extend unlimted offset for query iterator(#2418) by @MrPresent-Han in #2421
- fix: [2.5]Add is_clustering params for get_compaction_plans in orm by @xiaocai2333 in #2430
- enhance: [2.5] rbac privilege group and grant v2 examples by @shaoting-huang in #2427
- enhance: alterindex & altercollection supports altering properties by @JsDove in #2432
- enhance: [2.5]alterdatabase support delete property by @JsDove in #2437
- fix: [25]Unify logger and correct logging settings (#2397) by @XuanYang-cn in #2401
- enhance: refine query iterator cp(#2412) by @MrPresent-Han in #2441
- enhance: [2.5] support hints param by @chasingegg in #2442
- enhance: [2.5]Add example for milvus client about expression template by @xiaocai2333 in #2444
- enhance: [2.5] createdatabase support properties by @JsDove in #2449
- fix: [2.5]fix describe database return type by @JsDove in #2452
- feat: [2.5] asyncio support by @brcarry in #2458
- feature: support milvus-client iterator(#2465) by @MrPresent-Han in #2466
- fix: [2.5] add
authorization_interceptor
anddb_interceptor
to async channel by @brcarry in #2473 - enhance: add search_group_by example for milvus-client(#2481) by @MrPresent-Han in #2484
- enhance: [2.5]add example for null and default_value by @smellthemoon in #2486
- fix: [2.5] ensure
create_index
andload_collection
are fully completed by @brcarry in #2478 - fix: [2.5]Support hybrid search with expression template by @xiaocai2333 in #2489
- enhance: add use_database by @czs007 in #2492
- enhance: Sync milvus-proto to latest v2.5.0 by @XuanYang-cn in #2494
- fix: [2.5] RuntimeWarning: coroutine 'Channel.close' was never awaited when closing async client by @brcarry in #2499
Full Changelog: v2.5.0...v2.5.1