A knowledge base is used to configure enterprise knowledge and word preferences. After configuration, the model learns this knowledge and uses it for data retrieval and analysis. This topic describes how to configure a knowledge base.
Currently, only the Hong Kong, China region supports this feature module. Other sites will be available soon.
Access
You can access the Knowledge Base Management interface as shown in the figure.
Add knowledge
In the upper-right corner of the Knowledge Base Management interface, click Add Knowledge.
Add Business Definition, Data Explanation, and Synonyms.
Business Definition: Used to define a common concept within the enterprise, such as sales progress or fiscal year, with a maximum of 100 characters. You can fill in commonly used terms when querying data here.
Data Explanation: Used to provide specific explanations of the business definition and associate data metrics, enabling the model to detect and understand different metrics, with a maximum of 300 characters.
Synonyms: Used to define different terms for the business within the enterprise, allowing the model to recognize different ways of asking questions.
Set the Effective Range, which supports selecting All Enterprise Data or Only Effective for Some Data. When users ask questions within the effective data range, the model will reference this knowledge during inference.
NotePlease confirm the effective range when adding knowledge because it cannot be modified after saving.
All Enterprise Data: Effective for all data query resources in the enterprise.
Only Effective for Some Data: Effective for selected data query resources, supporting search for resource names.
In other configurations, choose whether to Enable Forced Rewriting.
NoteAfter enabling forced rewriting, when user questions match Data Definition and Synonyms, they will be rewritten with the content in Data Explanation. Please enable this feature with caution.
Click Save.
If you want to continue adding, you can click Save and Continue Adding.
Batch import
Click Batch Import to enter the Batch Import Enterprise Knowledge interface.
Click Enterprise Knowledge Base Template to download the template to your local device for reference.
Click or drag files to upload.
NoteOnly .xls, .xlsx, and .csv file types are supported, with a size limit of 5 MB.
After uploading the file, click OK.
After successful upload, you can see the corresponding knowledge base.
Knowledge base management
Click the
icon to the right of the target knowledge to edit the corresponding knowledge.
NoteThe Effective Range cannot be modified.
Click the
icon to the right of the target knowledge to delete the corresponding knowledge.
Knowledge base configuration recommendations
For business definitions and synonyms:
Avoid defining overly short common words, such as "take a look," "recent," "generate," "compare," "distribution," "trend," etc.
Avoid defining commonly used definitions in the BI realm, such as "time", "maximum", "preview", "data", "column chart", etc.
For business explanations:
Avoid content mentioned in the second chapter of this document that should be avoided.
It is recommended to use clear descriptions and explicit semantics, such as the following examples:
"Business Definition: Critical Period" - "Business Explanation: March 2020 to March 2021".
"Business Definition: Business Progress" - "Business Explanation: Monthly sales amount and number of customers".
Avoid using vague time range descriptions, such as "next year," "end of month x," etc.
The knowledge base does not currently perform fuzzy detection or inference. The business definition or synonyms must be mentioned in the question for it to take effect.