PyMilvus 2.4.11 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")
if __name__ == "__main__":
asyncio.run(main())
Other new features
- enhance: grant/revoke v2 optional db and collection params by @shaoting-huang in #2392
- feat: support recalls field in SearchResult by @chasingegg in #2389
- feature: support milvus-client iterator by @MrPresent-Han in #2465
- enhance: add use_database by @czs007 in #2493
Enhancements
- extend unlimted offset for query iterator(#2418) by @MrPresent-Han in #2420
- enhance: alterindex & altercollection supports altering properties by @JsDove in #2423
- enhance: rbac privilege group and grant v2 examples by @shaoting-huang in #2426
- enhance: alterdatabase support delete property by @JsDove in #2439
- enhance: add search_group_by example for milvus-client(#2481) by @MrPresent-Han in #2483
- fix: Support hybrid search with expression template by @xiaocai2333 in #2490
- enhance: Add example for milvus client about expression template by @xiaocai2333 in #2445
- enhance: createdatabase support properties by @JsDove in #2450
- enhance: refine search_group_by_example(#2481) by @MrPresent-Han in #2485
Bug fixes
- fix: Unify logger and correct logging settings (#2397) by @XuanYang-cn in #2402
- fix: fix list aliases rpc call and grant/revoke v2 by @shaoting-huang in #2404
- fix: Add is_clustering params for get_compaction_plans in orm by @xiaocai2333 in #2429
- fix: fix describe database return type by @JsDove in #2453
- fix: resolve conflicts and update connections.py by @brcarry in #2462
- fix: add
authorization_interceptor
anddb_interceptor
to async channel by @brcarry in #2472 - fix: ensure
create_index
andload_collection
are fully completed by @brcarry in #2477
Full Changelog: v2.4.10...v2.4.11