Knowledge 代码创建
- 作者仓库星标 24,518
- 作者仓库 DeepTutor
Knowledge Base Management
Use the exec tool to manage DeepTutor knowledge bases via CLI.
When to Use
- User asks about their knowledge bases or study materials
- User wants to create, search, or manage a knowledge base
- User needs to add documents to an existing KB
Commands
List all knowledge bases
deeptutor kb list --format json
--format jsonoutputs machine-readable JSON instead of a Rich table.
Get info about a knowledge base
deeptutor kb info <kb_name>
Create a knowledge base
deeptutor kb create <kb_name> --doc /path/to/file.pdf
deeptutor kb create <kb_name> --docs-dir /path/to/directory/
Add documents to existing KB
deeptutor kb add <kb_name> --doc /path/to/new_file.pdf
Search a knowledge base
deeptutor kb search <kb_name> "<query>" --format json
Set a default knowledge base
deeptutor kb set-default <kb_name>
Delete a knowledge base
deeptutor kb delete <kb_name> --force
Tips
- Use
kb listfirst to see what's available before searching. - The
ragtool can also search KBs directly within the conversation — use it for quick lookups. - KB creation from large PDFs can take a few minutes.
- Always confirm with the user before deleting a knowledge base.
- 流狐分类
- 文档
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @HKUDS · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 When to Use
User asks about their knowledge bases or study materials User wants to create, search, or manage a knowledge base User needs to add documents to an existing KB
Commands
Commands
List all knowledge bases
--format json outputs machine-readable JSON instead of a Rich table.
Get info about a knowledge base
Get info about a knowledge base
Create a knowledge base
Create a knowledge base
Add documents to existing KB
Add documents to existing KB
# Knowledge Base Management
Use the `exec` tool to manage DeepTutor knowledge bases via CLI.
## When to Use
- User asks about their **knowledge bases** or **study materials**
- User wants to **create**, **search**, or **manage** a knowledge base
- User needs to **add documents** to an existing KB
## Commands
### List all knowledge bases
```bash
deeptutor kb list --format json
```
> `--format json` outputs machine-readable JSON instead of a Rich table.
### Get info about a knowledge base
```bash
deeptutor kb info <kb_name>
```
### Create a knowledge base
```bash
deeptutor kb create <kb_name> --doc /path/to/file.pdf
deeptutor kb create <kb_name> --docs-dir /path/to/directory/
```
### Add documents to existing KB
```bash
deeptutor kb add <kb_name> --doc /path/to/new_file.pdf
```
### Search a knowledge base
```bash
deeptutor kb search <kb_name> "<query>" --format json
```
### Set a default knowledge base
```bash
deeptutor kb set-default <kb_name>
```
### Delete a knowledge base
```bash
deeptutor kb delete <kb_name> --force
```
## Tips
- Use `kb list` first to see what's available before searching.
- The `rag` tool can also search KBs directly within the conversation — use it for quick lookups.
- KB creation from large PDFs can take a few minutes.
- Always confirm with the user before deleting a knowledge base. 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to Use → Commands → List all knowledge bases → Get info about a knowledge base → Create a knowledge base → Add documents to existing KB
要点 -> knowledge bases · study materials · create · search · manage · add documents
文件/命令 -> exec · --format json · kb list · rag
内容 SHA-256 -> 0d105e136c43
原文结构
适用与边界
原文中的明确线索
exec、--format json、kb list、rag