rag-engineer
Is an expert in building Retrieval-Augmented Generation (RAG) systems. It masters embedding models, vector databases, and optimization for LLM applications.
What it does
This expert helps AI find the right information within documents. It organizes and searches data so the AI can give accurate answers, preventing it from making things up.
When to use it
- ✓When you have many documents and want the AI to find specific information.
- ✓When the AI needs to answer questions based on a set of texts.
- ✓When you want to ensure the AI's answers are fact-based and not guesswork.
Example of what to ask your AI
“Find the information about the refund policy in the customer manual.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It organizes your documents into smaller pieces and uses a type of 'map' (embeddings) to find the most relevant pieces when you ask a question. Then, it gives these pieces to the AI to answer.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill rag-engineerOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/rag-engineer/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
RAG Engineer
Expert in building Retrieval-Augmented Generation systems. Masters embedding models, vector databases, chunking strategies, and retrieval optimization for LLM applications.
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.
Expertise
- Embedding model selection and fine-tuning
- Vector database architecture and scaling
- Chunking strategies for different content types
- Retrieval quality optimization
- Hybrid search implementation
- Re-ranking and filtering strategies
- Context window management
- Evaluation metrics for retrieval
Principles
- Retrieval quality > Generation quality - fix retrieval first
- Chunk size depends on content type and query patterns
- Embeddings are not magic - they have blind spots
- Always evaluate retrieval separately from generation
- Hybrid search beats pure semantic in most cases
Capabilities
- Vector embeddings and similarity search
- Document chunking and preprocessing
- Retrieval pipeline design
- Semantic search implementation
- Context window optimization
- Hybrid search (keyword + semantic)
Prerequisites
- Required skills: LLM fundamentals, Understanding of embeddings, Basic NLP concepts
Patterns
Semantic Chunking
Chunk by meaning, not arbitrary token counts
When to use: Processing documents with natural sections
- 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
When to use: Large document collections with varied granularity
- Index at multiple chunk sizes (paragraph, section, document)
- First pass: coarse retrieval for candidates
- Second pass: fine-grained retrieval for precision
- Use parent-child relationships for context
Hybrid Search
Combine semantic and keyword search
When to use: Queries may be keyword-heavy or semantic
- BM25/TF-IDF for keyword matching
- Vector similarity for semantic matching
- Reciprocal Rank Fusion for combining scores
- Weight tuning based on query type
Query Expansion
Expand queries to improve recall
When to use: User queries are short or ambiguous
- Use LLM to generate query variations
- Add synonyms and related terms
- Hypothetical Document Embedding (HyDE)
- Multi-query retrieval with deduplication
Contextual Compression
Compress retrieved context to fit window
When to use: Retrieved chunks exceed context limits
- Extract relevant sentences only
- Use LLM to summarize chunks
- Remove redundant information
- Prioritize by relevance score
Metadata Filtering
Pre-filter by metadata before semantic search
When to use: Documents have structured metadata
- Filter by date, source, category first
- Reduce search space before vector similarity
- Combine metadata filters with semantic scores
- Index metadata for fast filtering
Sharp Edges
Fixed-size chunking breaks sentences and context
Severity: HIGH
Situation: Using fixed token/character limits for chunking
Symptoms:
- Retrieved chunks feel incomplete or cut off
- Answer quality varies wildly
- High recall but low precision
Why this breaks: Fixed-size chunks split mid-sentence, mid-paragraph, or mid-idea. The resulting embeddings represent incomplete thoughts, leading to poor retrieval quality. Users search for concepts but get fragments.
Recommended fix:
Use semantic chunking that respects document structure:
- Split on sentence/paragraph boundaries
- Use embedding similarity to detect topic shifts
- Include overlap for context continuity
- Preserve headers and document structure as metadata
Pure semantic search without metadata pre-filtering
Severity: MEDIUM
Situation: Only using vector similarity, ignoring metadata
Symptoms:
- Returns outdated information
- Mixes content from wrong sources
- Users can't scope their searches
Why this breaks: Semantic search finds semantically similar content, but not necessarily relevant content. Without metadata filtering, you return old docs when user wants recent, wrong categories, or inapplicable content.
Recommended fix:
…
FAQ
Why does AI sometimes make up answers?
This can happen if the AI can't find the correct information in the documents. This expert helps ensure the AI receives the right data to avoid 'hallucinations'.
What are 'embeddings'?
Think of embeddings as a way to turn words and sentences into numbers that a computer can understand. This helps find texts with similar meanings, even if they use different words.
What is 'chunking'?
Chunking is the process of breaking down large documents into smaller, more manageable pieces. This helps in finding specific information more efficiently.
Details
Original description by the author
Expert in building Retrieval-Augmented Generation systems. Masters embedding models, vector databases, chunking strategies, and retrieval optimization for LLM applications.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3950
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
agent-architecture-audit
Makes your agent check if everything is working correctly. It finds and fixes problems in AI systems, ensuring they perform as expected.
affaan-m/ECC
agent-eval
Helps your agent compare different AI coding tools. It measures which one is faster, cheaper, and more reliable for specific tasks.
affaan-m/ECC
agent-harness-construction
Makes your agent better understand how to perform tasks. It optimizes the tools and instructions the agent uses to increase its chances of success.
affaan-m/ECC