# rag-eval

> Diagnose RAG bottlenecks with precision metrics (Recall, MRR, nDCG) to identify retrieval or ranking failures.

rag-eval is a paid AI agent skill on Agensi by Ifásola, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Ifásola](https://www.agensi.io/creators/if-sola)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-06-22
- Security: scan passed (2026-06-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/rag-eval
- Tags: ai-agents, rag, llm-ops, evaluation, python, search-relevance

## About this skill

### Diagnostic Tools for RAG Performance

Pinpointing why a Retrieval-Augmented Generation (RAG) system is failing can be a guessing game. Is the embedding model weak? Is the chunking strategy off? Or is the LLM simply hallucinating despite having the right context? This skill eliminates the guesswork by providing a standardized evaluation framework for your retrieval pipeline.

### Data-Driven Insights

By comparing your retriever's output against a labeled ground-truth set, this tool calculates industry-standard metrics including Recall@k, Precision@k, Hit-Rate, Mean Reciprocal Rank (MRR), and Normalized Discounted Cumulative Gain (nDCG). It goes beyond raw numbers to provide a technical verdict on where your bottleneck lies.

### What it helps you solve

- **Low Recall:** Identifies when your embeddings, chunking strategy, or indexing are failing to surface relevant documents.

- **Ranking Issues:** Detects when relevant documents are being retrieved but ranked too low for the LLM's context window.

- **Generation Bottlenecks:** Confirms when retrieval is healthy, indicating that your issues stem from the prompt or the LLM's reasoning capabilities.

This developer-centric tool requires zero heavy dependencies, running on the Python standard library for easy integration into CI/CD pipelines or local development workflows.

## Known limitations

- Requires pre-labeled ground-truth data.
- Does not evaluate LLM generation quality.
- Limited to exact ID matching.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the rag-eval skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does rag-eval help me improve my RAG system?

This skill provides a comprehensive diagnostic framework to measure the effectiveness of your RAG pipeline using industry-standard metrics like Recall, MRR, and nDCG, allowing you to pinpoint whether failures occur in retrieval, ranking, or generation.

### Which AI agents or frameworks is this skill compatible with?

The skill is designed as a lightweight Python-based tool with zero heavy dependencies, making it compatible with any AI agent framework or custom LLM-ops pipeline that supports Python execution.

### What kind of data do I need to provide for the evaluation to work?

To use rag-eval, you simply need to provide a dataset containing your retriever's outputs alongside a labeled ground-truth set; the tool then processes these to generate a technical performance verdict.

### What is included in the purchase of this skill?

You will receive the full core evaluation logic, documentation for metric interpretation, and example scripts to help you integrate the evaluation suite into your local development or CI/CD environment.

### Can I integrate this skill into my CI/CD pipeline for automated testing?

Yes, because it is built on the Python standard library, it is highly portable and can be easily integrated into automated testing workflows to monitor for performance regressions during model or indexing updates.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
