rag-eval

Evaluate RAG systems using retrieval, generation, and latency metrics.

33|3|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/floflo777/claude-rag-skills --skill rag-eval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-eval
Source: https://github.com/floflo777/claude-rag-skills/tree/main/rag-eval
Command: npx skills add https://github.com/floflo777/claude-rag-skills --skill rag-eval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables rigorous evaluation of RAG systems by measuring retrieval, generation, and latency metrics to ensure quality and reliability.

Core Features & Use Cases

  • Local evaluation: Run tests against your own dataset without external services to obtain recall, precision, MRR, and NDCG for retrieval; assess generation faithfulness, relevance, coherence, and conciseness.
  • Ailog benchmarking (optional): Compare your system against Ailog's production RAG API to gain a competitive baseline.
  • Latency & end-to-end profiling: Measure end-to-end performance from retrieval to generation to identify bottlenecks.

Quick Start

Run a local evaluation with a prepared test dataset, then review the metrics in the generated report. If you have an Ailog API key, enable the benchmark to compare results against Ailog.

Frequently Asked Questions about rag-eval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate RAG retrieval quality using standard metrics like recall and precision?

RAG evaluation measures retrieval quality by calculating recall, precision, MRR, and NDCG against a local test dataset of queries and gold answers. You provide the dataset, and the evaluation generates a comprehensive metrics report for your system.

What metrics are used to evaluate generation faithfulness and relevance in RAG systems?

RAG generation evaluation assesses faithfulness, relevance, coherence, and conciseness to measure output quality. It compares your system's generated answers against gold answers in your test dataset to quantify how accurately and relevantly the model responds.

How do I benchmark my RAG system against a production baseline?

You can benchmark your RAG system against a production baseline by enabling optional Ailog benchmarking with an API key. This compares your local evaluation metrics against Ailog's production RAG API to provide a competitive baseline in the final report.

Can I profile end-to-end latency from retrieval to generation in my RAG pipeline?

End-to-end latency profiling measures the full performance of your RAG pipeline from retrieval to generation. It identifies bottlenecks by tracking latency metrics alongside retrieval and generation quality scores in the comprehensive evaluation report.

Do I need an external API key to run local RAG evaluations?

No external API key is required for local RAG evaluation. You can run tests against your own dataset of queries and gold answers to obtain retrieval and generation metrics, with the Ailog API key being entirely optional for production benchmarking.

What is the best way to quantify overall RAG quality for reliability testing?

The best way to quantify RAG quality is using standardized evaluation metrics covering retrieval, generation, and latency. This approach combines local dataset testing with optional benchmarking to generate a comprehensive report ensuring system reliability.