Command Palette

Search for a command to run...

Back to skills
skill № 84650

build-optimize-debug-rag-pipelines

Build, optimize, and debug RAG pipelines with chunking strategies, retrieval tuning, evaluation metrics, and production monitoring.

FreeNo executable scripts
rondoflowby rondoflow★ 37 GitHub stars

Install build-optimize-debug-rag-pipelines in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

When to Use

User wants to implement, improve, or troubleshoot Retrieval-Augmented Generation systems.

Quick Reference

Topic File
Pipeline components & architecture architecture.md
Implementation patterns & code implementation.md
Evaluation metrics & debugging evaluation.md
Security & compliance security.md

Core Capabilities

  1. Architecture design — Select embedding models, vector DBs, and chunking strategies based on requirements
  2. Implementation — Write ingestion pipelines, query handlers, and update logic
  3. Retrieval optimization — Tune top-k, reranking, hybrid search parameters
  4. Evaluation — Build test datasets, measure recall/precision, diagnose failures
  5. Production ops — Monitor quality drift, set up alerts, debug degradation
  6. Security — PII detection, access control, compliance requirements

Decision Checklist

Before recommending architecture, ask:

  • What document types and volume?
  • Latency requirements (real-time chat vs batch)?
  • Update frequency (how often do docs change)?
  • Access control needs (who can see what)?
  • Compliance constraints (GDPR, HIPAA, SOC2)?
  • Budget (managed vs self-hosted, embedding costs)?

Critical Rules

  • Never skip access control — Filter at retrieval time, not after
  • Always overlap chunks — 10-20% prevents context loss at boundaries
  • Evaluate before optimizing — Build eval dataset first, then tune
  • Same embedding model — Query and documents must use identical model
  • Monitor similarity scores — Dropping averages signal drift or issues
  • Plan for deletion — GDPR erasure requires re-embedding capability

Common Failure Patterns

Symptom Likely Cause Fix
Wrong docs retrieved Query too vague, poor chunks Query expansion, smaller chunks
Relevant doc missed Not indexed, low similarity Check ingestion, hybrid search
Hallucinated answers Context too short Increase top-k, better reranking
Slow responses Large chunks, no caching Optimize chunk size, cache embeddings
Inconsistent results Non-deterministic reranking Set seeds, use stable sorting

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • manifest.json

FAQ

What does the build-optimize-debug-rag-pipelines skill do?

Build, optimize, and debug RAG pipelines with chunking strategies, retrieval tuning, evaluation metrics, and production monitoring.

How do I install the build-optimize-debug-rag-pipelines skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the build-optimize-debug-rag-pipelines skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare build-optimize-debug-rag-pipelines with