Create and manage knowledge bases (Agentic KB)

Updated at:

Connect data from Alibaba Cloud Elasticsearch or OpenSearch Vector Search Edition to AI Search Open Platform to build a knowledge base for your organization. The knowledge base supports automatic document parsing, file import, and data queries. You can use it in Agentic Search to build intelligent question-answering and retrieval applications.

Knowledge base capabilities

To carry out a task, an agent needs facts it can cite, sources it can trace, relationships between entities, and the latest state relevant to the task.

Alibaba Cloud Elasticsearch, OpenSearch Industry Algorithm Edition, or OpenSearch Vector Search Edition provides the underlying engine for document retrieval, data queries, multimodal content, and existing indexes. Knowledge distillation extracts key facts through hierarchical summaries. Agentic Wiki organizes knowledge by topic and source, and Graph represents entities and relationships.

Multi-channel retrieval and result fusion

Enterprise tasks draw on several information sources. Vector retrieval alone is unlikely to meet requirements for access control, freshness, precision, and evidence quality at the same time. The four-layer retrieval workflow selects channels across memory, page structure, derived knowledge, and the underlying search engines:

Retrieval channel

Retrieval method

Content

Primary use

Memory

Retrieves user sessions and short- and long-term memories.

Facts, preferences, experience, and constraints

What to remember

PageIndex

Uses the page structure and semantic nodes in PageIndex to improve retrieval and locate relevant content precisely.

Structured page indexes for documents

Locate passages in long documents and trace them back to the evidence.

Agentic Wiki

Uses Agentic Wiki and Graph to retrieve and analyze factual sources and their relationships.

Traceable derived knowledge and organized business concepts

How to organize knowledge

Elasticsearch / OpenSearch

Elasticsearch or OpenSearch provides full-text, filtered, vector, multimodal, and hybrid retrieval. The workflow can supplement results with information from the public web when needed.

Original knowledge sources and structured data

Retrieve authoritative facts and query current data.

After retrieval, the pipeline deduplicates, merges, and reranks results, resolves conflicts, and evaluates evidence quality before generating citations. The results enter the task context with their evidence, versions, permissions, and last update times. This gives the agent traceable, explainable context it can use to continue the task. Context fusion, compression, and dynamic window management help maintain continuity across steps.

Hybrid text and image retrieval

Agentic Search supports finding images from text, finding images from other images, and retrieving text associated with images. It combines OCR, document layout, and attribute filters to locate relevant pages, regions, or timestamps where supported. In automotive workflows, for example, you can match a photo of a fault to repair documentation or locate specific information in scans and technical drawings. Use real text-and-image tasks to evaluate retrieval relevance, object disambiguation, consistency across versions and definitions, and the ability to pinpoint evidence.

Connections, authorization, and governance

Unified access to multiple knowledge sources: Connect to Elasticsearch, OpenSearch Vector Search Edition, and OpenSearch Industry Algorithm Edition in read-only mode. Combine keyword, vector, and structured filters to retrieve and merge results across channels. Retain the original source and version of each piece of evidence. Data can stay in its original location, and each task can query the sources it needs.

Unified authorization: Manage knowledge base permissions, including automatic authorization using Elasticsearch or OpenSearch instance credentials and VPC access authorization. This also covers RAM permissions for accessing OSS data through OpenAPI integrations and backend services, and integrations with third-party agents such as DMS DataAgent and DataWorks DataAgent.

Lightweight semantic layer: Register business objects, relationships, metric definitions, and source mappings, and standardize aliases for business entities. This helps prevent an agent from mixing vehicle models, versions, or time ranges when a part has several names or a metric has several definitions. The layer serves as a lightweight registry without requiring a full OWL ontology or a graph database. Use the original evidence to validate semantically organized information and automatically generated wiki entries. Preserve and explain any conflicts.

Knowledge engine governance: Continually identify knowledge gaps, outdated content, and indexing issues. Use user feedback to recommend improvements to knowledge governance and retrieval. The engine supports version management and rollback.

Create a knowledge base

  1. Sign in to the Agentic Search console.

  2. In the left-side navigation pane, click Knowledge Base to open the knowledge base list. Then click Create Knowledge Base.

  3. Configure the following settings.

    Basic information

    Parameter

    Description

    Knowledge Base Name

    A unique name for the knowledge base. It must be 1 to 30 characters long, start with a letter, and contain only lowercase letters, digits, and underscores. It must be unique within the workspace.

    Description

    A description of what the knowledge base is for. The maximum length is 1,024 characters.

    Knowledge base engine configuration

    Parameter

    Description

    Engine

    The search engine that powers the knowledge base.

    Note

    When you select an Alibaba Cloud Elasticsearch 8.x or 9.x instance, check the console for available instances. Compatibility may vary by minor version and instance type. Before importing files in bulk, test document processing and retrieval with a small set of files.

    Network Type

    The network used to access the engine. The default is the public network.

    Domain Name

    The endpoint of the engine instance. For Elasticsearch, enter the public or VPC domain name of the instance. For OpenSearch Vector Search Edition, enter the public endpoint. Add the AI Search Open Platform IP addresses to the engine instance's IP address whitelist. Use the IP addresses displayed in the console.

    Authentication Information

    The credentials used to access the engine. For Elasticsearch, use the username:password format. For OpenSearch Vector Search Edition, enter the AccessKey.

    Document processing configuration

    Parameter

    Description

    File Parsing Model

    The document parsing service is fixed to ops-document-analyze-002. It recognizes complex elements such as tables, formulas, and charts. PDF files can contain up to 400 pages.

    Document Segmentation

    Enabled by default. This setting splits documents into individual sentences for fine-grained retrieval.

    Image Content Parsing

    Enabled by default. This setting analyzes images in documents to improve retrieval for documents that contain images.

    Enhanced Comprehension

    Enabled by default. This setting enriches document content semantically and automatically generates document and section summaries. This improves retrieval relevance and helps the system understand the document as a whole.

    Embedding Model

    The model that converts document content into vectors. Select text-embedding-v4 or ops-qwen3-embedding-0.6b. The model must match the vector index in the engine.

    Multimodal Embedding Model

    The model that converts multimodal content, such as images in documents, into vectors. Select qwen3-vl-embedding or qwen3-vl-plus.

    Model service configuration

    Parameter

    Description

    API Key configuration

    Configure the API key, workspace, and connection domain name required by the model service. Click Not Configured to open the configuration panel. Select a workspace, an API key, and a connection domain name. You can connect over a VPC or the public network. After you confirm the configuration, the button label changes to Configured.

    Risk Warning

    Select the checkbox to confirm that you have read the risk warning.

    Billing Notice

    This configuration incurs AI Search Open Platform charges. Confirm that you understand the AI Search Open Platform billing.

After you configure the parameters, click OK to create the knowledge base. It then appears in the knowledge base list.

Import files

After you create a knowledge base, you can import documents into it. Find the knowledge base in the list. In its Actions column, click Import File.

Upload local files

You can upload two types of files:

  • Unstructured Data: Supports doc, docx, pdf, html, txt, md, ppt, pptx, xls, xlsx, mp4, avi, mkv, and mov files. Each file can be up to 1 GB.

  • Structured Data: Supports JSON and Excel files encoded in UTF-8. Each file can be up to 1 GB.

Upload files from OSS

You can import files from Object Storage Service (OSS). Select the Upload from Data Source tab and configure the OSS endpoint, path, and bucket.

View file processing results

Find the knowledge base in the list. In its Actions column, click Data Query to see how the imported files were processed. The panel shows the following information:

  • Summary statistics: Total files, successfully parsed files, total chunks, and total vectors.

  • File list: Processing status (Succeeded or Failed), chunk count, vector count, processing time, and processing details for each file. Expand the details to view the chunk contents. You can search by file name and browse the results by page.

After you import the files, make sure the processing status of the file is Succeeded. Then select the knowledge base in Agentic Search and ask a question to confirm that it can retrieve the content you expect from the file.

If a file takes a long time to process or processing fails, review the processing details. Check the engine instance's status, endpoint, credentials, and IP address whitelist.

Edit a knowledge base

Find the knowledge base in the list. In its Actions column, click Edit to change the engine, document processing, and model service settings. You can choose to apply the changes to documents that have already been processed. If you select this option, the system parses and indexes those documents again, which can take some time.

Delete a knowledge base

Find the knowledge base in the list. In its Actions column, click the ⋮ icon and select Delete. In the confirmation dialog box, click Confirm deletion. Deleted data cannot be recovered.