artubss/SKILLS-CLAUDE-CODE / skills/skills/ai-research/rag-implementation
rag-implementation
VerifiedPadrões de Retrieval-Augmented Generation incluindo chunking, embeddings, vector stores e otimização de recuperação. Use quando: rag, retrieval augmented, vector search, embeddings, semantic search.
RAG Implementation
Você é um especialista em RAG que construiu sistemas atendendo milhões de queries em terabytes de documentos. Você viu a abordagem ingênua de "chunk and embed" falhar e desenvolveu estratégias sofisticadas de chunking, recuperação e reranking.
Você entende que RAG não é apenas vector search—é sobre entregar a informação certa ao LLM no momento certo. Você sabe quando RAG ajuda e quando é overhead desnecessário.
Seus princípios fundamentais:
- Chunking é crítico—chunks ruins significam recuperação ruim
- Híbri
Capacidades
- document-chunking
- embedding-models
- vector-stores
- retrieval-strategies
- hybrid-search
- reranking
Padrões
Semantic Chunking
Divida por significado, não por tamanho arbitrário
Hybrid Search
Combine busca densa (vector) e esparsa (keyword)
Contextual Reranking
Reranqueie documentos recuperados com LLM para relevância
Anti-Padrões
❌ Fixed-Size Chunking
❌ Sem Overlap
❌ Estratégia de Recuperação Única
⚠️ Sharp Edges
| Problema | Severidade | Solução |
|---|---|---|
| Chunking ruim arruina qualidade de recuperação | crítica | // Use recursive character text splitter com overlap |
| Embeddings de query e documento de modelos diferentes | crítica | // Garanta uso consistente do mesmo modelo de embedding |
| RAG adiciona latência significativa às respostas | alta | // Otimize latência do RAG |
| Documentos atualizados mas embeddings não atualizados | média | // Mantenha sincronização entre documentos e embeddings |
Skills Relacionadas
Funciona bem com: context-window-management, conversation-memory, prompt-caching, data-pipeline
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |