Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    RAG Architecture & Debugging

    by Arnstein Larsen

    1

    Design, diagnose, and optimize high-performance RAG systems with an engineering-first framework.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    My RAG system is retrieving the right documents, but the LLM still keeps hallucinating details that aren't in the text. How do I fix this?

    Your agent does

    Your failure is at the Generation layer.

    Recommended Fixes:

    1. Tighten Prompting: Add a strict "Only answer from context" rule.
    2. Temperature: Lower to 0.0.
    3. Source Weighting: Instruct the model to cite specific chunk IDs to force grounding.

    What you get

    Diagnose why an existing RAG system is hallucinating or missing facts.Design a scalable multi-tenant vector database schema.Optimize chunking strategies for complex technical documentation.Implement hybrid search using BM25 and Reciprocal Rank Fusion.Setup an evaluation framework using Ragas to measure system accuracy.

    About this skill

    Your RAG pipeline is only as good as its weakest layer. This skill diagnoses exactly which layer is failing — chunking strategy, embedding mismatch, retrieval scoring, reranking, or prompt construction — and prescribes a fix with implementation steps. Covers hybrid search design, HyDE and query rewriting, context window management, and hallucination root-cause attribution. Whether you're building from scratch on Pinecone/Weaviate/pgvector or debugging a system already in production, give it your stack and symptoms and it returns a root-cause report with a prioritised remediation plan. Specify the system type (chatbot, search, knowledge base) and your stack — no vague advice, specific architectural decisions with tradeoffs explained.

    Changelog

    1. v1.2LatestJun 26, 2026

      Rewrote the skill body with real, expert RAG-engineering content. Every section now carries concrete method (architecture decision framework vector/hybrid/graph, failure-mode diagnostics retrieval-vs-generation, BM25+dense hybrid with RRF, structure-aware chunking + embedding choice, eval with recall@k/nDCG/faithfulness on a golden set, a knowledge/metadata schema, production readiness, integration patterns, latency/cost optimization, and monitoring/alerting) plus ready output templates. Replaced the generic placeholder sections and removed the Norwegian leak.

    2. v1.1Jun 11, 2026

      Updated skill file

    3. v1.1Jun 11, 2026

      Updated skill file

    4. v1.0Jun 11, 2026

      Initial release

    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 1 month ago

    Listed1 month ago
    Updated1 month ago

    Creator

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops