milvus-logo
Star
0
Forks
0
Get Started

add_connection()

This method adds a Milvus connection.

Invocation

add_connection(**kwargs)

Parameters

ParameterDescriptionTypeRequired
kwargs
  • alias
  • host
  • port

  • Connection alias
  • IP address of the Milvus connection
  • Port of the Milvus connection

  • String
  • String
  • Integer

  • True
  • True
  • True

Return

No return.

Raises

Example

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