eval-rag

Evaluate RAG pipelines with retrieval and generation metrics and bottleneck analysis.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/MantisWare/BizForge --skill eval-rag-mantisware
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eval-rag
Source: https://github.com/MantisWare/BizForge/tree/main/library/skills/ai-patterns/eval-rag
Command: npx skills add https://github.com/MantisWare/BizForge --skill eval-rag-mantisware

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly quantify the quality of Retrieval-Augmented Generation pipelines by evaluating both retrieval and generation components and tracing end-to-end bottlenecks.

Core Features & Use Cases

  • Retrieval metrics: recall, precision, MRR, and NDCG to verify relevant documents are fetched.
  • Generation metrics: faithfulness, relevance, and completeness against retrieved context.
  • Bottleneck analysis: identify whether failures arise in retrieval, generation, or both to guide improvements.

Quick Start

Run the evaluation against your RAG setup by providing the pipeline config, queries, and golden answers.

Frequently Asked Questions about eval-rag

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

FAQPage Schema
How do I evaluate the quality of a Retrieval-Augmented Generation pipeline?

To evaluate a Retrieval-Augmented Generation pipeline, you need a defined pipeline configuration, a set of queries, and golden answers to measure retrieval and generation components. This computes retrieval metrics like recall and precision, alongside generation metrics like faithfulness and relevance.

What metrics are used for RAG evaluation?

RAG evaluation uses retrieval metrics including recall, precision, MRR, and NDCG to verify fetched documents. Generation metrics include faithfulness, relevance, and completeness, which are measured against the retrieved context to ensure accurate responses.

How do I identify bottlenecks in my RAG pipeline?

To identify RAG pipeline bottlenecks, run an evaluation that analyzes failures in both retrieval and generation components. This structured analysis isolates whether issues arise from fetching irrelevant documents or from generation errors, providing recommendations to guide improvements.

Can I compare different RAG configurations using aggregate metrics?

You can compare different RAG configurations by running evaluations that compute per-query and aggregate metrics. This allows you to benchmark retrieval and generation performance across setups, helping you identify the optimal pipeline configuration.

Do I need golden answers to benchmark retrieval-augmented generation?

Yes, golden answers are required to benchmark retrieval-augmented generation. Providing a set of queries with their corresponding golden answers enables the computation of generation metrics like faithfulness and completeness, ensuring accurate end-to-end evaluation.