Rag architect

From ArogyaReddy/alirezarezvani-claude-skills · View interactive version

Rag architect is an AI agent skill from the GitHub repository ArogyaReddy/alirezarezvani-claude-skills. RAG Architect - POWERFUL

How to use this skill

Skill file

RAG Architect - POWERFUL

Overview

The RAG (Retrieval-Augmented Generation) Architect skill provides comprehensive tools and knowledge for designing, implementing, and optimizing production-grade RAG pipelines. This skill covers the entire RAG ecosystem from document chunking strategies to evaluation frameworks, enabling you to build scalable, efficient, and accurate retrieval systems.

Core Competencies

1. Document Processing & Chunking Strategies

Fixed-Size Chunking
Sentence-Based Chunking
Paragraph-Based Chunking
Semantic Chunking
Recursive Chunking
Document-Aware Chunking

2. Embedding Model Selection

Dimension Considerations
Speed vs Quality Tradeoffs
Model Categories

3. Vector Database Selection

Pinecone
Weaviate
Qdrant
Chroma
pgvector (PostgreSQL)

4. Retrieval Strategies

Dense Retrieval
Sparse Retrieval
Hybrid Retrieval
Reranking

5. Query Transformation Techniques

HyDE (Hypothetical Document Embeddings)
Multi-Query Generation
Step-Back Prompting

6. Context Window Optimization

Dynamic Context Assembly
Context Compression

7. Evaluation Frameworks

Faithfulness Metrics
Relevance Metrics
Context Precision & Recall
End-to-End Metrics

8. Production Patterns

Caching Strategies
Streaming Retrieval
Fallback Mechanisms

9. Cost Optimization

Embedding Cost Management
Vector Database Optimization
Query Optimization

10. Guardrails & Safety

Content Filtering
Query Safety
Response Safety

Implementation Best Practices

Development Workflow

  1. Requirements gathering: Understand use case, scale, and quality requirements
  2. Data analysis: Analyze document corpus characteristics
  3. Prototype development: Build minimal viable RAG pipeline
  4. Chunking optimization: Test different chunking strategies
  5. Retrieval tuning: Optimize retrieval parameters and thresholds
  6. Evaluation setup: Implement comprehensive evaluation metrics
  7. Production deployment: Scale-ready implementation with monitoring

Monitoring & Observability

Maintenance & Updates

Common Pitfalls & Solutions

Poor Chunking Strategy

Low Retrieval Precision

High Latency

Inconsistent Quality

Scalability Issues

Conclusion

Building effective RAG systems requires careful consideration of each component in the pipeline. The key to success is understanding the tradeoffs between different approaches and choosing the right combination of techniques for your specific use case. Start with simple approaches and gradually add sophistication based on evaluation results and production requirements.

This skill provides the foundation for making informed decisions throughout the RAG development lifecycle, from initial design to production deployment and ongoing maintenance.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.