Create a knowledge base and import material

In Agent mode, open Resource Center → Knowledge Bases (or start creation from the + composer menu in a chat) to create a knowledge base through a two-step wizard: enter basic settings first, then add material by Local Upload or Select from Catalog. After creation, you can append additional local or Catalog sources in knowledge-base details.

If you create a knowledge base from the Data workspace (Resource Center > Knowledge Base), the creation modal collects basic settings only and appends sources from Catalog afterward; see Creation and Data Sources.

1. Enter basic information

  1. Open Resource Center → Knowledge Bases and click the creation action.

  2. Enter a required name (up to 255 characters following 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, such as product_manuals or sales_rules).

  3. Optional: Fill in remarks explaining the scope and questions this knowledge base answers.

  4. Optional: Expand advanced options and enable Enable image index if you want image content indexed for retrieval.

  5. Click Next to choose data sources.

2. Select data sources (Local upload or Catalog)

The second step (as well as appending sources later in knowledge-base details) supports both local uploads and Catalog assets:

Source option

Supported material and notes

Local Upload · Unstructured

Click, drag, or choose folders to upload documents, images, audio, or video files (format and batch limits follow UI prompts).

Local Upload · Structured

Upload a single CSV, XLS, or XLSX file, preview sheets, and configure separators/headers, column types, primary keys, and conflict policy.

Select from Catalog

Pick existing supported files or data tables across workspace Catalogs, databases, and volumes without duplicating underlying data.

Review the selected files or tables and click Create. 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 submitting, inspect file or table counts on the details page. For unstructured documents, check Current upload and the file list until status changes from Processing to Completed, then inspect previews 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 verify that answers come from your uploaded material.

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