🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Python

add_connection()

This method adds a Milvus connection.

Invocation

add_connection(**kwargs)

Parameters

ParameterDescriptionTypeRequired
kwargs: aliasConnection alias.StringTrue
kwargs: hostIP address of the Milvus connectionStringTrue
kwargs: portPort of the Milvus connectionIntegerTrue

Return

No return.

Raises

Example

from pymilvus import connections
connections.add_connection(
  default={"host": "localhost", "port": "19530"}
)

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?