agentleFS
Goodnight77Goodnight77/rag-skills/SKILL.md

rag-skills

Skill8 starsChanged 7 months agoMITView on GitHub

Use this skill when building, debugging, or improving Retrieval-Augmented Generation systems, including chunking, vector database selection, hybrid search, reranking, multimodal RAG, code documentation RAG, retrieval latency, and production RAG architecture.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use it when a user asks for help designing, implementing, improving, evaluating, or operating a Retrieval-Augmented Generation pipeline.

    line 9
  2. Distinctive:

    Follow the guide's decision criteria, implementation notes, references, and success metrics.

    line 17
  3. Distinctive:

    Prefer lightweight examples in this repo, then use the linked external implementations for production code patterns.

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RAG Skills

This skill routes RAG implementation work to the right guide in this repository. Use it when a user asks for help designing, implementing, improving, evaluating, or operating a Retrieval-Augmented Generation pipeline.

How to Use This Skill

  1. Identify the main RAG problem: chunking, vector storage, retrieval quality, data type handling, latency, evaluation, agents, or deployment.
  2. Open the most relevant guide under skills/.
  3. Follow the guide's decision criteria, implementation notes, references, and success metrics.
  4. Prefer lightweight examples in this repo, then use the linked external implementations for production code patterns.

Skill Routes

Chunking

  • skills/chunking/semantic-chunking/SKILL.md: Chunk by semantic boundaries instead of fixed token windows.
  • skills/chunking/hierarchical-chunking/SKILL.md: Preserve document hierarchy across sections, headings, and nested structures.
  • skills/chunking/sliding-window-chunking/SKILL.md: Add overlap to preserve context near chunk boundaries.
  • skills/chunking/contextual-chunk-headers/SKILL.md: Add inherited section context to chunks.
  • skills/chunking/choosing-a-chunking-framework/SKILL.md: Select chunking libraries and frameworks.

Vector Databases

  • skills/vector-databases/qdrant-setup-rag/SKILL.md: Set up Qdrant for RAG with metadata and filtering.
  • skills/vector-databases/qdrant-for-production-rag/SKILL.md: Operate Qdrant in production RAG systems.
  • skills/vector-databases/choosing-vector-db-by-datatype/SKILL.md: Choose a vector database for text, code, multimodal, and structured data.

Retrieval Strategies

  • skills/retrieval-strategies/hybrid-search-bm25-dense/SKILL.md: Combine keyword and dense vector retrieval.
  • skills/retrieval-strategies/multi-pass-retrieval-with-reranking/SKILL.md: Retrieve broadly, then rerank with a stronger model.
  • skills/retrieval-strategies/query-transformation-strategies/SKILL.md: Rewrite, decompose, or expand queries before retrieval.
  • skills/retrieval-strategies/hyde-hypothetical-document-embeddings/SKILL.md: Use hypothetical answer documents to improve query embeddings.
  • skills/retrieval-strategies/hype-hypothetical-prompt-embeddings/SKILL.md: Index likely prompts or questions alongside source content.
  • skills/retrieval-strategies/self-rag/SKILL.md: Add self-reflection and retrieval validation to generation workflows.
  • skills/retrieval-strategies/raptor-hierarchical-retrieval/SKILL.md: Retrieve over hierarchical summaries and source chunks.
  • skills/retrieval-strategies/context-enrichment-window/SKILL.md: Expand retrieved chunks with neighboring context.
  • skills/retrieval-strategies/adaptive-retrieval/SKILL.md: Choose retrieval strategy dynamically based on query type.
  • skills/retrieval-strategies/explainable-retrieval/SKILL.md: Improve traceability with source attribution and citations.
  • skills/retrieval-strategies/crag-corrective-rag/SKILL.md: Correct weak retrieval with validation and fallback search.
  • skills/retrieval-strategies/graph-rag/SKILL.md: Use graph structure and entity relationships for retrieval.

Data Type Handling

  • skills/data-type-handling/rag-for-code-documentation/SKILL.md: Handle code, APIs, examples, and technical documentation.
  • skills/data-type-handling/rag-for-multimodal-content/SKILL.md: Handle images, tables, diagrams, and mixed media.

Performance Optimization

  • skills/performance-optimization/optimize-retrieval-latency/SKILL.md: Reduce retrieval latency with indexing, caching, and query optimization.

Evaluation Metrics

  • skills/evaluation-metrics/retrieval-evaluation-metrics/SKILL.md: Measure retrieval with recall, precision, MRR, nDCG, and context precision and recall.
  • skills/evaluation-metrics/generation-evaluation-metrics/SKILL.md: Score answers for faithfulness, answer relevancy, and correctness with LLM-as-judge.
  • skills/evaluation-metrics/rag-evaluation-frameworks/SKILL.md: Choose an evaluation framework and wire it into a CI regression gate.

RAG Agents

  • skills/rag-agents/agentic-rag-routing/SKILL.md: Route each query to the right retrieval strategy, source, or tool.
  • skills/rag-agents/multi-agent-rag-orchestration/SKILL.md: Coordinate planner and specialist agents to decompose and synthesize complex answers.

Deployment

  • skills/deployment/production-rag-deployment/SKILL.md: Serve, scale, and roll out a RAG pipeline safely.
  • skills/deployment/index-versioning-and-reindexing/SKILL.md: Version the index and reindex or migrate embeddings without downtime.

Success Criteria

  • The selected RAG pattern matches the user's actual bottleneck.
  • Retrieval quality improves without adding unnecessary architecture.
  • The implementation keeps metadata, evaluation, and production constraints in view from the start.
  • External references are used for real implementation details instead of copying large code blocks into this skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.