Context Graph (knowledge base) is an independent module in DataWorks for unified knowledge management. It automatically discovers data semantics, integrates multi-source business knowledge, and builds a unified and governable knowledge network. After you create a knowledge base, you can build knowledge from workspaces, data sources, and uploaded files, and control the usage scope through administrators and sharing authorizations. A successfully built knowledge base can be used by AI Assistant and Data Agent.
Overview
Context Graph (knowledge base) is the unified knowledge management module of DataWorks. It provides a unified knowledge foundation for intelligent applications such as Data Agent and AI Assistant. It organizes information scattered across workspace metadata, data sources, and business documents into browsable, searchable, and authorization-controlled knowledge, enabling intelligent applications to have consistent business context during Q&A, data retrieval, and analysis.
Knowledge bases are managed as independent instances. A single knowledge base can be reused by multiple intelligent applications without redundant construction in each application.
Key capabilities and use cases
-
Automatic metadata knowledge building: Scans DataWorks workspaces and automatically builds business domain and semantic knowledge for metadata such as tables, columns, tasks, metrics, and lineage.
-
Semantic model generation and management: Generates semantic models based on data sources that describe business entities, dimensions, metrics, and their relationships, unifying business definitions.
-
Multi-source business document integration: Supports uploading local files or synchronizing online documents from DingTalk, Feishu, Lark, WeCom, and Yuque, to include unstructured materials such as policies, product manuals, and data dictionaries in unified search.
-
Structured knowledge presentation: Uses a large language model to organize knowledge into a wiki with directories, topics, and pages for easy browsing and navigation by business topic. Each piece of content can be traced back to its source and supporting evidence.
-
Knowledge relationship exploration: Displays knowledge objects and their relationships in a knowledge graph, and provides reasoning paths and supporting evidence around business questions for use cases such as impact analysis and metric definition verification.
-
Unified knowledge search: Searches knowledge objects, wiki pages, and graph entities from a single entry point, supporting business terms, technical names, file names, and natural language questions.
-
Empowering intelligent applications: Serves as the knowledge foundation for Data Agent and AI Assistant, enabling them to understand business terms and provide more accurate responses during natural language Q&A, data exploration, and code generation.
-
Automated updates and unified authorization: Keeps knowledge in sync through scheduled build tasks and controls the usage scope through fine-grained authorization.
After a knowledge build task runs, the system generates knowledge objects (semantic models and business documents), and a large language model further organizes the knowledge content into a wiki and knowledge graph. For information about how to view, review, and publish knowledge objects, see Manage knowledge objects. For information about how to use the wiki, knowledge graph, and knowledge search, see Use a knowledge base.
Relationship with AI Assistant and Data Agent
Context Graph (knowledge base) is an independent module. In the left-side navigation pane of the DataWorks console, it is at the same level as Data Agent and AI Assistant. You create and manage knowledge base instances in this module. Knowledge bases created in Context Graph (knowledge base) can be used in AI Assistant and Data Agent.
If you previously created knowledge bases in AI Assistant, the existing knowledge bases are displayed as local knowledge bases in the interface. Newly created AI Assistant Service instances no longer support creating local knowledge bases. To create a knowledge base, go to Context Graph (knowledge base) for unified creation and management. For more information, see Local knowledge bases (for existing AI Assistant users).
Prerequisites
Complete the following preparations before you use a knowledge base:
-
DataWorks is activated and you have entered the tenant in which you want to create a knowledge base.
-
To build knowledge from workspace semantics, make sure that the current account has read permissions on the workspaces and related data assets to be collected.
-
A serverless resource group and its associated project are prepared for running knowledge build tasks. The selected resource group must have network connectivity and access permissions to the data sources or cloud services required for the build, and must have sufficient available capacity to meet the Compute CU requirement of the task (4 CU by default).
Key concepts
|
Concept |
Description |
|
Knowledge base type |
|
|
Local knowledge base |
A knowledge base previously created in AI Assistant by existing AI Assistant users. It continues to be displayed in the interface and supports regeneration, export, and clearing. Newly created AI Assistant Service instances no longer generate local knowledge bases. |
|
Source management |
Configures the workspaces and data sources available for knowledge building. |
|
Knowledge building |
The process of converting workspace metadata, data sources, or uploaded files into browsable and searchable knowledge. |
|
Task definition |
Describes the long-term configuration of a build task, including the task name, build scope, trigger method, and runtime environment. |
|
Run instance |
An actual execution of a task definition. A single task definition can produce multiple run instances, and each instance has its own run status and logs. |
|
Semantic model |
A model that describes business entities, dimensions, metrics, and their relationships in a structured manner, with support for version management and deployment. |
|
Business document |
Business materials included in the knowledge base, such as business glossaries, design documents, and operation guides. You can upload local files or sync online documents from DingTalk, Feishu, Lark, WeCom, or Yuque. The documents are parsed and included in unified search. |
|
Wiki |
Generated by a large language model based on published knowledge objects. It organizes knowledge content into directories, topics, and pages for easy browsing and navigation. |
|
Business domain |
A group of data assets categorized by business topic. |
|
Semantic knowledge |
Business names, definitions, relationships, hints, synonyms, and query examples extracted and organized from metadata and business materials. |
Step 1: Create a knowledge base
-
Log on to the DataWorks console. In the top navigation bar, switch to the target region.
-
In the left-side navigation pane, click Context Graph to go to the knowledge base list page by default. On the knowledge base list page, click Create Knowledge Base.
-
In the Create Knowledge Base dialog, configure the knowledge base information.
Parameter
Description
Name
Required. Enter an easily identifiable name. The name can be up to 128 characters in length after leading and trailing spaces are removed. We recommend that the name reflect the business scope, such as "Retail Operations Knowledge Base".
Type
Required. Select Personal or Enterprise: A Personal knowledge base is visible to and manageable only by its creator. An Enterprise knowledge base is visible to all users in the same tenant, and only authorized users can manage it. For more information, see Knowledge base types and access scopes.
Description
Optional. Describe the business scope, target users, and update method of the knowledge base. The description can be up to 1,024 characters in length.
-
Click Create Knowledge Base. After the knowledge base is created, you can configure administrators for it or share it with other accounts in the tenant. For details, see Manage permissions.
When you delete a knowledge base, all knowledge within it is also deleted. Proceed with caution.
Step 2: Configure sources (optional)
Because accessing online documents requires credentials, you must first configure them as document sources in Source Management before you can use them in document knowledge build tasks. Supported document sources include DingTalk Docs, Feishu Docs, Lark Docs, WeCom Docs, and Yuque Docs.
After you remove a source, new tasks can no longer select it, but the knowledge results generated by previous tasks are not deleted.
Add a DingTalk Docs source
Prerequisite: Create a connection on the official DingTalk MCP portal and obtain the complete HTTPS URL that contains the key parameter.
-
Go to the Source Management page in DataWorks and click Add Source.
-
Set Source Type to DingTalk Docs.
-
Configure the following parameters:
-
Source Name: Enter a custom name of up to 256 characters.
-
MCP Full URL: Paste the complete HTTPS URL obtained in the prerequisite.
-
-
Select a Document Scope:
-
My Documents: Synchronizes the personal documents of the current user.
-
Specified Knowledge Bases, Directories, or Documents: Limits the synchronization scope to specified resources.
-
-
Click Verify Credentials and Scope.
-
If the verification fails, check the credentials, authorization scope, document links, and network access configurations.
-
-
After the verification is passed, click Add Source.
-
Supported formats: Only native DingTalk documents (with the
.adocextension) can be synchronized. Sheets, multidimensional tables, mind maps, and independently uploaded files (such as PDFs and Word documents) are not included in the synchronization scope. -
Content conversion: During synchronization, the document body is converted to Markdown format. Only the text descriptions of images and attachments are retained.
-
Credential security: For security reasons, saved MCP Keys are not displayed on the edit page. If you do not need to change the credentials when editing a source, leave the corresponding input fields empty to retain the existing configuration.
Add Feishu documents
Prerequisites: Create or select a custom enterprise application on the Feishu Open Platform and obtain its App ID and App Secret. Add the bot capability to the application and grant the following read-only permissions:
-
wiki:wiki:readonly -
docx:document:readonly -
drive:drive:readonly
Create and publish the application version. In each Feishu Wiki space that you want to synchronize, add the application bot as a member and grant it the "Can Read" permission.
Procedure
-
Go to the Source Management page in DataWorks and click Add Source.
-
Set Source Type to Feishu Documents.
-
Configure the following parameters:
-
Source Name: A custom name with a maximum length of 256 characters.
-
App ID: The App ID obtained in the prerequisites.
-
App Secret: The App Secret obtained in the prerequisites.
-
-
Select the document scope:
-
All Authorized Scope: Synchronizes all Wiki spaces accessible to the application bot.
-
Specified Knowledge Bases, Directories, or Documents: Precisely limits the synchronization scope. To synchronize an independent Docx document, provide its link.
-
-
Click Verify Credentials and Scope.
-
If the verification fails, check the credentials, authorization scope, document links, and network access configuration.
-
-
After the verification is passed, click Add Source.
-
Supported formats: Only native documents in Feishu Wiki (Wiki nodes with
obj_type=docx) can be synchronized. -
Unsupported formats: Multidimensional tables (Bitable), mind maps (Mindnote), spreadsheets (Sheets), and directly uploaded files (such as PDFs and Word documents) are not included in the synchronization scope.
-
Credential security: For security reasons, saved App Secrets are not displayed on the edit page.
-
Editing rules: When you edit a saved source, if you do not need to change the credentials, leave the App Secret input field empty to retain the existing configuration. If you change the App ID, you must also provide a new App Secret.
Add Lark documents
Prerequisites: Create or select a custom enterprise application on the Lark Open Platform and obtain its App ID and App Secret. Add the bot capability to the application and grant the following read-only permissions:
-
wiki:wiki:readonly -
docx:document:readonly -
drive:drive:readonly
Create and publish the application version. In each Lark Wiki space that you want to synchronize, add the application bot as a member and grant it the "Can Read" permission.
Procedure
-
Go to the Source Management page in DataWorks and click Add Source.
-
Set Source Type to Lark Documents.
-
Configure the following parameters:
-
Source Name: A custom name with a maximum length of 256 characters.
-
App ID: The App ID obtained in the prerequisites.
-
App Secret: The App Secret obtained in the prerequisites.
-
-
Select the document scope:
-
All authorized scope: Synchronizes all Lark Wiki spaces accessible to the application bot.
-
Specified Wiki spaces: Precisely limits the synchronization scope. Only Wiki space or settings page links are supported.
-
-
Click Verify Credentials and Scope. If the verification fails, check the credentials, authorization scope, document links, and network access configuration.
-
After the verification is passed, click Add Source.
-
Supported formats: Docx documents in Lark Wiki, which are converted to Markdown format during synchronization.
-
Unsupported formats: Sheet, Base/Bitable, MindNote, and attachments are not included in the synchronization scope.
-
Credential security: For security reasons, a saved App Secret is not displayed on the edit page. When you edit a saved source without changing the credentials, you can leave the App Secret field empty to retain the original configuration. If you change the App ID, you must also provide a new App Secret.
Add WeCom documents
Prerequisites: Use a WeCom smart bot in API mode and obtain its Bot ID and Bot Secret. To create a bot, perform the following steps:
-
Log on to the WeCom admin console by using an administrator account or an account that has application management permissions.
-
Go to Management Tools > Smart Bot, and create or select the bot that you want to connect.
-
Select API mode, configure the bot name, avatar, and visibility scope, and then save the settings.
-
In the bot authorization configuration, enable permissions related to documents and WeDrive.
-
On the bot details or development configuration page, copy the Bot ID and Secret.
Procedure
-
Go to the Source Management page in DataWorks, and click Add Source.
-
Set Source Type to WeCom Documents.
-
Configure the following parameters:
-
Source Name: A custom name that contains up to 256 characters.
-
Bot ID: The Bot ID obtained in the prerequisites.
-
Bot Secret: The Bot Secret obtained in the prerequisites.
-
-
Select the shared spaces that you want to synchronize. You can enter a space name to search, or leave the field empty to query all spaces. You do not need to add the bot as a member of the shared space. The synchronization scope is determined by the shared spaces and documents that the bot can actually search and read.
-
Click Verify Credentials and Scope. If the verification fails, check the bot credentials and permissions.
-
After the verification is passed, click Add Source.
-
Supported formats: WeCom Word, regular spreadsheets, and smart spreadsheets.
-
Credential security: For security reasons, a saved Bot Secret is not displayed on the edit page. When you edit a saved source without changing the credentials, you can leave the Bot Secret field empty to retain the original configuration. If you change the Bot ID, you must also provide a new Bot Secret. The Bot Secret is required when you re-query spaces. If you leave it empty, the currently selected spaces are retained.
-
If a Secret is leaked, lost, or reset, generate a new Secret and re-verify.
Add Yuque documents
Prerequisites: Create a read-only Token for each Yuque team that you want to synchronize, and note the corresponding space Host of the team. To create a Token, perform the following steps:
-
Create a Yuque team, or go to an existing target team.
-
Open the Team Management page, go to the Developer section, and select Create Token.
-
Grant only the read documents and read knowledge base permissions. Do not grant write or member management permissions.
-
Copy the Token and note the full space Host of the team. The Token and Host must be configured as a pair.
Use a team read-only Token. Do not use a personal Token as the credential for a production data source.
Procedure
-
Go to the Source Management page in DataWorks and click Add Source.
-
Set Source Type to Yuque Document.
-
Enter a Source Name (a custom name with up to 256 characters) and configure 1 to 32 Yuque teams. For each team, specify the following information:
-
Yuque Host: The space URL of the team, for example, https://example.yuque.com.
-
Team Read-only Token: The read-only token created for the team in the prerequisites.
-
-
Select the document scope:
-
All Team Knowledge Bases: Synchronizes all knowledge bases under the team.
-
Specified Knowledge Bases: Specifies knowledge base URLs to limit the synchronization scope, for example, https://example.yuque.com/team/repository.
-
-
Click Validate Credentials and Scope. The validation result is displayed for each team.
-
After validation succeeds, click Add Source.
-
Supported formats: Yuque documents and Yuque data tables. Sheets are not included in the synchronization scope.
-
Credential security: For security reasons, saved tokens are not displayed on the editing page. When you edit a saved source without changing the credentials, you can leave the Token field empty to retain the existing configuration.
-
If a token is leaked, revoked, expired, or the Host is changed, create and submit a matching new token and then re-validate.
Step 3: Build knowledge
After you enter the target knowledge base, click Build Knowledge in the upper-right corner of the details page and select a build method. The system provides three build methods:
-
Workspace Semantic Build: Select a workspace to create a knowledge build task from scratch.
-
Data Source Semantic Build: Select a data source and specify tables to build knowledge with fine-grained control.
-
Document Knowledge Build: Synchronize online documents from DingTalk, Feishu, Lark, WeCom, Yuque, or upload local files to build document-based knowledge.
All three build methods allow you to configure the run policy in Update Method. If you select Manual, the task runs only when manually triggered. If you select Periodic, you can set the execution cycle and time on a monthly, weekly, daily, or hourly basis, and the system runs the task automatically.
All three build methods require the following runtime environment parameters:
|
Parameter |
Required |
Description |
|
Runtime Workspace |
Yes |
The workspace in which the build task runs. This parameter defines where the task is executed, which can be different from the workspace being analyzed. |
|
Runtime Resource Group |
Yes |
Select a serverless resource group for running the build task. Make sure that the resource group has network connectivity to the required data sources and large language model services, and has sufficient available capacity for the specified Compute CUs. |
|
Compute CUs |
No |
The compute resources allocated for the build task. You can configure 4 to 16 CUs. The default value is 4. If the number of tables exceeds 30,000, we recommend that you increase the number of CUs. |
|
Resource Group Project |
Yes |
Select the project associated with the selected resource group. The knowledge build task runs in the resource group and its associated project. Make sure that the project is associated with the resource group. The available options are displayed on the page. |
|
Large Language Model |
Yes |
Select the large language model used for semantic enrichment or document parsing. The available models are displayed in the list on the page. Different models vary in capabilities and token consumption, which directly affects the quality and cost of knowledge building. |
The following sections describe the parameters specific to each of the three build methods.
Workspace semantic build
Suitable for performing a full scan and initial build from a configured workspace.
|
Parameter |
Required |
Description |
|
Task Name |
Yes |
Specify a unique and easily identifiable name for this build task to facilitate subsequent management. Maximum: 128 characters. |
|
Scan Scope |
Yes |
Select a DataWorks workspace as the knowledge source. The system analyzes the tasks and tables in the workspace. After you select a workspace, the page displays the estimated number of tasks and tables to be analyzed. |
|
Data Profiling |
No |
A toggle option. We strongly recommend that you enable this option to improve knowledge quality.
|
|
Update Method |
Yes |
This section defines the trigger method of the task and includes the following configurations:
|
-
Knowledge scanning calls a large language model (LLM) for semantic analysis, which consumes tokens. Initiate build tasks based on your actual needs.
-
When you use workspace semantic build, the metadata collection for tables does not differentiate by data source type. Most data sources in the selected workspace can be built into structured knowledge.
Data source semantic build
Suitable for building knowledge based on specific data sources by selecting tables with fine granularity to generate semantic models.
|
Parameter |
Required |
Description |
|
Task Name |
Yes |
A custom task name used to identify and search for the task in Build Management. Format: 2 to 64 characters, starting and ending with a letter or digit. |
|
Business Objectives and Focus |
Yes |
Describe your business goals and focus areas in business language. The system uses this information to plan the scan scope and model output. Example: |
|
Data scope |
|
|
|
Metric import |
No |
Import metric definition files by using a fixed Excel template to supplement metric definitions and dependent columns, which improves the accuracy of generated results. After the import, the page displays the number of verified metrics. During task execution, the final table selection scope determines the admission results. |
|
Preferences |
No. All options are selected by default. |
Configure data filtering rules. Tables that match these rules are excluded from analysis. All rules are enabled by default. You can disable rules as needed:
|
|
Reference files |
No |
Upload local files or add URLs as business reference materials to assist semantic generation and help the system understand the business context. Supported file formats include PDF, Word, Markdown, text, and YAML. |
|
Update method |
Yes |
This section defines the trigger method for the task and includes the following settings:
|
Document knowledge building
This option is suitable when documents are the primary knowledge source. You can include online documents from DingTalk, Feishu, Lark, WeCom, or Yuque, as well as local business materials in the knowledge base. Tasks are configured in four sections: Document source, Build scope, Runtime environment, and Update method.
Select one of the three Document source options:
-
Local upload: Upload files or folders and build knowledge from them.
-
DingTalk documents: Synchronize a configured DingTalk source without uploading files.
-
Feishu documents: Synchronize a configured Feishu source without uploading files.
Online document sources are available only when the corresponding platform source has been configured in Source Management. For configuration instructions, see Step 2: Configure document sources.
When you select an online document source (DingTalk, Feishu, Lark, WeCom, or Yuque), enter a Task Name and select a Document Library in the Build Scope section. The synchronization scope inherits the configuration of the source in source management, so you do not need to specify it again here. Build Knowledge after Sync is enabled by default, which automatically builds knowledge after synchronization is complete. If you disable this option, only documents are synchronized without knowledge building.
When you select Local Upload, upload files in the Build Scope section. The following table describes the parameters:
|
Parameter |
Required |
Description |
|
Upload Files |
Yes |
This is the core input for knowledge building. You can drag and drop files or folders, or click Upload Files or Upload Folder to upload. When you upload a folder, the original directory structure is preserved. Upload limits:
After the upload, the system automatically marks or ignores files with unsupported formats, files that exceed size limits, or system files in the file list. |
The following file formats are supported for local file uploads:
|
File category |
Supported formats |
|
Documents |
|
|
Structured data |
|
|
Technical text |
|
|
Images |
|
If the uploaded files contain images, you must select a large language model that supports multimodal capabilities for building. [To be confirmed: list of models that currently support multimodal capabilities]
Step 4: Build management
After you start knowledge building, you can view build tasks in build management. On the knowledge base details page, click the Build Management tab to manage task definitions and run instances. Each time a task runs, a run instance is generated.
-
Task definitions
Each task definition contains the task name, task type, build scope, trigger method, resource group for running, and task status. You can search by task name, filter by task type, trigger method, and enabled status, and refresh the task definitions.
Available operations:
-
Run Now: Manually triggers a build.
-
Edit: Modifies configurations such as the task name and trigger method.
-
Enable / Disable: Controls the automatic triggering of scheduled tasks.
-
Delete: Removes a task definition. A task cannot be deleted while it is running.
-
-
Run instances
Run instances display the task name, type, trigger method, run status, start time, and operations for each execution. You can filter by run status, task type, and trigger method. Knowledge base upgrade tasks also appear in the run instance list, with the task type displayed as Version Upgrade. Available operations:
ImportantThe running time of the instance depends on the size of the knowledge content to be built. The process may take a long time. Wait patiently.
-
View: Opens the run instance details.
-
Source Files: Views the input files used for this build.
-
Cancel: Cancel instances that are still eligible for termination.
-
Retry: Re-initiate execution for failed or terminated instances that allow rerun.
-
-
Running instance details
When the status of a running instance is "Failed", perform the following steps:
-
Identify the issue: In the Running Instances list, click View for the failed task. On the details page, locate the red failed step in the execution graph.
-
Analyze logs: Open the logs of the failed step and troubleshoot based on the error message by referring to the following table.
-
Resolve and retry: After you fix the issue, go back to the Task Definition page and click Run Now.
-
|
Error category |
Typical log clues |
Action |
|
File format |
The log indicates that formats such as |
Refer to the file format list in the Document knowledge building section. Convert the file to a supported format or split oversized files, and then upload again. |
|
Resource group |
The log indicates that the serverless resource group is unavailable, has exceeded its quota, or is not associated with a project. |
Check the resource group status and associated project. Refer to the Prerequisites section to verify the resource group configuration. |
|
Workspace permissions |
The log indicates that access to metadata, data assets, or the workspace is denied. |
Contact the workspace administrator to grant the required read permissions on the target workspace and data assets. |
|
Network connectivity |
The log indicates a timeout or connection failure when accessing a data source or cloud service. |
Check whether the resource group can reach the required data sources and cloud services over the network. |
|
Source data access |
The log indicates that the source table or source asset does not exist or returns empty results. |
Verify that the source data still exists and that the path and identity credentials are valid. If necessary, narrow the collection scope and retry. |
After you fix the issue, click Run Now again in the task definition.
Step 5: Use the knowledge base
After the build task succeeds, the knowledge base becomes available. The following operations are supported:
-
Browse the wiki, and view the knowledge graph and reasoning paths.
-
Use unified knowledge search.
-
Use the knowledge base in Data Agent and AI Assistant.
For more information, see Use a knowledge base.
The semantic models and business documents generated during the build can be viewed, reviewed, and deployed in Knowledge Objects. For more information, see Manage knowledge objects.
Access control
The availability of a knowledge base depends on its type and authorization status.
-
Enterprise knowledge base: Available to all members within the same tenant.
-
Personal knowledge base: Available only to the owner by default. Other users or intelligent applications must be granted access by the owner or an administrator through the sharing operation.
-
Application authorization restrictions: Data Agent and AI Assistant cannot be set as knowledge base administrators. They can only be authorized as consumers through sharing.
Step 6: Configure settings and permissions
After you configure the knowledge base, you can assign multiple administrators for daily management. You can also share the knowledge base with users, AI Assistant instances, or Data Agent instances to provide knowledge reasoning capabilities for the agent context.
Configuration management
Go to the target knowledge base and click Configuration Management at the top of the details page to modify basic information, administrators, and sharing scope. Configuration Management is available only when the current user has at least one configuration permission. The visible configuration sections are determined by permissions, and not all users can see all sections.
-
Basic information
Modify the knowledge base name, type, and description. The save rules are the same as those for creating a knowledge base. Closing the page during saving may be restricted to avoid losing results.
-
Administrator settings
In Administrator Settings, you can add tenant users as co-maintainers of the knowledge base. Administrators can collaboratively maintain the knowledge base, but only the owner can delete or clear the knowledge base. Procedure:
-
Enter a name or account to search for users in the same tenant.
-
Select a user and confirm the addition. The new administrator appears in the administrator list, which also displays the owner.
-
To revoke permissions, click Remove and confirm. After removal, the user immediately loses knowledge base management permissions. The owner cannot be removed.
-
-
-
Switch the authorization object type: User, Data Agent, or AI Assistant Service.
-
Search for the target object by name or ID.
-
Select an object and confirm the authorization. The authorized object is displayed in the Authorized list.
-
To revoke access, click Remove and confirm.
-
Role permissions
|
Operation |
Owner |
Administrator |
Regular member of enterprise knowledge base |
Object with sharing authorization only |
|
View and search knowledge |
Supported |
Supported |
Supported |
Search only |
|
Modify knowledge base configurations |
Supported |
Supported |
Not supported |
Not supported |
|
Configure and run builds |
Supported |
Supported |
Not supported |
Not supported |
|
Upload and delete business documents |
Supported |
Supported |
Not supported |
Not supported |
|
Administrators and sharing authorization |
Supported |
Supported |
Not supported |
Not supported |
|
Clear knowledge base semantic data |
Supported |
Not supported |
Not supported |
Not supported |
|
Delete a knowledge base instance |
Supported |
Not supported |
Not supported |
Not supported |
Content language
Knowledge base content supports Simplified Chinese and English. Each knowledge base maintains only one content language.
-
During the first build, the system determines the content language of the knowledge base based on the language setting in the upper-right corner of the DataWorks console. [To be confirmed: whether the rule that the language is locked at the first build and cannot be changed remains unchanged]
-
After the language is determined, all subsequent builds use the same language. Switching the console language only changes the console interface and does not change the language of existing knowledge.
-
Directly changing the content language of an existing knowledge base is not supported. To use a different language, create a knowledge base and initiate the first build under the target page language.
-
Physical table names, column names, SQL statements, code, IDs, original tags, and reference evidence are not translated. Therefore, an English knowledge base may still contain Chinese characters from the source data.
Upgrade legacy knowledge bases
Legacy knowledge bases must be upgraded before you can use Wiki and Knowledge Graph. The upgrade can be initiated by the knowledge base owner or administrator. Regular members can view the knowledge base and use available features but cannot perform the upgrade.
-
Open the knowledge base list, find the legacy knowledge base marked as Upgradable, and click the mark.
-
Read the upgrade instructions and select the resource group and resource group project to use for the upgrade.
-
Click Confirm Upgrade. After the upgrade task is created, you can view the progress and results in Running Instances under Build Management. The task type is displayed as Version Upgrade.
The upgrade generates Wiki and Knowledge Graph based on all baseline data in the current knowledge base and incurs a small amount of token consumption. Do not initiate other knowledge build tasks during the upgrade. If a build task is currently running, cancel it or wait for it to finish, and then refresh the page before initiating the upgrade. The upgrade does not delete historical knowledge sources. A failed upgrade does not affect existing knowledge base data or normal usage. For information about local knowledge bases for existing AI Assistant users, see Local knowledge bases (for existing AI Assistant users).
Local knowledge bases (for existing AI Assistant users)
The knowledge base has been separated from AI Assistant as an independent module. For existing AI Assistant users, knowledge bases previously created in AI Assistant are displayed as local knowledge bases in the interface and remain usable. When the knowledge base module is embedded in AI Assistant, local knowledge bases are displayed in the personal knowledge base section of the knowledge base list. You can click a local knowledge base to go to the knowledge base management page of AI Assistant.
-
Supported operations for local knowledge bases: Existing local knowledge base features remain available, including regeneration, export, and clearing.
-
Differences from the knowledge base module
Item
Local knowledge base (legacy)
Knowledge base module
Entry
The Knowledge Base tab on the AI Assistant instance details page
Knowledge Base in the left-side navigation pane of the console
Whether creation is supported
Newly created AI Assistant Service instances no longer generate local knowledge bases.
Supported
Ownership
Belongs to a single AI Assistant Service instance
Independent instance that can be reused by multiple intelligent applications
Knowledge base type
No type distinction
Supports personal knowledge bases and enterprise knowledge bases
Sharing method
Used only within the current instance
Supports granting access to users, Data Agent, or AI Assistant Service through Share
-
Differences from newly created AI Assistant Service instances: Newly created AI Assistant Service instances no longer generate local knowledge bases, which means you can no longer create knowledge bases within AI Assistant Service. To create a knowledge base, go to the Context Graph (knowledge base) module for unified creation and management, and then use it in AI Assistant Service or Data Agent as needed. To use Wiki and knowledge graphs for existing knowledge bases, see Upgrade existing knowledge bases.
FAQ
-
Q: Why are source management or knowledge building buttons not clickable?
A: Your account may have only read-only or shared usage permissions. Contact the knowledge base owner or administrator to verify your permissions.
-
Q: Why can't I see all sections in configuration management?
A: The system displays only the sections that you have permission to manage. For example, having permission to edit basic information does not necessarily mean you can manage the sharing scope.
-
Q: Why are there no available workspaces or data sources on the build page?
A: The source has not been added to the knowledge base. Add it in source management first, and then return to the page. The available options will be refreshed.
-
Q: What do I do if DingTalk or Lark source verification fails?
A: Check the application credentials, read-only permissions, document member permissions, document scope, and the network access configuration of the resource group. After confirming these settings, click Re-verify.
-
Q: What do I do if a knowledge base cannot be upgraded?
A: If you do not see the Upgradable tag, the knowledge base may have already been upgraded, your account may not be the owner or an administrator, or the knowledge base version information may be temporarily unavailable. Refresh the list and verify your account permissions. If the tag is visible but you cannot submit the upgrade, a build task is usually running for the same knowledge base. Cancel or wait for the task to finish, manually refresh the page, and then try again. A failed upgrade does not affect the existing knowledge base data or normal usage.
-
Q: Why does deleting a task fail?
A: The task may still be running, in the process of being deleted, or depended on by other tasks. Terminate active instances and remove dependencies first, and then retry the deletion.
-
Q: Why can't I create a knowledge base in AI Assistant Service?
A: Knowledge bases have been separated into an independent module for unified management. Newly created AI Assistant Service instances no longer generate local knowledge bases. Create a knowledge base in the Context Graph (knowledge base) module. After creation, you can use it in AI Assistant Service and Data Agent.
-
Q: Can existing local knowledge bases still be used?
A: Yes. Knowledge bases previously created in AI Assistant Service by existing users are displayed as local knowledge bases in the interface. You can still regenerate, export, and clear them without affecting their original usage.
-
Q: What is the difference between an administrator and sharing authorization?
A: Administrators can configure, upload to, and build knowledge bases. Users, Data Agent instances, or AI Assistant Service instances that are granted access through Share can only use the knowledge for search or Q&A and cannot modify the knowledge base.
Recommendations
-
Plan the source scope before the first build to avoid scanning irrelevant workspaces.
-
Assign a clear owner for the knowledge base and configure backup administrators.
-
Enable data profiling for knowledge bases that require high semantic quality, and monitor SQL sampling and token consumption.
-
After a successful build, check the running instances, knowledge graph coverage, and knowledge search results together to verify usability.
-
Unpublished versions of semantic models do not automatically replace the currently deployed version. Review them before you deploy.
-
Disabling a task pauses subsequent triggers, while deleting a task removes the task definition. Do not confuse the two operations.
-
Enrich source table and column comments, data standards, owners, lineage, and data quality rules to improve automatic build quality. Manually review core metrics, sensitive columns, and key queries.
-
Regularly clean up expired materials and test assets to reduce search noise.
-
Follow the principle of least privilege and promptly revoke access when a user no longer needs to access the knowledge base.