Attu Management

更新时间:
复制 MD 格式

Attu is an open-source management tool designed for the Milvus vector database. It provides a graphical user interface (GUI) that simplifies managing Milvus. Vector Retrieval Service for Milvus integrates Attu to efficiently manage resources such as databases, collections, indexes, and entities.

Prerequisites

Ensure you have configured network access and security settings. For more information, see Network access and security settings.

Connect to Attu

  1. In a browser, enter one of the following endpoints:

    • Internal endpoint: {{clusterId}}-internal.milvus.aliyuncs.com:3000

    • Public endpoint: {{clusterId}}.milvus.aliyuncs.com:3000

      Note

      If you use a public endpoint, you can also go to the Details page and click Attu Manager.

  2. In the dialog box, enter the database, username, and password, and click Connect to open the Attu management page.

    After you create an instance, the system automatically creates a default database named default and a user named root. The password for the root user is the one you set when you created the instance.

Manage databases

You can create, delete, and view databases. These operations require database management permissions.

Note

The default database cannot be deleted.

To create a database:

  1. On the Attu page, click the image icon in the left-side navigation pane.

  2. On the Databases page, click + Create Database.

  3. In the dialog box that appears, enter a database name and click Create.

Manage collections

You can manage schema design, data import, and daily maintenance for your collections. These actions require collection management permissions. The following example shows how to create a collection, create an index, and import and load vector data.

  1. On the Attu page, click the image icon in the left-side navigation pane.

  2. On the Collections page, click Create Collection to create a collection named demo.

  3. Click the collection name. On the Schema tab, create an index for the required fields.

  4. Click the image icon in the row of the target collection to import a sample dataset into demo.

  5. Load the vector data into memory.

Note
  • You can click Release to unload a collection from memory. The data is retained on disk, but you cannot search the collection until it is loaded again.

  • You can also click Drop to permanently delete a collection and its data. This action cannot be undone.

Vector search

Use vector search to explore data, validate models, and develop applications.

  1. Select a loaded collection, and click the Vector Search tab.

  2. Enter the target vector for the similarity search, configure the search parameters, and click Search.

    You can also click the image icon at the top and enter a filter expression to query scalar fields in the collection to obtain faster and more accurate search results.

Manage users and roles

Use this feature to create new users and roles, and assign permissions to users by granting them roles.

Create a user

  1. On the Attu page, click the image icon in the left-side navigation pane.

  2. On the Users tab, click + User.

  3. In the dialog box, set a Username and Password, assign a role to the user, and click Create.

Create a role

  1. On the User and Role page, click the Roles tab.

  2. On the Roles tab, click + Role.

  3. In the dialog box, set a role name, select the desired permissions, and click Create.