Releases: milvus-io/pymilvus
Releases · milvus-io/pymilvus
PyMilvus 2.3.2 Release Notes
New Features
- Support new DataType: Array by @xiaocai2333 in #1681
What's Changed
- Change error_code to code by @jiaoew1991 in #1696
- Support numpy type value for bulkwriter by @yhmo in #1718
- support best_reduce(#1711) by @MrPresent-Han in #1712
- Fix the tls example by @SimFG in #1723
- Bump urllib3 from 1.26.5 to 1.26.17 by @dependabot in #1725
- Fix INDEX_NOT_EXIST error code by @XuanYang-cn in #1736
- Remove redundant type inference when insert data by @czs007 in #1739
- Enhance search result by @XuanYang-cn in #1727
- Fix rename_collection will move collection to default db by @smellthemoon in #1740
- Bump urllib3 from 1.26.17 to 1.26.18 by @dependabot in #1738
- Fix a typo by @CsterKuroi in #1732
- Fix orm SearchFuture bug by @XuanYang-cn in #1744
- add judgement for isPrimary by @MrPresent-Han in #1745
- Fix search result by @XuanYang-cn in #1748
- Add a lower bound for minio by @XuanYang-cn in #1743
- Update milvus-proto to tag==v2.3.2 by @XuanYang-cn in #1747
- Fix has_collection result with Milvus2.2 by @XuanYang-cn in #1750
- Update proto again by @XuanYang-cn in #1751
- Improve the default db for the rbac by @SimFG in #1752
- Fix api key by @bigsheeper in #1757
New Contributors
- @CsterKuroi made their first contribution in #1732
Full Changelog: v2.3.1...v2.3.2
PyMilvus 2.3.1 Release Notes
What's Changed
- Use flush_ts and collection_name when getting flush state by @bigsheeper in #1675
- Pass segment ids when get flush state by @bigsheeper in #1677
- while parse uri, overwrite the db_name with default by @PowderLi in #1682
- Update grpcio version range by @XuanYang-cn in #1692
- Add github action for publish on release by @XuanYang-cn in #1695
- Add db parameter in flush_all by @wayblink in #1701
- Enable ignored checker PYI024 by @XuanYang-cn in #1703
- Fix pass extra param by @smellthemoon in #1713
- fix conflict for ef and batch size by @MrPresent-Han in #1716
New Features
Full Changelog: v2.3.0...v2.3.1
PyMilvus 2.2.16 Release Notes
What's Changed
- Fix lint error by @yhmo in #1668
- while parse uri, overwrite the db_name with default by @PowderLi in #1683
- Update grpcio version range by @XuanYang-cn in #1693
- Update 2.2.x readme by @XuanYang-cn in #1700
Features
Full Changelog: v2.2.15...v2.2.16
PyMilvus 2.3.0 Release Notes
What's Changed
- Add the
load_state
api by @SimFG in #1258 - add resource group api by @weiliu1031 in #1274
- Support rename collection API by @jaime0815 in #1299
- Support upsert by @smellthemoon in #1303
- Add ignore_growing option for query and search by @aoiasd in #1286
- Add GPU index types by @cydrain in #1314
- Add RAFT GPU index types by @cydrain in #1323
- Add FlushAll api by @bigsheeper in #1334
- Add new metric type COSINE by @cydrain in #1376
- Add an utility to get server type by @longjiquan in #1381
- List indexes by field name by @longjiquan in #1386
- Remove default of shards_num for new collection by @XuanYang-cn in #1387
- Milvus Client by @filip-halt in #1374
- Support insert dict as JSON by @yah01 in #1424
- Support Partition key by @xige-16 in #1427
- support iterator for query and search by @MrPresent-Han in #1431
- Add support of insert by rows by @czs007 in #1434
- Support api key by @bigsheeper in #1460
- Call Connect after db name changed by @longjiquan in #1484
- Pass the is_dynamic field to the milvus server by @xiaocai2333 in #1495
- Support return pending index rows when describe index by @xiaocai2333 in #1504
- Do not set metric_type default value in search params (#1469) by @bigsheeper in #1511
- Support async refresh by @yah01 in #1537
- Change pylint to ruff and black by @XuanYang-cn in #1565
- add autoID to varchar dataType by @smellthemoon in #1583
- Support offset in search param by @XuanYang-cn in #1613
- Remove time travel params by @jiaoew1991 in #1635
- Disable logger from polluting other modules by @ponponon in #1646
New Contributors
- @liliu-z made their first contribution in #1223
- @smellthemoon made their first contribution in #1303
- @leykun10 made their first contribution in #1338
- @MrPresent-Han made their first contribution in #1431
- @pingliu made their first contribution in #1520
- @im-ajaymeena made their first contribution in #1517
- @shunjiezhao made their first contribution in #1551
- @slobentanzer made their first contribution in #1649
- @jyc4617 made their first contribution in #1638
- @ponponon made their first contribution in #1646
Full Changelog: v2.2.15...v2.3.0
PyMilvus 2.2.15 Release Notes
- Fixed some bugs.
- Enable to set offet&limit in search params.
PyMilvus 2.2.14 Release Notes
- Support rename db for collection
- Support describe index with timestamp
- Update bulkinsert examples
- Fix some bugs
PyMilvus 2.2.13 Release Notes
Fix apache software license classifier (#1563) Signed-off-by: zhenshan.cao <[email protected]>
PyMilvus 2.2.12 Release Notes
Fixing the encoding issue
By setting the "ensure_ascii=False" parameter in the "json.dumps" function, non-ASCII characters in the data are not escaped during the "insert" operation.
After inserting non-ASCII characters without escaping, users can also use them as keys in expression filtering from the JSON field.
The following is a sample code snippet.
import numpy as np
from pymilvus import MilvusClient, DataType
dimension = 128
collection_name = "books"
client = MilvusClient("http://localhost:19530")
schema = client.create_schema(auto_id=True)
schema.add_field("id", DataType.INT64, is_primary=True)
schema.add_field("embeddings", DataType.FLOAT_VECTOR, dim=dimension)
schema.add_field("info", DataType.JSON)
index_param = client.prepare_index_params("embeddings", metric_type="L2")
client.create_collection_with_schema(collection_name, schema, index_param)
rng = np.random.default_rng(seed=19530)
rows = [
{"embeddings": rng.random((1, dimension))[0],
"info": {"title": "Lord of the Flies", "author": "William Golding"}},
{"embeddings": rng.random((1, dimension))[0],
"info": {"作者": "J.D.塞林格", "title": "麦田里的守望者", }},
{"embeddings": rng.random((1, dimension))[0],
"info": {"Título": "Cien años de soledad", "autor": "Gabriel García Márquez"}},
]
client.insert(collection_name, rows)
result = client.query(collection_name, filter="info['作者'] == 'J.D.塞林格' or info['Título'] == 'Cien años de soledad'",
output_fields=["info"],
consistency_level="Strong")
for hit in result:
print(f"hit: {hit}")
The output will be:
hit: {'info': {'作者': 'J.D.塞林格', 'title': '麦田里的守望者'}, 'id': 442210659570062545}
hit: {'info': {'Título': 'Cien años de soledad', 'autor': 'Gabriel García Márquez'}, 'id': 442210659570062546}
PyMilvus 2.2.11 Release Notes
Add milvus_client
PyMilvus 2.2.9 Release Notes
- JSON support
- Dynamic schema
- Partition key
- Connection management