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 connection.StringTrue
kwargs: portPort of the Milvus connection.IntegerTrue

Return

No return.

Raises

None.

Example

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

Was this page helpful?