跳到正文
cccskills
免费在 GitHub 公开

rag-architect

Design, implement, and optimize production-grade RAG pipelines covering document chunking, embedding model selection, vector databases, retrieval strategies, and evaluation frameworks.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(8)

  • SKILL.md5.5 KB
  • references/chunking_strategies_comparison.md9.9 KB
  • references/embedding_model_benchmark.md11.9 KB
  • references/rag_evaluation_framework.md14.8 KB
  • references/vector-db-operations.md3.4 KB
  • scripts/chunking_optimizer.py28.8 KB
  • scripts/rag_pipeline_designer.py27.2 KB
  • scripts/retrieval_evaluator.py23.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

RAG Architect

Comprehensive tools and knowledge for designing, implementing, and optimizing production-grade RAG (Retrieval-Augmented Generation) pipelines.

Core Competencies

1. Document Processing & Chunking Strategies

StrategyBest ForProsCons
Fixed-SizeUniform documents, consistent sizesPredictable, simpleMay break semantic units
Sentence-BasedNarrative text, articlesPreserves language boundariesVariable chunk sizes
Paragraph-BasedStructured docs, technical docsPreserves logical structureHighly variable sizes
SemanticLong-form, research papersMaintains semantic coherenceComplex, computationally expensive
RecursiveMixed content typesOptimal chunk utilizationComplex logic
Document-AwareMulti-format collectionsPreserves structure and metadataFormat-specific implementation

See references/chunking_strategies_comparison.md for detailed implementation guidance.

2. Embedding Model Selection

Model TierDimensionsSpeedUse Case
Fast128-384~14k tokens/secSimple domains, prototyping
Balanced512-768~2.8k tokens/secMost applications
Quality1024-1536API-dependentComplex domains
SpecializedVariesVariesCode, scientific, multilingual

See references/embedding_model_benchmark.md for full model comparison.

3. Vector Database Selection

DatabaseTypeBest ForKey Feature
PineconeManagedProduction, managed serviceAuto-scaling, metadata filtering
WeaviateOpen sourceComplex data typesGraphQL API, multi-modal
QdrantRust-basedHigh-performanceLow memory footprint
ChromaEmbeddedDevelopment, prototypingSQLite-based, easy setup
pgvectorSQL extensionExisting PostgreSQL infraACID compliance, joins

See references/vector-db-operations.md for operating it in production: HNSW/IVFFlat tuning, filtered queries in pgvector, measuring recall, changing the embedding model, deletes and backups.

4. Retrieval Strategies

  • Dense Retrieval: Semantic similarity via embedding cosine similarity. Good for paraphrasing.
  • Sparse Retrieval: Keyword-based (TF-IDF, BM25). Good for exact matches.
  • Hybrid Retrieval: Dense + sparse with Reciprocal Rank Fusion (RRF).
  • Reranking: Two-stage approach with cross-encoders for higher precision.

5. Query Transformation Techniques

  • HyDE: Generate hypothetical answer, embed that instead of query
  • Multi-Query: Generate 3-5 query variations, retrieve for each, merge results
  • Step-Back Prompting: Generate broader version of specific query for general context

6. Context Window Optimization

  • Dynamic Assembly: Most relevant chunks first, diversity optimization, token budget management
  • Context Compression: Summarize less relevant chunks, extract key facts, selective inclusion

7. Evaluation Frameworks

See references/rag_evaluation_framework.md for comprehensive evaluation details.

MetricTargetDescription
Faithfulness>90%Answer grounded in retrieved context
Context Relevance>0.8Retrieved chunks relevant to query
Answer Relevance>0.85Answer addresses original question
Precision@KVaries% of top-K results that are relevant
NDCG@KVariesNormalized Discounted Cumulative Gain

8. Production Patterns

  • Caching: Query-level, semantic, chunk-level, multi-level (Redis hot, disk warm)
  • Streaming: Progressive loading, incremental generation, real-time updates
  • Fallbacks: Graceful degradation, cache fallbacks, alternative sources

9. Cost Optimization

  • Embeddings: Batch processing, caching, model selection, update only changed docs
  • Vector DB: Index optimization, quantization, tiered storage, auto-scaling
  • Queries: Routing, result caching, batch querying, metadata filtering

10. Guardrails & Safety

  • Content: Toxicity detection, PII handling, content validation, source verification
  • Query: Injection prevention, rate limiting, input validation, access controls
  • Response: Hallucination detection, confidence scoring, source attribution, uncertainty handling

Implementation Best Practices

  1. Requirements gathering: understand use case, scale, quality requirements
  2. Data analysis: analyze document corpus characteristics
  3. Prototype: build minimal viable RAG pipeline
  4. Chunking optimization: test different strategies
  5. Retrieval tuning: optimize parameters and thresholds
  6. Evaluation setup: implement comprehensive metrics
  7. Production deployment: scale-ready with monitoring

Monitoring & Maintenance

  • Query analytics: Track patterns and performance
  • Retrieval metrics: Monitor precision, recall, latency
  • Generation quality: Track faithfulness and relevance
  • System health: Database performance and availability
  • Cost tracking: Embedding and vector database costs
  • Document refresh: Handle new documents and updates
  • Index maintenance: Regular optimization
  • Model updates: Evaluate and migrate to improved models

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

查看 SebastianLuser 的全部技能

报告此技能的问题