Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    RAG Hallucination Root-Cause Analyzer

    by heyhridyansh

    1

    Diagnose RAG hallucinations, retrieval failures, and citation errors with a structured root-cause audit.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Analyze this RAG trace: User asked for 2024 pricing, but the answer cited 2022 docs despite the 2024 PDF being in the corpus. Here are the retrieval logs and my chunking config.

    Your agent does

    Root Cause: Freshness & Metadata Filtering. The retriever found the 2024 doc, but the Reranker (Top-3) prioritized the 2022 doc due to higher keyword density. Remediation: Implement a recency-weighted reranking score and add a 'is_superseded' metadata flag to the indexing pipeline.

    What you get

    Identify the stage where evidence is lost in the retrieval-generation loop.Audit chunking and indexing strategies for semantic coherence.Detect and remediate citation fabrication or unsupported synthesis.Assess RAG safety and grounding before production deployment.

    About this skill

    The problem

    RAG pipelines often produce fluent but factually incorrect or poorly cited answers, making them risky for production. Developers frequently struggle to pinpoint whether the failure lies in the chunking strategy, vector retrieval, reranking logic, or the prompt itself.

    What it does

    • Identifies the exact failure stage across the 21-point RAG lifecycle, from corpus quality to citation binding.
    • Performs a design-level audit of chunking configurations, metadata schemas, and retrieval logs to find hidden bottlenecks.
    • Diagnoses specific grounding issues like lost-in-the-middle context, stale index skew, and citation fabrication.
    • Produces a 100-point grounding score and a severity-ranked remediation plan for engineering teams.

    Frameworks & tools

    Compatible with any RAG stack including Pinecone, Weaviate, Milvus, LangChain, LlamaIndex, and various embedding models.

    Why this beats prompting it yourself

    General LLMs often overlook subtle retrieval-stage failures like metadata over-filtering or embedding dimension mismatches. This skill enforces a structured 23-step diagnostic workflow that separates symptoms from root causes, ensuring no stage of the pipeline is ignored.

    Use cases

    • Pre-release safety audits to determine if a RAG workflow is ready for production.
    • Debugging specific user reports of hallucinations or missing citations in search results.
    • Optimizing chunk size and overlap configurations based on evidence-span requirements.
    • Establishing an evaluation matrix for multi-hop questions or complex document sets.

    Known limitations

    This skill does not query live production systems, execute retrieval scripts, or modify vector indexes directly. It relies on provided logs, configurations, and document samples for analysis.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    heyhridyansh
    heyhridyansh

    14 skills on Agensi

    I create practical, AI-ready skills for Cursor, Claude Code, Codex CLI, Replit, and other agents that support the SKILL.md format. My skills focus on specific business and workflow problems, including ecommerce creative audits, design quality checks, prompt and skill validation, content systems, and process automation. Each skill is built with clear inputs, structured outputs, defined permissions, safeguards, and real-world usability.

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops