openclaw-knowledgebase-fetch-alibaba-mysql
v0.1.1
Published
OpenClaw plugin: fetch relevant knowledge from Alibaba Cloud RDS MySQL vector tables and inject into agent context
Maintainers
Readme
openclaw-knowledgebase-fetch-alibaba-mysql
OpenClaw plugin for fetching relevant knowledge from Alibaba Cloud RDS MySQL vector tables and injecting into agent context (RAG).
Features
- Auto-inject: Automatically searches knowledge sources before each conversation and injects relevant context
- On-demand search: Provides
kb_searchtool for AI to actively query the knowledge base - Multi-source: Supports multiple knowledge tables with independent topK and minScore settings
- Character limit: Configurable maximum injection size to control context usage
Tools
| Tool | Description |
|------|-------------|
| kb_search | Search across configured knowledge sources |
Hooks
| Hook | Description |
|------|-------------|
| before_agent_start | Auto-injects relevant knowledge into AI context (when autoInject: true) |
Installation
openclaw plugins install openclaw-knowledgebase-fetch-alibaba-mysqlConfiguration
Add to openclaw.json under plugins.entries:
{
"openclaw-knowledgebase-fetch-alibaba-mysql": {
"enabled": true,
"config": {
"mysql": {
"host": "your-rds-host",
"port": 3306,
"user": "your-user",
"password": "your-password",
"database": "your-database"
},
"embedding": {
"apiKey": "${DASHSCOPE_API_KEY}",
"model": "text-embedding-v3",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"dimensions": 1024
},
"sources": [
{
"table": "kb_economy_news",
"label": "Economy News",
"topK": 5,
"minScore": 0.3
}
],
"autoInject": true,
"injectMaxChars": 3000
}
}
}License
MIT
