How to connect to Zilliz Cloud
How to connect to Zilliz Cloud in Python?
- 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
- Retrice your API key from the console
- 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!