Build and use DeepTutor knowledge bases for RAG: configure an embedding model, create a KB from documents or a folder, add documents, search it, evaluate retrieval quality with a QA set, and use it in chat and capabilities like deep_solve and deep_research. Use when a user wants DeepTutor to answer from their own materials.
Capabilities
Search and evaluate
Use in chat and capabilities
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.0
DeepTutor knowledge bases
References: SKILL.md (Knowledge Bases), docs-for-dev/AGENT_SETUP.md
(embedding setup), docs-for-dev/KNOWLEDGE_MIGRATION.md,
docs-for-dev/INDEXING_RECOVERY.md.
Prerequisites
The knowledge and parsing modules must be ready (deeptutor module list)
and an embedding model configured:
{
"embedding": {
"provider": "openai",
"model": "text-embedding-3-small",
"api_key_env": "DEEPTUTOR_SETUP_EMBEDDING_KEY",
"dimension": 1536
}
}
deeptutor config apply embedding.json --check && deeptutor config apply embedding.json
Embedding base_url, when needed, is the full endpoint (e.g.
https://api.openai.com/v1/embeddings). doctor --online only probes the
LLM, so test embedding by ingesting and searching a small, user-approved
document. Changing an existing KB's embedding model or dimension means a
rebuild; plan it with the user.
Build and maintain
deeptutor kb create physics --doc ch1.pdf --doc ch2.pdf
deeptutor kb create papers --docs-dir ./papers
deeptutor kb add physics --doc ch3.pdf
deeptutor kb list --format json
deeptutor kb info physics
deeptutor kb set-default physics
deeptutor kb delete physics --force # irreversible; confirm first
Search and evaluate
deeptutor kb search physics "Newton's third law" --mode hybrid --format json
deeptutor kb eval physics --dataset qa.jsonl --top-k 5 --mode hybrid --save report.json
qa.jsonl lines look like {"query": "...", "gold": ["..."]}; the report
gives Recall@k, Precision@k, nDCG@k, MRR, MAP and Hit@k per case and
averaged. Use it before and after changing chunking or embedding models.
Use in chat and capabilities
deeptutor run chat "Explain Newton's third law" --kb physics
deeptutor chat --kb physics --tool web_search
deeptutor run deep_solve "Solve x^2 = 4" --kb textbook
deeptutor run deep_research "Attention mechanisms" --kb papers --config mode=report --config depth=standard
deeptutor run deep_question "Thermodynamics" --kb physics --config num_questions=5
--kb is repeatable. In the REPL, /kb <name> sets the KB and /kb none
clears it.
Explore more skills
Browse all- xlsxRead, create, or edit Excel spreadsheets (.xlsx/.xlsm) — sheet data, formulas, styles, charts, multi-sheet workbooks —…
- Senior FrontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle…
- UI Design SystemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens…
- Founder ConsumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target…
- Frontend DesignGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with…
- Senior BackendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load…
Security
Reviews (0)
More from DeepTutor
View source →Frequently asked questions about deeptutor-knowledge-bases
What does the deeptutor-knowledge-bases skill do?
Build and use DeepTutor knowledge bases for RAG: configure an embedding model, create a KB from documents or a folder, add documents, search it, evaluate retrieval quality with a QA set, and use it in chat and capabilities like deep_solve and deep_research. Use when a user wants DeepTutor to answer from their own materials. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the deeptutor-knowledge-bases skill?
Run `npx @skills-hub-ai/cli install deeptutor-knowledge-bases` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/deeptutor-knowledge-bases/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does deeptutor-knowledge-bases work with?
deeptutor-knowledge-bases runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the deeptutor-knowledge-bases skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use deeptutor-knowledge-bases after installing it?
In Claude Code, type `/deeptutor-knowledge-bases` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the deeptutor-knowledge-bases skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/deeptutor-knowledge-bases)<a href="https://skills-hub.ai/skills/deeptutor-knowledge-bases"><img src="https://skills-hub.ai/api/badges/skill/deeptutor-knowledge-bases" alt="Install on Skills Hub"></a>More options in the badge docs.