Agent skill · research science · yonatangross
rag-retrieval
Retrieval-Augmented Generation patterns for grounded LLM responses. Use when building RAG pipelines, embedding documents, implementing hybrid search, contextual retrieval, HyDE, agentic RAG, multimodal RAG, query decomposition, reranking, or pgvector search.
Why this skill is useful
Adds comprehensive patterns and rules for building production RAG systems, including executable configurations and optimization strategies not found in public documentation.
What it needs
About 9k tokens when loaded. Last updated 2026-08-06. 215 stars on the source repository.
What this skill does
RAG Retrieval Comprehensive patterns for building production RAG systems. Each category has individual rule files in rules/ loaded on-demand. House thresholds, fusion ordering, and the latency and quality budgets we assert live in House delta below. Vendor documentation is linked, not restated (see Upstream coverage). Quick Reference Category Rules Impact When to Use ---------- ------- -------- ------------- Core RAG 4 CRITICAL Basic RAG, citations, hybrid search, context management Embeddings 3 HIGH Model selection, chunking, batch/cache optimization Contextual Retrieval 3 HIGH Context-prepending, hybrid BM25+vector, pipeline HyDE 3 HIGH Vocabulary mismatch, hypothetical document generation Agentic RAG 4 HIGH Self-RAG, CRAG, knowledge graphs, adaptive routing Multimodal RAG 3 MEDIUM Image+text retrieval, PDF chunking, cross-modal search Query Decomposition 3 MEDIUM Multi-concept queries, parallel retrieval, RRF fusion Reranking 3 MEDIUM Cross-encoder, LLM scoring, combined signals PGVector 4 HIGH PostgreSQL hybrid search, HNSW indexes, schema design Total: 30 rules across 9 categories Core RAG Fundamental patterns for retrieval, generation, and pipeline composition. Rule File Key Pattern ------ ------ ------------- Basic RAG rules/core-basic-rag.md Retrieve + context + generate with citations Hybrid Search rules/core-hybrid-search.md RRF fusion (k=60) for semantic + keyword Context Management rules/core-context-management.md Token budgeting + sufficiency check Pipeline Composition rules/core-pipeline-composition.md Composable Decompose → HyDE → Retrieve → Rerank Embeddings Embedding models, chunking strategies, and production optimization. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills yonatangross/rag-retrieval