Create a knowledge base and import material

Open Resource Center → Knowledge Bases and select the creation action. Enter basic information and finish creation, then add material on the knowledge base details page.

1. Enter basic information

The name is required and supports up to 255 characters under Catalog naming rules. Start with a lowercase letter, digit, underscore, or Han character; subsequent characters may also include hyphens (-) and periods (.). Uppercase letters, spaces, and slashes (/) are not allowed. Use a name that describes the material, such as product_manuals or sales_rules.

Use remarks for purpose and maintenance notes. Enable image indexing in advanced settings if you need image retrieval. After creation, the knowledge base details page opens.

2. Add material

On the knowledge base details page, select Add data, choose existing files or data tables from Catalog, review the selected scope, and submit. Prepare Catalog resources that you have permission to read.

Material

What to check

Files

Whether file names and content fit the knowledge base scope.

Data tables

Whether table names, columns, sample data, and business meaning fit your needs.

To upload local files through the API, see Upload a local file to a knowledge base, then add the data source.

3. Check creation and processing

After adding material, inspect file or table counts on the details page. For documents, wait until each target file changes from processing to completed, then inspect its preview and chunks.

Start with a short test document containing a unique fact, such as an invented term and identifier. After processing, ask about that identifier to help distinguish retrieval from general model knowledge.

Next: Manage material, then bind and validate answers.

To create the Resource Center knowledge base described here through the API, see Create a data-side empty knowledge base. Create agent knowledge base metadata registers metadata that agents can reference and limits names to 128 UTF-8 bytes.

Last updated on