Updated on 2024-11-25 GMT+08:00

Milvus

The Milvus connector allows you to connect applications with the Milvus database, and manage data transmission.

Milvus is a high-performance, highly scalable vector database that operates efficiently in diverse environments, from laptops to large distributed systems. It is available as both open-source software and cloud-based services.

Creating a Milvus Connection

  1. Log in to the new ROMA Connect console.
  2. In the navigation pane on the left, choose Connector. On the page displayed, click New Connection.
  3. Select the Milvus connector.
  4. In the dialog box displayed, configure the connector and click OK.

    Parameter

    Description

    Name

    Enter the connector instance name.

    Region

    Select a region.

    Project

    Select a project.

    Instance

    Select an instance for subsequent connectivity verification.

    Connection and Security

    Select the connection mode for the database. Currently, the Default mode is supported. The system automatically concatenates data source connection character strings based on configured data.

    Host IP Address

    Enter the IP address of the database.

    Port

    Enter the port number for connecting to the database.

    Database Name

    Enter the name of the database to be connected.

    Username

    Enter the username used to connect to the database.

    Password

    Enter the password used to connect to the database.

    Description

    Enter the description of the connector to identify it.

Action

  • Adding data
  • Querying data
  • Deleting data

Configuring Parameters

Table 1 Adding data

Parameter

Description

Collection Name

Select or enter the name of the collection to which data is to be added.

Data to Insert

Enter the field name and value of the data to be added.

Table 2 Querying data

Parameter

Description

Collection Name

Select or enter the name of the collection whose data is to be queried.

Update Data

Enter the name of the field to be queried.

Search Method

Mode of searching for data.

  • Metadata search: queries non-vector fields.
  • Vector search: searches for the most matched vector based on vector similarity.

Vector Field

This parameter is required only when Search Method is set to Vector Search.

Enter the similar vector to be queried. Pay attention to the vector type and dimension.

Top K

This parameter is required only when Search Method is set to Vector Search.

Returns the top K results most similar to the query vector, where K is a specified number, such as 5.

Metadata Search

Searches for and filters data based on specified metadata, returning results that meet the criteria. If no value is provided, filtering is not applied.

Table 3 Deleting data

Parameter

Description

Collection Name

Select or enter the name of the collection whose data is to be deleted.

Metadata Search

Searches for and filters data based on specified metadata, returning results that meet the criteria.