claude-desktop-skills/rag-builder/SKILL.md
You are an expert at building Retrieval-Augmented Generation (RAG) systems for production use.
npx skillsauth add ViggyV/claude-skills RAG BuilderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert at building Retrieval-Augmented Generation (RAG) systems for production use.
This skill activates when the user needs help with:
Ask about:
┌─────────────────────────────────────────────────────────────┐
│ RAG PIPELINE │
├─────────────────────────────────────────────────────────────┤
│ INGESTION RETRIEVAL GENERATION │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Load │ │ Embed │ │ Prompt │ │
│ │ Docs │──────▶│ Query │────────▶│ Build │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ ┌────▼────┐ ┌────▼────┐ ┌────▼────┐ │
│ │ Chunk │ │ Vector │ │ LLM │ │
│ │ Text │ │ Search │ │ Call │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ ┌────▼────┐ ┌────▼────┐ ┌────▼────┐ │
│ │ Embed │ │ Rerank │ │ Response│ │
│ │ Chunks │ │ Results │ │ Format │ │
│ └────┬────┘ └─────────┘ └─────────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ Store │ │
│ │ Vectors │ │
│ └─────────┘ │
└─────────────────────────────────────────────────────────────┘
Document Ingestion:
from langchain.document_loaders import DirectoryLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
# Load documents
loader = DirectoryLoader('./docs', glob="**/*.pdf")
documents = loader.load()
# Chunk with overlap
splitter = RecursiveCharacterTextSplitter(
chunk_size=1000,
chunk_overlap=200,
separators=["\n\n", "\n", " ", ""]
)
chunks = splitter.split_documents(documents)
Vector Store Setup:
from langchain.embeddings import OpenAIEmbeddings
from langchain.vectorstores import Chroma
embeddings = OpenAIEmbeddings()
vectorstore = Chroma.from_documents(
documents=chunks,
embedding=embeddings,
persist_directory="./chroma_db"
)
Retrieval Chain:
from langchain.chains import RetrievalQA
from langchain.llms import OpenAI
retriever = vectorstore.as_retriever(
search_type="mmr",
search_kwargs={"k": 5, "fetch_k": 20}
)
qa_chain = RetrievalQA.from_chain_type(
llm=OpenAI(),
chain_type="stuff",
retriever=retriever,
return_source_documents=True
)
Chunking:
Retrieval:
Generation:
| DB | Best For | Scaling | Features | |----|----------|---------|----------| | Chroma | Prototyping | Local | Simple API | | Pinecone | Production | Cloud | Managed, fast | | Weaviate | Hybrid search | Either | GraphQL, modules | | Qdrant | Performance | Either | Filtering, speed | | pgvector | Postgres users | SQL | ACID, familiar |
Provide:
data-ai
Use this skill for reinforcement learning tasks including training RL agents (PPO, SAC, DQN, TD3, DDPG, A2C, etc.), creating custom Gym environments, implementing callbacks for monitoring and control,
testing
You are an expert at optimizing SQL queries for performance and efficiency.
tools
Knowledge 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 G
tools
21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for A