Preparation
Before starting the configuration, ensure you have the following information ready:- External Knowledge Base API Endpoint: This is the URL address XpertAI uses to access your knowledge base, typically provided by your knowledge base service provider.
- Authentication Key (if required): If your knowledge base requires an API Key, AK/SK, or other forms of authentication, obtain it in advance.
- Knowledge Base Identifier (ID or Name): If your external knowledge base system manages multiple bases, you need to specify the ID or name of the specific knowledge base to connect.
Currently supported knowledge base providers include: RAGFlow, Dify, and FastGPT.
Configuration Steps
Below are the detailed steps to connect an external knowledge base on the XpertAI platform.Step 1: Access the System Integration Page
- Log in to the XpertAI Settings module.
- In the left navigation bar, locate and click “Integrations.”
- On the “Integrations” page, select the provider type related to the knowledge base.
- Enter the base address and authorization information, then click Create.
Step 2: Add an External Knowledge Base Connection
Navigate to the “Knowledge Base” page in the workspace: Click to connect an external knowledge base, fill in the basic information, and select a knowledge base integration connection.Step 3: Advanced Settings (Optional)
The XpertAI platform provides advanced retrieval parameter configurations to optimize recall performance:- Top K: Sets the number of the most relevant text segments returned per retrieval. Increasing this value may return more relevant information but could also introduce more irrelevant data. The default is typically 3–5.
- Score Threshold: Sets the relevance score threshold; only text segments with scores above this value will be returned. Increasing this value can make results more precise but may reduce the number of results. The default is typically 0.5.
Step 4: Save and Test the Connection
- After filling in all necessary information, click the “Connect” button.
- If the configuration is correct, the system will display a connection success message.
- It is strongly recommended to use the “Test Recall” function. Enter a test question or keyword to verify whether XpertAI can correctly retrieve relevant text segments from your external knowledge base.