# RAG Pipeline Production Auditor

> Scan your RAG codebase and eval set, then get a scorecard and ranked fixes for chunking, retrieval, grounding, guardrails and cost.

RAG Pipeline Production Auditor is a free AI agent skill on Agensi by Shrey Kumar Soni, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Shrey Kumar Soni](https://www.agensi.io/creators/shrey-kumar-soni)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/rag-pipeline-production-auditor
- Tags: llm-ops, database, rag, retrieval-augmented-generation, llm, embeddings, vector-search, reranking

## About this skill

A pre-launch review for retrieval-augmented generation apps, based on your actual code rather than a generic questionnaire.

- **Maps your pipeline.** loader → splitter → embeddings → store → retriever → reranker → prompt → LLM → citations and guardrails, with file paths.
- **Runs a read-only scanner** (Python stdlib, no model calls). It finds evidence across 17 areas with file:line: chunking, chunk metadata, embedding pinning and versioning, hybrid search, metadata filters, reranking, relevance thresholds, grounding prompt, citations, evals, prompt-injection and PII guardrails, access control, cost controls, tracing, timeouts.
- **Flags risky settings.** Very large or zero-overlap chunks, k over 20 without a reranker, high temperature, user input and context concatenated into one f-string, and hard-coded API keys (reported redacted, never echoed).
- **Checks your eval set** (JSONL/CSV): size, reference answers, expected source ids, unanswerable questions and duplicates.
- **Scores 8 areas 0–2** with a 37-item checklist, and gives an ordered fix plan where every fix is paired with the metric that proves it (recall@k, MRR, faithfulness, refusal rate, cost per request).

Built by an engineer who ships production RAG, including a solo-built consumer AI app.

**What it won't do:** call your models or vector DB, send documents anywhere, or edit code. It also won't claim accuracy gains. You measure them on your eval set.

## Requires

- Python 3

## Known limitations

Won't call your models or vector DB, send documents anywhere, or edit code. It also won't claim accuracy gains; you measure them on your eval set. It doesn't run evals. "No evidence" doesn't necessarily mean missing (logic may live in another service); the agent confirms by reading the code.

## 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 Pipeline Production Auditor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Which frameworks?

It's framework-agnostic. Patterns cover common LangChain, LlamaIndex and raw SDK code; other stacks rely more on the checklist.

### Does "no evidence" mean it's missing?

Not necessarily. The logic may live in another service, and the agent confirms by reading the code.

### Does it run evals?

No. It checks your eval set's quality and tells you which metrics to track.

### Will it show my secrets?

No. Keys are reported by file and line only.

### How is it different from other RAG skills here?

It's code-first. A deterministic scanner gives file:line evidence and checks the eval set, and every fix comes with a metric.

---

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.
