PyMilvus 2.2.8 Release Notes
New Features
>>> utility.get_server_type(using="default")
"milvus"- List indexes by field name #1386
>>> utility.list_indexes(collection_name, field_name=vec_field)
[vec_field_idx]- [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. - [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