SkillsLib.ai

RAG Pipeline Optimization with Claude

Design and optimize RAG systems for production-grade accuracy and performance

0.0(0 reviews)
100+ downloads
Updated Nov 2026

What You Can Do

You can systematically evaluate and improve your RAG pipelines using Claude as a design partner. You'll analyze retrieval quality, identify bottlenecks in your embedding and chunking strategies, and receive actionable recommendations to reduce hallucinations and improve context relevance. By the end, you'll have a data-driven optimization plan tailored to your specific use case and performance metrics.

Features

Retrieval quality evaluation

Analyze precision, recall, and relevance scores across your document chunks

Query optimization strategies

Rewrite and decompose queries for better vector search results

Chunk size and strategy analysis

Find the optimal granularity for your domain and retrieval patterns

Embedding model recommendations

Compare embedding strategies and select models for your performance needs

Hallucination mitigation

Identify gaps between retrieved context and model outputs, with concrete fixes

Context window optimization

Design effective prompts that balance context length with accuracy

Vector similarity metrics analysis

Evaluate semantic distance calculations and similarity thresholds

Prompt engineering for RAG

Craft system prompts and instructions that minimize out-of-context outputs

Example Output

RAG Evaluation Report

  • ✅ Retrieval Quality Score: 78/100

  • Precision (correct docs returned): 82%

  • Recall (relevant docs captured): 74%

  • Mean reciprocal rank: 0.71

  • ❌ Key Issues Identified

  • Chunk size (512 tokens) too small for multi-step reasoning queries

  • Embedding model (text-embedding-3-small) loses semantic nuance for domain terminology

  • Query rewriting not active; queries like "What does the warranty cover?" map to irrelevant sections

  • 💡 Optimization Plan

  1. Increase chunk size to 1024 tokens with 200-token overlap
  2. Migrate to text-embedding-3-large with domain-specific fine-tuning
  3. Add query decomposition: break multi-part questions into sub-queries
  4. Set similarity threshold to 0.75 (currently 0.5) to reduce noise

Expected Impact: Precision +12%, Recall +8%, hallucination rate -35%

What's Included

  • SKILL.md: Full RAG optimization workflow with decision trees and evaluation frameworks
  • RAG Quality Checklist: Evaluation criteria for retrieval, ranking, and context relevance
  • Query Optimization Template: Strategies for decomposition, rewriting, and intent detection
  • Embedding Strategy Decision Tree: Select models, chunk sizes, and vector similarity thresholds
  • Performance Metrics Tracker: Template to log precision, recall, MRR, and latency across iterations
  • Hallucination Root-Cause Analyzer: Worksheet to identify when and why the model deviates from context

Who It's For

  • ML Engineers building and tuning RAG systems for production
  • Data Engineers designing document ingestion and vector storage pipelines
  • LLM Application Developers integrating retrieval into chat and search products
  • AI Product Managers optimizing RAG performance for user-facing features
  • Prompt Engineers evaluating context quality and reducing hallucinations

Best For

  • Evaluating retrieval quality and identifying bottlenecks
  • Optimizing chunk size, overlap, and embedding strategies
  • Designing multi-turn RAG workflows with query rewriting
  • Reducing hallucinations by improving context relevance
  • Benchmarking RAG performance metrics (precision, recall, MRR)

You might also like

Experiment Design for A/B Testing & Causal Inference
$35
Experiment Design for A/B Testing & Causal Inference

This skill guides you through rigorous experiment design from hypothesis to analysis plan. You'll compute the statistical power needed for your tests, identify confounding variables to control for, design optimal randomization strategies, and generate pre-registered analysis plans that prevent p-hacking and publication bias. Whether you're running a product A/B test or investigating causal effects in observational data, you get structured, validated designs that account for real-world constraints.

Planning Agent
$30
Planning Agent

This skill transforms high-level feature requests into actionable implementation plans by conducting deep requirement interviews, analyzing existing codebases (or planning greenfield projects), and producing comprehensive handoff documents. It distinguishes between brownfield development (with existing code to integrate) and greenfield projects (starting from scratch), ensuring your technical strategy accounts for your actual constraints and patterns.

ML Infrastructure Failure Analysis & Optimization
$25
ML Infrastructure Failure Analysis & Optimization

This skill helps you systematically diagnose failures in distributed ML training and serving infrastructure. You provide system logs, metrics, and error traces, and Claude performs structured root-cause analysis to identify the underlying issue—whether it's resource exhaustion, distributed system deadlock, data pipeline corruption, or model serving misconfiguration. You get a detailed diagnosis with remediation steps ranked by likelihood and implementation effort.

Systematic Prompt Evaluation & Optimization
$35
Systematic Prompt Evaluation & Optimization

Systematically evaluate your Claude prompts using quantitative scoring frameworks to identify weaknesses in clarity, task alignment, and output quality. You'll receive detailed optimization recommendations with A/B testing guidance to improve prompt effectiveness and consistency across different use cases and input variations.

HEOR Evidence Synthesis & Dossier Builder
$35
HEOR3.6(5)
HEOR Evidence Synthesis & Dossier Builder

You can rapidly compile, organize, and format disparate health economic evidence—from clinical trials to cost-effectiveness analyses—into structured, regulatory-compliant dossiers. This skill maps your evidence to specific payer and HTA requirements, automatically generates evidence hierarchies, and produces submission-ready dossier outlines with formatting that meets regulatory standards for NICE, EUnetHTA, and other major bodies.

Statistical Model Selection & Validation Framework
$25
Statistical Model Selection & Validation Framework

Claude guides you through a structured framework for evaluating statistical models, testing key assumptions, and documenting your methodology in reproducible format. You'll get clear decision criteria for choosing among candidate models, verification checklists for critical assumptions, and templates for documenting your analytical process so others can understand and replicate your results.

RAG Pipeline Diagnostics & Optimization
$40
RAG Pipeline Diagnostics & Optimization

You can systematically diagnose why your RAG system isn't returning relevant results and identify specific misalignments between queries and context. This skill walks you through analyzing retrieval quality, scoring context relevance, and optimizing prompt-retrieval alignment to improve your RAG accuracy. You'll get concrete, actionable recommendations for fixing bottlenecks in your pipeline.

Statistical Analysis Guide
$35
Statistical Analysis Guide

You can confidently navigate complex statistical analyses by working through structured workflows that match your research question and data type to the right test. The skill guides you through assumption validation, helps you interpret results accurately without common pitfalls, and walks you through regression diagnostics with full transparency about what your findings actually mean.

$40.00