Pick a Knowledge Base type and use case, then configure parsing and chunking.
A Knowledge Base is the core entity in the Knowledge platform. It groups documents, Chunks, embeddings, and index configuration together and exposes retrieval and Q&A capabilities.
When you create a Knowledge Base, choose a type. Each type uses a different data format and retrieval method:
When you choose Unstructured Documents, you must further pick a use case. The use case determines the retrieval and answering strategy:
To filter documents by attributes such as product name, author, category, or date, enable Metadata Extraction during Knowledge Base creation and click Settings to configure the metadata template:
Use the Create Knowledge Base and Import endpoint to create a Knowledge Base and submit an import job in one call:
Knowledge Base types
When you create a Knowledge Base, choose a type. Each type uses a different data format and retrieval method:
| Type | Data | Retrieval method | Notes |
|---|---|---|---|
| Unstructured Documents | PDF / Word / Markdown / HTML / Excel | Hybrid vector + keyword | Builds a mixed index for documents, files, images, and Excel sheets. |
| Structured data | CSV / Excel / RDS tables | Natural-language-to-SQL | Queries tables by schema (NL2SQL). |
| Image library | Product photos / design files | Multimodal embedding | Image-first indexing; supports image search and visual Q&A. |
| Audio / video library | Screen recordings / training videos | Transcription + segment locating | Fused understanding and summarization of audio/video content. |
Use cases
When you choose Unstructured Documents, you must further pick a use case. The use case determines the retrieval and answering strategy:
| Use case | Description |
|---|---|
| Basic Document Q&A | Retrieves document Chunks and generates answers directly with the LLM. |
| Visual Understanding (rich-text documents) | No chunking; the LLM directly interprets visually rich documents and images. |
| Ultra-Fast Q&A | For highly structured or simple documents; ultra-low-latency Q&A. |
Other types (Structured data, Image library, Audio / video library) have no use-case option. The console no longer offers the "Rich-Media Responses" use case. When you create a Knowledge Base through the API,
knowledgeScene still accepts the corresponding value visual_document_qa, but it is not recommended for new Knowledge Bases.Create from the console
1
Open Knowledge Management
Sign in to the console and go to Data Ingestion → Knowledge Management. Click Create Knowledge Base in the top right and choose an edition: Standard (0.03 yuan/hour, for quick experiments and business validation with shared compute) or Flagship (0.2 yuan/RCU/hour, for stable workloads with configurable compute and higher retrieval QPS).
2
Fill in basic info
| Field | Required | Notes |
|---|---|---|
| Name | Yes | 1–20 characters, unique within the workspace. |
| Description | Yes | Up to 200 characters, used in filtering. |
| Type | Yes | Unstructured Documents / Structured data / Image library / Audio / video library. |
| Use case | Yes | Basic Document Q&A / Visual Understanding / Ultra-Fast Q&A. |
3
Import data
Choose a data source:
Supported formats: PDF / DOCX / XLSX / PPTX / TXT / MD / HTML / CSV, etc.For Structured data Knowledge Bases, Excel data tables (.xls / .xlsx) must not exceed 20 MB per file. For Audio / video libraries, each file must not exceed 512 MB; the total number of audio and video files is limited to 10 in Standard edition and is unlimited in Flagship edition.
| Data source | Description |
|---|---|
| Upload files | Upload via the UI, up to 50 files per batch; see Limits for sizes and formats. |
| Select category | Import from a connector file category; supports automatic sync. |
| Select files | Pick specific files under a connector category. |
4
Pick a parsing method
By default, Default settings lets the system choose a parser by file type; no adjustment is needed in most cases.To configure per format, click Custom settings. Available parsers:
| Parsing method | Description | Best for |
|---|---|---|
| Native document parsing | Standard text extraction. | Clean electronic documents. |
| Document Intelligence Parsing | Layout-aware OCR + structure recovery. | Scans and complex layouts. |
| LLM-based parsing | An LLM interprets the document structure. | Non-standard formats. |
| Qwen-VL parsing | Visual language model. | Documents that mix text and images. |
| Audio / video parsing | Speech-to-text with timestamp locating. | Audio and video files. |
5
Configure index settings
| Parameter | Default | Notes |
|---|---|---|
| Chunking method | Smart Chunking | Alternatives: by length / by page / by heading / by regex / by delimiter. |
| Max chunk length | 600 | Range 10–6000. |
| Embedding model | qwen3.7-text-embedding | Multilingual text vector model; text-embedding-v4 is also available. |
| Vector storage | Platform storage | Alternative: self-managed ADB-PG engine. |
- Add up to five fields. Field names can contain only English letters and underscores.
- Available value methods are Constant (a fixed value), Variable (
file_nameorcat_name), LLM (extraction based on an entity description), RegEx (expression matching), and Keyword Search (matching preset keywords separated by English commas). - Used for Retrieval and Used for Model Reply have separate toggles. The former controls whether metadata fields and values participate in retrieval with the Chunk; the latter controls whether they are passed to the LLM as input for response generation.
- Metadata extraction cannot be added after the Knowledge Base is created. Create a new Knowledge Base and reimport the documents to use this feature.
Retrieval parameters such as the rerank model, TopK, and similarity threshold are configured in the retrieval service. See Knowledge Retrieval.
6
Create
Click Create Knowledge Base. The system automatically parses, chunks, embeds, and builds the index. Once the status becomes Ready, the Knowledge Base can be retrieved. Track progress in the document list.
Create through the API
Use the Create Knowledge Base and Import endpoint to create a Knowledge Base and submit an import job in one call:
You can change the chunking strategy after creation, but changing the embedding model triggers a full index rebuild. For complete capacity limits, see Limits.