Skip to content

PyMilvus 2.2.8 Release Notes

Choose a tag to compare

@XuanYang-cn XuanYang-cn released this 28 Apr 13:30
· 91 commits to 2.2 since this release
c100783

New Features

  1. [FEATURE]: Has an utility function to parse if the connection is to Zilliz cloud or opensource Milvus
>>> utility.get_server_type(using="default")
"milvus"
  1. List indexes by field name #1386
>>> utility.list_indexes(collection_name, field_name=vec_field)
[vec_field_idx]
  1. [FEATURE]: Remove the logic to fill in the default number of shard when create collection
    PyMilvus doesn't set default shard numbers when creating a new collection.
  2. [FEATURE]: PyMilvus supports using env configs
  • Support uri with username and password:
from pymilvus import connections
uri = "https://username:[email protected]:19530"
connections.connect(uri=uri)
  • Support using MIVLUS_URI env to init default connection alias.
// set MILVUS_URI in env
$ export MILVUS_URI=https://username:[email protected]:19530
>>> from pymilvus import connections
>>> connections.connect()
>>> connections.get_connection_addr("default")
{"address": "exampledomain.com:19530", "user": username}
  • Support reading envs from .env file
# .env.example in https://github.com/milvus-io/pymilvus/blob/master/.env.example
# Please copy this file and rename as .env, pymilvus will read .env file if provided

MILVUS_URI=
# MILVUS_URI=https://username:[email protected]:19530

# Milvus connections configs
MILVUS_CONN_ALIAS=default
MILVUS_CONN_TIMEOUT=10

Bug fixes