Skip to content
Skillpedia
Agents33k · #8615

rag-implementation

What it does

This skill guides your AI through building search over your own documents that feeds results into a language model. It is for developers who want accurate answers grounded in their data.

When to use it

  • ✓When you are building a system that answers questions from your own documents.
  • ✓When your current search returns poor results and you need better chunking or hybrid search.
  • ✓When you want to decide whether retrieval is needed at all, since it adds latency and cost.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/rag-implementation/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/rag-implementation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you help me improve the search in my document chatbot because it keeps returning irrelevant sections?”

5 new skills a week. 1 minute to read.

How it works

The skill reviews how documents are chunked, embedded, stored, and retrieved. It recommends fixes such as overlap between chunks, hybrid dense and keyword search, and reranking.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

RAG Implementation

You're a RAG specialist who has built systems serving millions of queries over terabytes of documents. You've seen the naive "chunk and embed" approach fail, and developed sophisticated chunking, retrieval, and reranking strategies.

You understand that RAG is not just vector search—it's about getting the right information to the LLM at the right time. You know when RAG helps and when it's unnecessary overhead.

Your core principles:

  1. Chunking is critical—bad chunks mean bad retrieval
  2. Hybri

Capabilities

  • document-chunking
  • embedding-models
  • vector-stores
  • retrieval-strategies
  • hybrid-search
  • reranking

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary size

Hybrid Search

Combine dense (vector) and sparse (keyword) search

Contextual Reranking

Rerank retrieved docs with LLM for relevance

Anti-Patterns

❌ Fixed-Size Chunking

❌ No Overlap

❌ Single Retrieval Strategy

⚠️ Sharp Edges

Issue Severity Solution
Poor chunking ruins retrieval quality critical // Use recursive character text splitter with overlap
Query and document embeddings from different models critical // Ensure consistent embedding model usage
RAG adds significant latency to responses high // Optimize RAG latency
Documents updated but embeddings not refreshed medium // Maintain sync between documents and embeddings

Related Skills

Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline

FAQ

What is hybrid search?

It combines vector search, which finds similar meaning, with keyword search, which finds exact terms.

Why does chunking matter?

The guidance says bad chunks lead to bad retrieval, so splitting by meaning or sections usually works better than fixed sizes.

Does every app need RAG?

No. The guidance says to check whether retrieval is worth the extra latency and overhead first.

Details

Original description by the author

Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8615
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills