rag-architect
Installation
SKILL.md
RAG Architect
The agent designs, implements and tunes retrieval-augmented generation pipelines from chunking through evaluation, and makes every choice (chunking, embedding model, vector store, retrieval mode, reranking) answer to a measured retrieval score on the user's own queries.
Core Capabilities
- Chunking strategy selection: fixed-size, sentence, paragraph, semantic, recursive or document-aware chunking, sized to the corpus.
- Embedding and vector-store choice: local vs API models and Pinecone, Weaviate, Qdrant, Chroma or pgvector by scale, latency, cost and data residency.
- Retrieval design: dense, sparse (BM25) or hybrid retrieval with Reciprocal Rank Fusion, plus cross-encoder reranking when precision matters most.
- Query transformations: HyDE, multi-query and step-back for style mismatch and ambiguous queries.
- Guardrails and evaluation: source attribution, groundedness checks, injection defences; IR metrics (Precision@K, Recall@K, MRR, NDCG) and RAGAS-style generation metrics.
When to Use
- Building a RAG system end to end, or replacing one component.
- Selecting a chunking strategy, embedding model or vector database.
- Diagnosing poor answers: deciding whether retrieval or generation is at fault.
- Setting up a retrieval regression test before changing the pipeline.