milvus-logo
Star
0
Forks
0
Get Started

MilvusClient()

This is a class to initialize a Milvus client instance. Once connected to the Milvus instance, you can perform operations from this client.

Invocation

const milvusClient = new MilvusClient(MILUVS_ADDRESS);

Parameter

ParameterDescriptionTypeRequiredExample
addressThe Milvus IP addressStringTrue'192.168.0.1:19530'
sslSSL connection. It is false by default.BooleanFalsefalse
usernameThe username used to connect to MilvusStringFalsemilvus
addressThe password used to connect to MilvusStringFalsemilvus

Example

const milvusAddress = `192.168.0.1:19530`;
const milvusClient = new MilvusClien(MILUVS_ADDRESS);
// if you have a user, username and password both is milvus, you can
const milvusClient2 = new MilvusClien(
  MILUVS_ADDRESS,
  false,
  "milvus",
  "milvus"
);