rag architect

    by Jesus Caicedo

    1

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

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    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.

    Your agent does

    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%.

    What you get

    Diagnose and fix low retrieval recall and hallucinations in production.Automate RAG evaluation and regression testing in CI/CD pipelines.Implement hybrid search and reranking to improve context relevance.Profile latency and project API costs for high-scale document retrieval.

    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 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

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops