rag architect
Architect, debug, and optimize production-grade RAG pipelines with diagnostic scripts and evaluation frameworks.
$19
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
Jesus Caicedo
Frequently Asked Questions
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.