How to connect to Zilliz Cloud in Python?

  1. Install PyMilvus (Python SDK) (This works for Python after 3.7). If you want to install a specific version, see the official document.
    pip install pymilvus
    
  2. Retrice your API key from the console
  3. Connect to your cluster
from pymilvus import MilvusClient

CLUSTER_ENDPOINT = "YOUR_CLUSTER_ENDPOINT"
TOKEN = "YOUR_CLUSTER_TOKEN"

client = MilvusClient(
    uri=CLUSTER_ENDPOINT,
    token=TOKEN 
)

Now it is done!