Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

RAG Implementer

БесплатноБез исполняемых скриптовНе проверен

Implement retrieval-augmented generation systems. Use when building knowledge-intensive applications, document search, Q&A systems, or need to ground LLM…

daffy0208от daffy0208★ 39 звёзд на GitHub16 установок в других каталогах

Об этом скилле

RAG Implementer

Build production-ready retrieval-augmented generation systems.

Core Principle

RAG = Retrieval + Context Assembly + Generation

Use RAG when you need LLMs to access fresh, domain-specific, or proprietary knowledge that wasn't in their training data.


⚠️ Prerequisites & Cost Reality Check

STOP: Have You Validated the Need for RAG?

Before implementing RAG, confirm:

  • Problem validated - Completed product-strategist Phase 1 (problem discovery)
  • Users need AI search - Tested with simpler alternatives (see below)
  • ROI justified - Calculated cost vs benefit of RAG vs alternatives

Try These FIRST (Before RAG)

RAG is powerful but expensive. Try cheaper alternatives first:

1. FAQ Page / Documentation (1 day, $0)

  • Create well-organized FAQ or docs
  • Add search with Cmd+F
  • Works for: <50 common questions, static content
  • Test: Do users find answers? If yes, stop here.

2. Simple Keyword Search (2-3 days, $0-20/month)

  • Use Algolia, Typesense, or PostgreSQL full-text search
  • Good enough for 80% of use cases
  • Works for: <100k documents, keyword matching sufficient
  • Test: Do users get relevant results? If yes, stop here.

3. Manual Curation (Concierge MVP) (1 week, $0)

  • Manually answer user questions
  • Build FAQ from common questions
  • Works for: <100 users, validating if users want AI
  • Test: Do users value your answers enough to pay? If yes, consider RAG.

4. Simple Semantic Search (1 week, $30-50/month)

  • Use OpenAI embeddings + Postgres pgvector
  • Skip complex retrieval, re-ranking, etc.
  • Works for: <50k documents, basic semantic search
  • Test: Are embeddings better than keyword search? If no, stop here.

Cost Reality Check

Naive RAG (Prototype):

  • Time: 1-2 weeks
  • Cost: $50-150/month (vector DB + embeddings + API calls)
  • When: Prototype, <10k documents, proof of concept

Advanced RAG (Production):

  • Time: 3-4 weeks
  • Cost: $200-500/month (hybrid search, re-ranking, monitoring)
  • When: Production, 10k-1M documents, validated demand

Modular RAG (Enterprise):

  • Time: 6-8 weeks
  • Cost: $500-2000+/month (multiple KBs, specialized modules)
  • When: Enterprise, 1M+ documents, mission-critical

Decision Tree: Do You Really Need RAG?

Do users need to search your content?
│
├─ No → Don't build RAG ❌
│
└─ Yes
   ├─ <50 items? → FAQ page ✅ ($0)
   │
   └─ >50 items?
      ├─ Keyword search enough? → Use Algolia ✅ ($0-20/mo)
      │
      └─ Need semantic understanding?
         ├─ <50k docs? → Simple semantic (pgvector) ✅ ($30/mo)
         │
         └─ >50k docs?
            ├─ Validated with users? → Build RAG ✅
            └─ Not validated? → Test with Concierge MVP first ⚠️

Validation Checklist

Only proceed with RAG implementation if:

  • Tested simpler alternatives (FAQ, keyword search, manual curation)
  • Users confirmed they need AI-powered search (not just you think they do)
  • Calculated ROI: cost of RAG < value users get
  • Have >50k documents OR complex semantic search requirements
  • Budget: $200-500/month for infrastructure
  • Time: 3-4 weeks for production implementation

If any checkbox is unchecked: Go back to product-strategist or mvp-builder skills to validate first.

See also: PLAYBOOKS/validation-first-development.md for step-by-step validation process.


8-Phase RAG Implementation

Phase 1: Knowledge Base Design

Goal: Create well-structured knowledge foundation

Actions:

  • Map data sources (internal: docs, databases, APIs / external: web, feeds)
  • Filter noise, select authoritative content (prevent "data dump fallacy")
  • Define chunking strategy: semantic chunking based on structure
  • Add metadata: tags, timestamps, source identifiers, categories

Validation:

  • All data sources catalogued and prioritized
  • Data quality assessed (accuracy, completeness, freshness)
  • Chunking strategy tested with sample documents
  • Metadata schema validated for search effectiveness

Common Chunking Strategies:

  • Fixed-size: 500-1000 tokens, 50-100 token overlap
  • Semantic: By paragraph, section headers, or topic boundaries
  • Recursive: Split by structure (markdown headers, code blocks)

Phase 2: Embedding Strategy

Goal: Choose optimal embedding approach for semantic understanding

Actions:

  • Select embedding model: text-embedding-3-large (1536 dim) for general, domain-specific for specialized
  • Plan multi-modal needs (text, code, images, tables)
  • Decide on fine-tuning: use domain data if general embeddings underperform
  • Establish similarity benchmarks

Validation:

  • Embedding model benchmarked on domain data
  • Retrieval accuracy tested with known query-document pairs
  • Storage and compute costs validated

Model Selection:

  • General: OpenAI text-embedding-3-large, text-embedding-3-small
Полный SKILL.md на GitHub

Установить RAG Implementer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdmanifest.yaml

FAQ

Что делает скилл RAG Implementer?

Implement retrieval-augmented generation systems. Use when building knowledge-intensive applications, document search, Q&A systems, or need to ground LLM responses in external data. Covers embedding strategy, vector stores, retrieval pipelines, and evaluation.

Как установить скилл RAG Implementer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл RAG Implementer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить RAG Implementer с