satishkc7/claude-config/rag-builder
Claude Code and agent skill by satishkc7/claude-config
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when building, designing, or debugging Retrieval-Augmented Generation (RAG) pipelines. Triggers include: "build a RAG system", "set up document search", "connect my docs to an LLM", "improve retrieval quality", "chunking strategy", or any task involving embedding, indexing, and retrieval of documents for LLM use.
Install
npx vskill@latest install satishkc7/claude-config/rag-builderSKILL.md
The same SKILL.md was published earlier as satishkc7/claude-config/rag-builder.
RAG Builder Skill
Pipeline Stages
Documents → Chunking → Embedding → Indexing → [Query] → Retrieval → Reranking → Generation
Chunking Strategies
| Strategy | Best For | Chunk Size | |
|---|---|---|---|
| Fixed-size | Uniform docs | 256-512 tokens | |
| Recursive character | Mixed content (default) | 512-1024 tokens | |
| Sentence-based | Prose, articles | 1-5 sentences | |
| Document-structure | PDFs with headers | Per section |
Rule: always set overlap to 10-20% of chunk size.
Embedding Models
| Model | Provider | Notes | |
|---|---|---|---|
| text-embedding-3-large | OpenAI | Best general purpose | |
| Amazon Titan Embeddings | AWS Bedrock | Native Bedrock pairing | |
| BAAI/bge-large-en-v1.5 | HuggingFace | Best open source |
Critical: use the same embedding model at index time AND query time.
Vector Stores
| Store | Best For | |
|---|---|---|
| pgvector | Existing Postgres infra | |
| OpenSearch | AWS ecosystem (pairs with Bedrock) | |
| Pinecone | Managed production scale | |
| Chroma | Local dev / prototyping | |
| Qdrant | High performance, self-hosted |
Retrieval Patterns
- Basic: similarity_search(query, k=5)
- Hybrid (recommended): dense vector + BM25, fused with RRF
- HyDE: generate hypothetical answer, embed it, retrieve against that
- Multi-query: rewrite query 3 ways, retrieve each, deduplicate
Generation Prompt Template
You are a helpful assistant. Answer using ONLY the provided context. If context is insufficient, say "I don't have enough information." Context: {retrieved_chunks} Question: {user_query}
RAG Quality Checklist
- [ ] Overlap set on chunks
- [ ] Same embedding model for indexing and querying
- [ ] Hybrid search enabled (not vector-only)
- [ ] Reranker applied before generation
- [ ] Retrieved chunks logged for debugging
- [ ] Fallback for "no results found" case handled
- [ ] Eval metrics tracked: precision, recall, faithfulness, relevance
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/rag-builder/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. 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/satishkc7/claude-config/rag-builder)