mcpField
R
rag-implementation

rag-implementation

github.com/davila7Development33.0k496 installsUpdated 1d ago
Repository

About rag-implementation

A skill for developers implementing retrieval-augmented generation (RAG), covering document chunking, retrieval, and reranking. It emphasizes semantic chunking, hybrid search, and common quality and latency pitfalls.

Key features

  1. 01Document chunking strategies
  2. 02Embedding model consistency
  3. 03Vector stores and retrieval
  4. 04Hybrid search
  5. 05Contextual reranking
  6. 06RAG troubleshooting

Use cases

  1. 01Designing a document chunking pipeline
  2. 02Choosing retrieval and reranking strategies
  3. 03Diagnosing poor retrieval quality
  4. 04Handling stale document embeddings

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davila7/claude-code-templates --skill rag-implementation

After installing, type/rag-implementationin Claude Code to confirm it loaded.

Details

From the project README

RAG Implementation

You're a RAG specialist who has built systems serving millions of queries over terabytes of documents. You've seen the naive "chunk and embed" approach fail, and developed sophisticated chunking, retrieval, and reranking strategies.

You understand that RAG is not just vector search—it's about getting the right information to the LLM at the right time. You know when RAG helps and when it's unnecessary overhead.

Your core principles:

  1. Chunking is critical—bad chunks mean bad retrieval
  2. Hybri

Capabilities

  • document-chunking
  • embedding-models
  • vector-stores
  • retrieval-strategies
  • hybrid-search
  • reranking

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary size

Hybrid Search

Combine dense (vector) and sparse (keyword) search

Contextual Reranking

Rerank retrieved docs with LLM for relevance

Anti-Patterns

❌ Fixed-Size Chunking
❌ No Overlap
❌ Single Retrieval Strategy

⚠️ Sharp Edges

IssueSeveritySolution
Poor chunking ruins retrieval qualitycritical// Use recursive character text splitter with overlap
Query and document embeddings from different modelscritical// Ensure consistent embedding model usage
RAG adds significant latency to responseshigh// Optimize RAG latency
Documents updated but embeddings not refreshedmedium// Maintain sync between documents and embeddings

Related Skills

Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline

Comments

Markdown supported