rag architect

    by Jesus Caicedo

    2

    Architect, debug, and optimize production-grade RAG pipelines with diagnostic scripts and evaluation frameworks.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    rag architect

    Example session with this skill installed

    Our RAG system is too slow and sometimes hallucinates facts not in the docs. Audit the pipeline and suggest a reranking strategy with latency benchmarks.

    • Read your context and instructions
    • Compiled the rag architect

    I have analyzed your setup. Use scripts/latency_profile.py to isolate the bottleneck. I recommend implementing a cross-encoder reranker; see patterns/caching.py for the async implementation to offset the ~100ms latency hit while reducing hallucinations by ~25%.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Basic RAG implementations often fail in production due to low retrieval quality, high latency, or unpredictable costs. Developers struggle to move beyond simple tutorials to a system that handles hallucinations and scales efficiently.

    What it does

    • Provides a decision framework for selecting chunking strategies, embedding models, and vector databases based on scale and cost.
    • Includes runnable diagnostic scripts to audit retrieval quality, profile latency by component, and project monthly costs.
    • Deploy an evaluation harness for synthetic test generation and LLM-as-judge scoring to detect regressions in CI.
    • Implements production patterns like query rewriting (HyDE), contextual compression, and multi-tenant namespace isolation.
    • Contains debugging runbooks for fixing common issues like low recall, hallucinations, and high context costs.

    Frameworks & tools

    Python 3.10+, OpenAI/Anthropic APIs or local vLLM/Ollama, Redis, and vector databases including pgvector, Pinecone, Weaviate, Qdrant, and Chroma.

    Why this beats prompting it yourself

    General LLM prompts lack the architectural depth required for production infrastructure engineering. This skill provides a structured codebase of diagnostic scripts and evaluation gates that are faster to deploy than building a custom testing suite from scratch.

    Use cases

    • Optimize an existing RAG pipeline that is returning irrelevant context or hallucinating.
    • Calculate the cost and latency impact of switching from OpenAI to local embedding models.
    • Establish a CI/CD gate that prevents merging RAG changes if faithfulness scores drop.
    • Scale a single-user RAG system to a multi-tenant architecture with per-tenant isolation.

    Known limitations

    Requires Python 3.10 or higher. Synthetic test generation and LLM-as-judge evaluation will incur API costs during execution.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed3 months ago

    What's inside

    Creator

    Jesus Caicedo

    Jesus Caicedo

    Frequently Asked Questions

    This skill provides a comprehensive suite of diagnostic scripts, evaluation frameworks (LLM-as-judge), and architectural templates designed to fix low retrieval quality, high latency, and hallucinations in production environments.

    The skill requires Python 3.10+ and supports major vector databases like Pinecone, Weaviate, and pgvector, as well as both commercial APIs (OpenAI/Anthropic) and local setups (vLLM/Ollama).

    Yes, the skill includes specialized patterns for multi-tenant namespace isolation and cost-projection scripts to help you estimate and manage expenses as your user base grows.

    You receive a complete codebase featuring runnable diagnostic scripts, an evaluation harness for synthetic test generation, and debugging runbooks for common production failures.

    The evaluation harness uses synthetic test generation and LLM-as-judge scoring, which will incur standard token costs from your chosen API provider during the testing phase.

    Absolutely; it includes a dedicated evaluation gate designed to be integrated into your CI/CD pipeline to prevent regressions in faithfulness or retrieval scores before code is merged.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.