# RAG Debug Triage: Find Why Your Bot Missed the Answer

> A fixed 6-step triage for broken RAG answers: print what was retrieved, probe with a known phrase, check chunk boundaries, name the failure, apply one fix, and re-measure. Stops you rewriting prompts or buying a bigger model when the real problem is chunking or indexing.

RAG Debug Triage: Find Why Your Bot Missed the Answer is a paid AI agent skill on Agensi by Vijay Kumar, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Vijay Kumar](https://www.agensi.io/creators/vijay-kumar-1)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/rag-debug-triage-find-why-your-bot-missed-the-answer
- Tags: llm-ops, testing, database, rag, retrieval, debugging, chunking, embeddings

## What it does

- Prints the retrieved chunks first and checks whether the answer text is in them at all
- Runs a known-answer probe to separate "never indexed" from "badly ranked"
- Detects answers split across neighbouring chunks and chunks stripped of their context
- Names one failure type from a six-row table and suggests the single first fix to try
- Makes you re-measure each fix on a golden set so changes are proven, not assumed
- Tests abstention honestly with missing, misleading and unanswerable cases, plus controls

## Who it's for

- **Product managers running a help center chatbot:** Find out exactly why your chatbot is giving wrong answers before you pay for more expensive models. Try: "My support bot says it cannot find our return policy even though the document is uploaded. Help me debug this."
- **AI engineers and developers building search tools:** Stop guessing which part of your search system is broken with a technical triage that checks every layer. Try: "Debug why my RAG system is hallucinating about the latest API pricing."
- **Business owners using custom AI tools:** Fix your AI tools when they start missing facts or making mistakes without breaking the things that work. Try: "I have a RAG system for my shop but it keeps getting shipping dates wrong. Triage this failure."

## About this skill

When a RAG chatbot gives a wrong or "I couldn't find it" answer, the usual reaction is to rewrite the prompt or try a bigger model. Most of the time the right text never reached the model. Those fixes cost days and change nothing.

**RAG Debug Triage** gives your agent a strict order of operations. First, print what was retrieved and ask one question: is the answer text in there? Second, take a phrase copied word for word from the source and search for it: if it is found in the index but your question does not retrieve it, you have a ranking or vocabulary problem; if it is nowhere, it was never indexed. Third, look at chunk boundaries: is the answer cut in half between two chunks, or does the chunk lack the product name or date that gives it meaning?

Then it names the failure from a table (true miss, rank miss, chunk-boundary miss, context-stripped chunk, synthesis failure, misleading context), tells you what not to try first, and proposes one fix. You apply it, re-run your golden set and keep the change only if the numbers improve without hurting other questions.

A helper script automates the first four steps from a JSON export of your retrieval results. The skill also includes a guide to testing "answer or abstain" gates honestly, because many look great on lazy tests and fail on misleading context.

**You end up with** a named root cause, one targeted fix, and before and after numbers.

## Known limitations

Works best on plain text. Scanned PDFs or complex tables might need manual checking if the text doesn't match the saved chunks perfectly.

## Technical details

Files: `SKILL.md`, `README.md`, `scripts/triage_probe.py` (about 7 KB, standard library only, reads one JSON file, prints a report), `references/fixes.md`, `references/abstention-tests.md`, `examples/` (three cases: boundary miss, rank miss, not indexed). Permissions to expect in the scan: file read only, no network.

## 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 Debug Triage: Find Why Your Bot Missed the Answer 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

### What specific problems does this skill help me fix with my AI search?

This skill helps you find out why your document search AI gives wrong or missing answers. It uses a six step technical checklist to see if the information was never saved correctly, if the search failed to rank it, or if the answer was split between two different pages.

### What information do I need to provide to start a triage?

You need to give your AI agent the question that failed, the incorrect answer it gave, and the document that contains the right information. You also need to provide the search results, including the text chunks and their scores, so the skill can analyze what went wrong.

### What kind of report or output will I get from my AI agent?

The skill provides a clear report identifying the exact failure, such as a chunk boundary miss or a rank miss. It then recommends one specific fix to try and gives you a way to measure the results to see if the problem was actually solved.

### Are there any types of files that this skill might struggle to analyze?

It works best with plain text documents. If your documents are scanned images or have complex tables where the text is hard to extract, your AI agent might need you to look at those parts manually to help with the triage.

### How do I tell my AI agent to begin using this skill?

You can start by telling your AI agent that your search is giving wrong answers or that it cannot find a specific fact. Mention that you want to run the six step retrieval triage to find the breakdown before changing any prompts.

---

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.
