iamnih4l/thoth-os/rag
Claude Code and agent skill by iamnih4l/thoth-os
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design and implement RAG pipelines that combine document retrieval with LLM generation for accurate, grounded, and up-to-date AI responses.
Install
npx vskill@latest install iamnih4l/thoth-os/ragSKILL.md
The same SKILL.md was published earlier as iamnih4l/thoth-os/rag.
RAG (Retrieval-Augmented Generation)
Purpose
Build production RAG systems that retrieve relevant documents from a knowledge base and use them as context for LLM generation, producing accurate responses grounded in source material.
When to Activate
- Building AI features that need access to private/custom data
- LLM needs up-to-date information beyond training data
- Answering questions from documentation, codebases, or knowledge bases
- Reducing hallucinations by grounding responses in source material
When NOT to Activate
- Task is within LLM's training knowledge and accuracy is sufficient
- Real-time data needed (use API calls instead)
- Simple prompt engineering suffices
Workflow
- Document Ingestion — Load, clean, and preprocess source documents
- Chunking — Split documents into retrievable chunks (500-1000 tokens)
- Embedding — Convert chunks to vector embeddings
- Indexing — Store embeddings in vector database
- Retrieval — Query vector DB for relevant chunks (top-k)
- Augmentation — Insert retrieved context into prompt
- Generation — LLM generates response using retrieved context
- Evaluation — Measure retrieval quality and generation accuracy
Checklist
- [ ] Documents preprocessed and cleaned
- [ ] Chunking strategy chosen (fixed-size, semantic, recursive)
- [ ] Chunk size optimized (not too small/large)
- [ ] Overlap between chunks configured (10-20%)
- [ ] Embedding model selected and tested
- [ ] Vector database provisioned and indexed
- [ ] Retrieval top-k tuned for recall vs precision
- [ ] Prompt template includes retrieved context properly
- [ ] Source attribution implemented
- [ ] Evaluation metrics defined and measured
Input Format
Output Format
Examples
Basic RAG Pipeline (Python)
Edge Cases
- Chunk boundary splits context: Use overlapping chunks and semantic chunking
- Irrelevant retrieval: Implement re-ranking (Cohere Rerank, cross-encoder)
- Too much context: Summarize retrieved chunks before insertion
- Stale documents: Implement incremental indexing and document versioning
- Multi-modal: Handle tables, images, and code differently from prose
References
- Vector Databases skill (
Skills/AI/vector-databases/SKILL.md) - Embeddings skill (
Skills/AI/embeddings/SKILL.md) - Context Engineering skill (
Skills/AI/context-engineering/SKILL.md)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/AI/rag/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iamnih4l/thoth-os/rag)