rag-architect

GEO / AI search

jeffallan/claude-skillsskills.sh ↗

Installs

3,959

deduplicated, at the last sync

Since we started

+1.3%

29 readings, about 2 hours apart. Not a live curve.

Our category

GEO / AI search

ours

Last read

Sep 3, 2026

from the directory

Our brief

ours

The rag-architect skill guides users through designing production‑grade Retrieval‑Augmented Generation systems. It covers requirements analysis, vector store selection, document chunking, embedding model choice, hybrid search pipelines, reranking, and evaluation metrics. The skill provides reference tables and code snippets to help implement each step.

What it produces
  • system architecture diagram
  • vector database selection analysis
  • chunking strategy recommendation
  • retrieval pipeline design
  • evaluation plan with metrics
What it needs
  • document collection
  • embedding model choice
  • vector database choice
  • API keys for external services
  • evaluation dataset
Paid services

required

Evidence shows the skill requires API keys (e.g., COHERE_API_KEY) and uses paid providers such as OpenAI, Cohere, and Voyage AI.

Registration

not detected

The evidence does not mention any registration requirement for using the skill itself.

Limits and human review

The skill only produces design guidance and example code; it does not execute a full RAG pipeline or host services. It cannot guarantee retrieval performance or LLM answer quality, and it relies on external APIs that must be provisioned separately.

Evidencestatic findingsskills/rag-architect/references/chunking-strategies.md:1-112skills/rag-architect/references/embedding-models.md:1-84skills/rag-architect/references/rag-evaluation.md:1-82+3
static findingsstatic_finding
[{"code":"env_var","match":"COHERE_API_KEY","path":"SKILL.md"},{"code":"api_key_mention","match":"api_key","path":"references/embedding-models.md"},{"code":"api_key_mention","match":"api-key","path":"references/embedding-models.md"},{"code":"oauth","match":"OAuth2","path":"references/rag-evaluation.md"},{"code":"oauth","match":"OAuth","path":"references/rag-evaluation.md"},{"code":"install_cmd","match":"pip install ragas","path":"references/rag-evaluation.md"},{"code":"install_cmd","match":"pip install trulens-eval","path":"references/rag-evaluation.md"},{"code":"api_key_mention","match":"api_key","path":"references/retrieval-optimization.md"},{"code":"api_key_mention","match":"api-key","path":"references/retrieval-optimization.md"},{"code":"oauth","match":"OAuth2","path":"references/retrieval-optimization.md"},{"code":"api_key_mention","match":"api_key","path":"references/vector-databases.md"},{"code":"api_key_mention","match":"api-key","path":"references/vector-databases.md"},{"code":"payment","match":"Pricing","path":"references/vector-databases.md"}]
skills/rag-architect/references/chunking-strategies.md1–112 · excerpt truncated
# Chunking Strategies

---

## Strategy Comparison Matrix

| Strategy | Best For | Chunk Quality | Implementation Complexity |
|----------|----------|---------------|---------------------------|
| **Fixed-size** | Simple documents, logs | Low-Medium | Simple |
| **Recursive character** | General text, articles | Medium | Simple |
| **Sentence-based** | Conversational, Q&A | Medium-High | Medium |
| **Semantic** | Technical docs, manuals | High | Medium |
| **Document-aware** | Structured content (MD, HTML) | High | Medium |
| **Agentic/Contextual** | Complex documents | Very High | Complex |
| **Late chunking** | Long-context embeddings | High | Medium |

---

## When to Use Each Strategy

### Fixed-Size Chunking
```
Best For:
- Log files and structured data
- Quick prototyping
- When content has no natural structure
- Baseline comparison

When to Avoid:
- Technical documentation
- Content with semantic units (paragraphs, sections)
- When context preservation matters
```

### Recursive Character Splitting
```
Best For:
- General articles and blog posts
- Mixed content types
- Default starting point for most RAG
- LangChain/LlamaIndex default

When to Avoid:
- Highly structured docu
skills/rag-architect/references/embedding-models.md1–84 · excerpt truncated
# Embedding Models

---

## Model Comparison Matrix

| Model | Dimensions | Max Tokens | Strengths | Provider |
|-------|------------|------------|-----------|----------|
| **text-embedding-3-large** | 3072 (or 256-3072) | 8191 | Best quality, flexible dims | OpenAI |
| **text-embedding-3-small** | 1536 (or 256-1536) | 8191 | Cost-effective, good quality | OpenAI |
| **embed-english-v3.0** | 1024 | 512 | Excellent compression, fast | Cohere |
| **embed-multilingual-v3.0** | 1024 | 512 | 100+ languages | Cohere |
| **voyage-large-2** | 1536 | 16000 | Long context, code-aware | Voyage AI |
| **voyage-code-2** | 1536 | 16000 | Code retrieval specialist | Voyage AI |
| **BGE-large-en-v1.5** | 1024 | 512 | Open source, high quality | BAAI |
| **BGE-M3** | 1024 | 8192 | Multi-lingual, multi-granularity | BAAI |
| **E5-large-v2** | 1024 | 512 | Strong benchmark performance | Microsoft |
| **GTE-large** | 1024 | 512 | Good general-purpose | Alibaba |
| **all-MiniLM-L6-v2** | 384 | 256 | Fast, lightweight | Sentence Transformers |
| **nomic-embed-text-v1.5** | 768 | 8192 | Long context, open weights | Nomic AI |

---

## When to Use Each Model

### OpenAI text-embedding-3-large
```
Best For
skills/rag-architect/references/rag-evaluation.md1–82 · excerpt truncated
# RAG Evaluation

---

## Evaluation Framework Overview

| Framework | Focus | Strengths | Use Case |
|-----------|-------|-----------|----------|
| **RAGAS** | RAG-specific metrics | Faithfulness, relevance | Production RAG evaluation |
| **TruLens** | LLM app observability | Tracing, feedback functions | Debugging and monitoring |
| **LangSmith** | LangChain ecosystem | Traces, datasets, testing | LangChain projects |
| **Custom** | Specific requirements | Full control | Domain-specific needs |

---

## Core Metrics

### Retrieval Metrics

| Metric | Formula | What It Measures |
|--------|---------|------------------|
| **Precision@k** | Relevant in top-k / k | Are retrieved docs relevant? |
| **Recall@k** | Relevant in top-k / Total relevant | Did we get all relevant docs? |
| **MRR** | 1 / Rank of first relevant | How quickly do we find relevant? |
| **NDCG@k** | DCG@k / IDCG@k | Is ranking order correct? |
| **Hit Rate** | Queries with relevant in top-k / Total queries | Binary success rate |

### Generation Metrics

| Metric | What It Measures |
|--------|------------------|
| **Faithfulness** | Is answer grounded in retrieved context? |
| **Answer Relevance** | Does answer a
skills/rag-architect/references/retrieval-optimization.md1–89 · excerpt truncated
# Retrieval Optimization

---

## Optimization Techniques Overview

| Technique | Impact | Complexity | When to Use |
|-----------|--------|------------|-------------|
| **Hybrid Search** | High | Medium | Always for production |
| **Reranking** | High | Low | Top-k refinement |
| **Query Expansion** | Medium | Medium | Ambiguous queries |
| **HyDE** | Medium-High | Medium | Concept-heavy retrieval |
| **Metadata Filtering** | High | Low | Multi-tenant, categorical |
| **Query Decomposition** | Medium | High | Complex questions |
| **Contextual Compression** | Medium | Medium | Long retrieved chunks |

---

## Hybrid Search (Vector + Keyword)

### Reciprocal Rank Fusion (RRF)

```python
from dataclasses import dataclass
from typing import Callable

@dataclass
class SearchResult:
    id: str
    text: str
    score: float
    source: str  # "vector" or "keyword"

def reciprocal_rank_fusion(
    vector_results: list[SearchResult],
    keyword_results: list[SearchResult],
    k: int = 60,
    vector_weight: float = 0.5
) -> list[SearchResult]:
    """
    Combine vector and keyword results using RRF.
    k is a constant that reduces the impact of high rankings (typically 60).
    """
skills/rag-architect/references/vector-databases.md1–96 · excerpt truncated
# Vector Databases

---

## Database Comparison Matrix

| Feature | Pinecone | Weaviate | Qdrant | Chroma | pgvector |
|---------|----------|----------|--------|--------|----------|
| **Hosting** | Managed only | Managed + Self-hosted | Managed + Self-hosted | Self-hosted (cloud beta) | Self-hosted |
| **Hybrid Search** | Yes (sparse-dense) | Yes (BM25 + vector) | Yes (sparse vectors) | Limited | Manual (+ pg_trgm) |
| **Filtering** | Excellent | Excellent | Excellent | Basic | SQL-native |
| **Max Dimensions** | 20,000 | Unlimited | 65,535 | Unlimited | 2,000 |
| **Pricing Model** | Per-vector/query | Per-node | Per-node | Free (OSS) | Free (extension) |
| **Multi-tenancy** | Namespaces | Multi-tenant class | Collections + payloads | Collections | Schema/RLS |
| **Best For** | Enterprise SaaS | Semantic apps | High-performance | Prototyping | Postgres shops |

## When to Use Each

### Pinecone
```
Best For:
- Enterprise RAG with strict SLAs
- Teams wanting zero infrastructure management
- Applications needing sparse-dense hybrid search
- High-volume production with predictable costs

When to Avoid:
- Cost-sensitive projects (expensive at scale)
- Need for self-hosting or data resi
skills/rag-architect/SKILL.md1–201
---
name: rag-architect
description: Designs and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, applying reranking, and evaluating retrieval quality. Use when building RAG systems, vector databases, or knowledge-grounded AI applications requiring semantic search, document retrieval, context augmentation, similarity search, or embedding-based indexing.
license: MIT
metadata:
  author: https://github.com/Jeffallan
  version: "1.1.0"
  domain: data-ml
  triggers: RAG, retrieval-augmented generation, vector search, embeddings, semantic search, vector database, document retrieval, knowledge base, context retrieval, similarity search
  role: architect
  scope: system-design
  output-format: architecture
  related-skills: python-pro, database-optimizer, monitoring-expert, api-designer
---

# RAG Architect

## Core Workflow

1. **Requirements Analysis** — Identify retrieval needs, latency constraints, accuracy requirements, and scale
2. **Vector Store Design** — Select database, schema design, indexing strategy, sharding approach
3. **Chunking Strategy** — Document splitting, overlap, semant

Read 7 of 7 text files in the skill.

Checked September 2026 · GPTWritten from the skill's published files. Check the source before relying on access or cost details.

Installfrom the directory

npx skills add https://github.com/jeffallan/claude-skills

Installing happens there, not here. We are an index with an opinion, not a mirror.

What is inside itfrom the directory

references/chunking-strategies.md
references/embedding-models.md
references/rag-evaluation.md
references/retrieval-optimization.md
references/vector-databases.md
SKILL.md

6 files — names only. The directory does not report sizes.

What the auditors foundfrom the directory

A skill is instructions your agent will follow and scripts it may run, so who checked it matters as much as how many people installed it.

Gen Agent Trust HubThe 'rag-architect' skill is a professional reference guide for building Retrieval-Augmented Generation (RAG) systems. It provides high-quality code templates and architectural patterns for document processing, embedding generation, and vector database management. No malicious code, obfuscation, or security vulnerabilities were detected.Apr 29, 2026 · SAFEpass
SocketNo alertsApr 29, 2026pass
SnykRisk: LOW · No issuesApr 29, 2026 · LOWpass
Runlayer6/6 files flaggedMar 11, 2026 · MEDIUMwarn
ZeroLeaksScore: 93/100 · 2 sections analyzedApr 15, 2026 · NONEpass

Installs, reading by readingours

3.9k
4k
Aug 30, 202629 readings over 5 days, drawn as the last reading of each day.Sep 3, 2026

Axis starts at 3.9k, not zero — the range is 3.9k to 4k.

Filed alongside itours