知识库
- 作者仓库星标 24,518
- 作者仓库 DeepTutor
- 领域
- 文档
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @HKUDS · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# 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.
章节与文件索引
按说明文件中的顺序排列。
何时使用
列出所有知识库
温馨提示
文件/命令 -> exec · --format json · kb list · rag
内容校验值 -> 0d105e136c43
当前原文的自动摘译,尚未人工审校。
何时使用
用户询问他们的知识库或学习材料 用户想要创建、搜索或管理知识库 用户需要将文档添加到现有知识库
列出所有知识库
--format json输出机器可读的 JSON,而不是丰富的表。温馨提示
在搜索之前先使用
kb list查看可用的内容。rag工具还可以直接在对话中搜索知识库 - 使用它进行快速查找。从大型 PDF 创建知识库可能需要几分钟的时间。在删除知识库之前,请务必与用户确认。