Asset inventory

Updated at:
Copy as MD

Asset inventory is a core feature of Meta Agent. Meta Agent automatically scans database metadata and uses large language models (LLMs) to generate business descriptions, SQL comments, and usage guides for tables and columns, helping you rapidly build a data asset knowledge base. This topic describes how to use Meta Agent to perform an asset inventory.

Scenarios

Asset inventory applies to the following scenarios:

  • A large number of tables and columns in your databases lack business descriptions or SQL comments, making it difficult for developers and O&M engineers to understand the data.

  • New team members need to quickly understand the table structures and business logic of a database when taking over a project.

  • Your organization is launching a data governance initiative and needs to catalog metadata across data assets in bulk.

  • You want to prepare knowledge for the asset Q&A feature to improve the accuracy of natural language queries.

Supported database types

Asset inventory supports the following database instance types:

Category

Supported databases

Relational databases

ApsaraDB RDS for MySQL, ApsaraDB RDS for PostgreSQL, ApsaraDB RDS for SQL Server, PolarDB for MySQL, PolarDB for PostgreSQL

Data warehouses

AnalyticDB for MySQL, AnalyticDB for PostgreSQL, MaxCompute

NoSQL databases

MongoDB (supported only by the Data Lakehouse Edition)

Note

The Database Edition supports only relational databases. The Data Lakehouse Edition supports all types. The actual supported scope is subject to the options available in the console.

Inventory scope and knowledge types

During asset inventory, Meta Agent automatically collects metadata and generates the following types of knowledge:

Knowledge type

Description

Example

Business description

Generates Chinese-language business descriptions for tables and columns based on table structures and data samples to explain the business meaning and purpose of data.

Business description of the t_order table: "Primary order table that records core transaction information for user orders"

SQL comment

Automatically generates SQL comment statements for tables and columns that lack COMMENT definitions. Batch write-back to the database is supported.

COMMENT ON COLUMN t_order.user_id IS 'User ID of the order creator';

Usage guide

Generates query suggestions, relationship descriptions, and usage notes based on the business scenarios and column characteristics of each table.

"When you query orders, use indexed columns such as order_id or user_id for optimal performance"

Business classification

Automatically categorizes tables into corresponding business classification directories (such as transactions, users, and products) based on their business semantics for easy asset retrieval.

The t_order table is categorized under "Transaction Domain > Order Management"

Prerequisites

  • Make sure that you have purchased Meta Agent (Database Edition or Data Lakehouse Edition).

  • Make sure that the target database instance is registered in AI-Native Database Service. For more information, see Manage data sources.

  • Make sure that the current account has query permissions on the target database. At least the SELECT and SHOW privileges are required for metadata collection.

Procedure

  1. Log on to the AI-Native Database Service console.

  2. In the left-side navigation pane, in the AI Data Assets section, click Meta Agent.

  3. On the Meta Agent page, in the asset inventory card, click Start Inventory.

  4. In the Create Asset Inventory Task dialog box, select the inventory scope:

    • Click the Instance, Database, or Table tab to set the inventory granularity, and then select the target objects.

    Note

    You can select an entire database instance for a full inventory or select specific databases or tables for an incremental inventory. For first-time use, select an instance that contains your core business tables for a trial run.

  5. (Optional) Click Inventory Configuration and adjust the inventory parameters as needed.

  6. Confirm the configuration and click Next to proceed to the Knowledge Generation and Confirmation stage. Wait for Meta Agent to complete the inventory task.

    Note

    The time required depends on the number and complexity of tables in the database. During the inventory, Meta Agent automatically completes metadata scanning, knowledge generation, and classification cataloging. The inventory process does not modify any data in your database.

  7. After the inventory is completed, review the results. You can:

    • Click a table name to view the business description, column comments, and usage guide for the table.

    • Review and edit the generated business descriptions and comments to ensure the accuracy of the knowledge.

Result

After the inventory is completed, you can view and use the generated knowledge from the following locations:

  • Business catalog: On the left side of the Meta Agent page, switch to the Business Catalog view to browse data assets organized by business domain.

  • Standard catalog: Switch to the Standard Catalog view to browse metadata details organized by database structure (instance > database > table).

  • Recent assets: In the Recent Assets tab at the bottom of the Meta Agent page, view recently inventoried data assets.

  • Asset Q&A: The knowledge generated by the inventory is automatically applied to the asset Q&A feature, which allows you to retrieve and analyze data assets by using natural language.

Core inventory logic

Asset inventory leverages LLMs to perform in-depth analysis of database metadata. By combining your industry context and domain knowledge, it translates technical metadata into business-oriented language, building a business semantic layer that is understandable to both humans and AI.

Processing workflow:

  1. Metadata collection: Reads DDL, indexes, constraints, and other structural information of target databases and tables through secure managed connections. No business data is read.

  2. Domain knowledge integration: Incorporates the configured industry and domain context to understand the actual business meaning of tables and columns.

  3. Semantic inference and generation: The LLM infers the business meaning of each table and column, identifies business entities, and maps relationships between entities.

  4. Knowledge system construction: Organizes the inference results into a structured knowledge system, including business descriptions, usage instructions, lineage relationships, and SQL knowledge.

  5. Manual review and adoption: Generated knowledge can be adopted with one click or edited before adoption to ensure accuracy.

AI value of business semantic knowledge

When AI interacts with enterprise data, the primary barrier is not a lack of technical capability but a lack of business understanding. Asset inventory transforms technical and abbreviated metadata into explicit business-oriented semantic knowledge, enabling AI to understand enterprise data as naturally as it understands natural language.

Value dimension

Without semantic knowledge

With semantic knowledge

Natural language to SQL (NL2SQL) accuracy

Frequently misinterprets abbreviated table and column names, generating invalid SQL queries.

Accurately understands business semantics and generates correct SQL queries.

Data analysis depth

Can only perform surface-level numerical aggregations without understanding business logic.

Understands the meaning of column values and delivers in-depth analysis with business insights.

Q&A reliability

Cannot answer questions such as "Which table stores XX data?"

Accurately locates target tables and columns based on business descriptions.

Code generation quality

Generated SQL may miss business rules such as soft deletion and partitioning.

Generates code that complies with business rules based on usage instructions.

FAQ

  • Does asset inventory affect database performance?

    Asset inventory reads only database metadata (such as INFORMATION_SCHEMA) and does not perform full table scans. The impact on database performance is minimal.

  • What if the inventory results are inaccurate?

    The generated business descriptions and comments are based on LLM inference and may contain inaccuracies. You can directly edit and correct them on the inventory results page. Corrected knowledge takes priority over generated content.

  • Can I run asset inventory on the same database multiple times?

    Yes. When you run the inventory again, Meta Agent performs an incremental update: it regenerates knowledge only for newly added or modified tables and columns. Manually corrected content is not overwritten.