Skip to content

Design a RAG pipeline by analyzing the corpus, choosing chunking and embeddings, and measuring retrieval quality.

CCM score
71 of 100
skills.sh installs
662
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers corpus analysis, chunking strategy selection, pipeline design, and retrieval evaluation with precision@k, recall@k, MRR, and NDCG
  • Includes 3 scripts (chunking_optimizer.py, rag_pipeline_designer.py, retrieval_evaluator.py) that chain into JSON outputs for each stage
  • Requires an evaluation run before any design is delivered, and flags model names and vendor prices for verification against live sources
  • Designed for teams building search over their own documents who need to choose a vector store, embedding tier, or chunk size

Install

$ npx -y skills add alirezarezvani/claude-skills --skill rag-architect -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

RAG Architect

Design, tune, and evaluate production RAG pipelines with three deterministic tools. Run the tools against the actual corpus and requirements — do not pick chunk sizes or databases by intuition.

Hard rules

  1. Never present model names or vendor prices as current facts. Embedding models and vector-DB pricing rot in months. Recommend a tier (see table below), name a current-generation candidate, and tell the user to verify against the provider's live pricing page.
  2. Every design ends with an evaluation run. A RAG design without retrieval_evaluator.py numbers is a hypothesis, not a deliverable.
  3. Chunking is corpus-driven. Run chunking_optimizer.py on the real documents before choosing a strategy.

Embedding model tiers (pattern, not price list)

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the rag-architect skill do?

The rag-architect skill designs RAG pipelines, choosing chunk sizes, embedding models and vector databases, and evaluates retrieval quality with precision@k, recall@k and NDCG. It runs deterministic tools against your actual corpus rather than guessing settings by intuition. Every design ends with an evaluation run.

How do I install the rag-architect skill?

Run npx -y skills add alirezarezvani/claude-skills --skill rag-architect -y in your project. After installing, the agent can design a RAG system for your docs, recommend a chunking strategy, and evaluate a retriever against ground truth.

What inputs does rag-architect need to work?

It works from your real documents, which it analyzes with chunking_optimizer.py, and a requirements JSON covering document types, query volume, latency, budget and accuracy priorities. For evaluation you supply queries and a ground truth file mapping queries to relevant document IDs. Model and vendor prices are treated as estimates to verify against live provider pricing.

When should I use rag-architect instead of llm-cost-optimizer?

Use rag-architect when you are building retrieval over documents, picking a vector store or embedding model, or finding that answers miss the right context. For general LLM cost tuning, the listing points to llm-cost-optimizer instead.

More from alirezarezvani/claude-skills

All 259

Similar to Rag Architect

More AI Agents & LLM Apps