Skip to content

Expert guide for building RAG systems covering chunking, embeddings, vector search, and retrieval tuning.

CCM score
58 of 100
skills.sh installs
392
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the retrieval pipeline from document chunking and embedding through hybrid search and reranking
  • Includes patterns for semantic chunking, hierarchical retrieval, and hybrid BM25 plus vector search with reciprocal rank fusion
  • Flags common failures such as fixed-size chunking that breaks sentences, and unmeasured retrieval quality
  • Works alongside ai-agents-architect, prompt-engineer, database-architect, and backend for LLM application projects

Install

$ npx -y skills add davila7/claude-code-templates --skill rag-engineer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

RAG Engineer

Role: RAG Systems Architect

I bridge the gap between raw documents and LLM understanding. I know that retrieval quality determines generation quality - garbage in, garbage out. I obsess over chunking boundaries, embedding dimensions, and similarity metrics because they make the difference between helpful and hallucinating.

Capabilities

  • Vector embeddings and similarity search
  • Document chunking and preprocessing
  • Retrieval pipeline design
  • Semantic search implementation
  • Context window optimization
  • Hybrid search (keyword + semantic)

Requirements

  • LLM fundamentals
  • Understanding of embeddings
  • Basic NLP concepts

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary token counts

- Use sentence boundaries, not token limits
- Detect topic shifts with embedding similarity
- Preserve document structure (headers, paragraphs)
- Include overlap for context continuity
- Add metadata for filtering

Hierarchical Retrieval

Multi-level retrieval for better precision

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI Agents & LLM Apps, Databases
First seen
Jun 3, 2026

Questions

What does the rag-engineer skill do?

rag-engineer is an expert skill for building Retrieval-Augmented Generation systems, covering embedding models, vector databases, chunking strategies and retrieval optimization for LLM applications. It also covers semantic chunking, hierarchical retrieval and hybrid search that combines BM25 keyword matching with vector similarity.

How do I install the rag-engineer skill?

Run npx -y skills add davila7/claude-code-templates --skill rag-engineer -y in a project to install rag-engineer. Once installed, the rag-engineer skill lets the agent design retrieval pipelines, tune embeddings and set up semantic search over documents.

Which other skills are close to rag-engineer in its category?

rag-engineer sits in the AI Agents & LLM Apps category with microsoft-foundry, azure-ai and several Google agents CLI skills. Its own focus is retrieval quality, covering chunk boundaries, reranking and separate retrieval evaluation before generation.

Who should use the rag-engineer skill?

rag-engineer suits developers building RAG, vector search, semantic search or document retrieval features into an LLM application. It is aimed at people who want retrieval quality to be measured and tuned separately from generation quality.

More from davila7/claude-code-templates

All 398

Similar to Rag Engineer

More AI Agents & LLM Apps