home / skills / openclaw / skills / knowledge
This skill helps you search and switch between local knowledge base and AnythingLLM, enabling fast document retrieval and offline access.
npx playbooks add skill openclaw/skills --skill knowledgeReview the files below or copy the command above to add this skill to your agents.
---
name: knowledge
description: 本地知识库集成 - 文档检索、投喂、双轨模式切换
---
# 本地知识库
## 使用方法
| 命令 | 说明 |
|------|------|
| "查一下 xxx" | 搜索知识库 |
| "切换到本地知识库" | 使用本地检索 |
| "切换到 AnythingLLM" | 使用对话模式 |
| "知识库统计" | 查看文档数量 |
## 文件位置
- 知识库根目录:`E:/knowledge-base`
- API服务:`http://127.0.0.1:8001`
This skill integrates a local knowledge base for document retrieval, ingestion, and a dual-mode switch between retrieval and conversational modes. It provides simple commands to search the archive, feed new documents, and view corpus statistics. The skill runs against a local folder and exposes a local API endpoint for retrieval operations.
The skill indexes files stored in a configurable local directory and serves retrieval results via a local HTTP API. It supports feeding new documents into the index (ingestion) and a dual-mode operation: a retrieval mode for precise document search and a conversational mode for free-form dialogue. Commands toggle modes, query the index, and return document counts or search results.
Where are documents stored?
Documents are stored in a configurable local folder; update the knowledge root path to point to your archive.
How do I switch modes?
Use the provided toggle commands to switch between retrieval (local knowledge base) and conversational (AnythingLLM) modes.
Is the API exposed remotely?
By default the service listens on localhost. Restrict or secure the endpoint if you expose it beyond the machine.