Skip to content

artubss/SKILLS-CLAUDE-CODE / skills/skills/ai-research/rag-implementation

rag-implementation

Verified

Padrõ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:

  1. Chunking é crítico—chunks ruins significam recuperação ruim
  2. 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

ProblemaSeveridadeSolução
Chunking ruim arruina qualidade de recuperaçãocrítica// Use recursive character text splitter com overlap
Embeddings de query e documento de modelos diferentescrítica// Garanta uso consistente do mesmo modelo de embedding
RAG adiciona latência significativa às respostasalta// Otimize latência do RAG
Documentos atualizados mas embeddings não atualizadosmédia// Mantenha sincronização entre documentos e embeddings

Skills Relacionadas

Funciona bem com: context-window-management, conversation-memory, prompt-caching, data-pipeline

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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall