Tablestore RAG Knowledge Base
Overview
Integrate Alibaba Cloud Tablestore RAG service as a Dify external knowledge base. With this plugin, you can directly use Tablestore's enterprise-grade RAG capabilities in Dify applications, including vector search, full-text search, hybrid search, reranking, and more.
Prerequisites
- An Alibaba Cloud account with Tablestore service enabled
- A Tablestore instance with a RAG knowledge base created
- Tablestore Endpoint URL (e.g., )
- Tablestore instance name
- Alibaba Cloud Access Key ID and Access Key Secret
- Knowledge base name from the OTS RAG platform ()
Configure Endpoint
After installing the plugin, configure the following parameters:
Add External Knowledge Base API in Dify
- After configuring the endpoint, the plugin will generate an endpoint URL in the format:
- Go to Dify Knowledge Base > External Knowledge Base API > Add External Knowledge Base API
- Fill in the following:
- Name: A custom name of your choice
- API Endpoint: Use the generated URL, but make two modifications:
- Remove the trailing (Dify will automatically append this path)
- If you deployed Dify locally with Docker, replace with
- API Key: Enter the endpoint protection key configured above (enter any value if not set)
Note:
- You MUST remove the trailing from the URL. Dify will automatically append this path when making requests.
- If Dify is deployed locally via Docker, you MUST replace in the URL with , as the Docker container cannot access the host network through .
- If you did not set an Endpoint Protection Key, you can enter any value for the API Key. Keep the endpoint URL confidential to prevent unauthorized access.
Create and Use Knowledge Base
- Create a new knowledge base > Select Connect External Knowledge Base
- Select the external knowledge base API you just added
- For External Knowledge Base ID, enter the knowledge base name from the OTS RAG platform ()
Parameter Description
- : Passed to the OTS RAG backend, controls the number of retrieval results returned
- : Filtered on the plugin side, results below this score will be discarded
- Retrieval strategy (vector search / full-text search / hybrid search, reranking, etc.) is determined by the OTS RAG platform configuration, not controlled by this plugin