rag-implementation

Featured

Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.

AI & Automation 33,961 stars 4034 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
79
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 | Issue | Severity | Solution | |-------|----------|----------| | Poor chunking ruins retrieval quality | critical | // Use recursive character text splitter with overlap | | Query and document embeddings from different models | critical | // Ensure consistent embedding model usage | | RAG adds significant latency to responses | high | // Optimize RAG latency | | Documents updated but embeddings not refreshed | medium | // Maintain sync between documents and embeddings | ## Related Skills Works well with: `contex...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

rag-architect

Designs and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, applying reranking, and evaluating retrieval quality. Use when building RAG systems, vector databases, or knowledge-grounded AI applications requiring semantic search, document retrieval, context augmentation, similarity search, or embedding-based indexing.

12,439 Updated 2 days ago
Jeffallan
AI & Automation Listed

rag-pipeline

End-to-end architectural and engineering guidance for designing, building, and evaluating production Retrieval-Augmented Generation (RAG) pipelines. Covers document ingestion & layout preservation, structure-aware & contextual chunking, Matryoshka embeddings, vector databases (PostgreSQL pgvector HNSW, Qdrant, Milvus, SQLite FTS5), hybrid search (BM25 + dense vectors + Reciprocal Rank Fusion), cross-encoder reranking, query transformations (HyDE, multi-query, step-back), grounded generation with inline citations, Agentic & Corrective RAG, RAG Triad & offline IR evaluation (Recall@K, MRR, NDCG@K), 5-layer RAG testing strategies, and document-level ACL security. Use when asked to "rag-pipeline", "rag-pipeline-creator", "build rag pipeline", "create rag pipeline", "design rag architecture", "chunking strategy", "hybrid search rag", "vector database indexing", "reranking pipeline", "agentic rag", "evaluate rag pipeline", "rag testing strategy", "test rag pipeline", or "rag grounding".

1 Updated today
nainishshafi
AI & Automation Featured

rag-implementation

RAG (Retrieval-Augmented Generation) implementation workflow covering embedding selection, vector database setup, chunking strategies, and retrieval optimization.

49,938 Updated today
sickn33