knowledge-base
- Repo stars 24,518
- Author repo 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.
- Fluxly category
- Documentation
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 88 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @HKUDS · no license declared
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Guided setup
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Write / modify
- Shell exec
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. 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
--format json outputs machine-readable JSON instead of a Rich table.
Get info about a knowledge base
Create a knowledge base
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. Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> When to Use → Commands → List all knowledge bases → Get info about a knowledge base → Create a knowledge base → Add documents to existing KB
terms -> knowledge bases · study materials · create · search · manage · add documents
files/cmd -> exec · --format json · kb list · rag
body sha256 -> 0d105e136c43
Decide Fit First
Design Intent
How To Use It
Boundaries And Review