rag architect
Architect, debug, and optimize production-grade RAG pipelines with diagnostic scripts and evaluation frameworks.
$19
Works with the AI tools 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.
What you get
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
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
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
- Passed all security checks, Safe to install