Install
npx skillscat add takagoto/rag-learning-academy/sandbox Install via the SkillsCat registry.
Sandbox: Get a Working RAG Pipeline in 5 Minutes
Scope: This skill scaffolds a minimal pipeline for quick experimentation. For guided, step-by-step building with explanations, use
/build.
Scaffold a complete, minimal RAG pipeline with sample data so the learner has something running immediately. This is for experimentation, not production.
Language awareness: See
.claude/LANGUAGE_AWARENESS.md.
Step 1: Check Environment
Read progress/learner-profile.md for the learner's chosen language. If no profile exists, default to Python.
Check if dependencies are installed. If not, guide the learner through setup:
Python:
pip install chromadb langchain sentence-transformersTypeScript:
npm install chromadb langchain @langchain/communityFor Go/Rust, note that setup is more manual and offer to walk through it.
Step 2: Create the Sandbox
Create a sandbox/ directory with three files:
File 1: Sample Data (sandbox/data.txt)
A short collection of 5-10 paragraphs about a topic (e.g., coffee brewing methods, or RAG itself). Keep it under 2000 words. The data should be interesting enough that queries feel meaningful.
File 2: The Pipeline (sandbox/pipeline.[ext])
A single-file RAG pipeline that:
- Loads the sample data
- Chunks it (fixed-size, 200 tokens, 50 overlap)
- Embeds chunks using a local model (all-MiniLM-L6-v2)
- Stores in ChromaDB (in-memory)
- Takes a query, retrieves top-3 chunks
- Prints the retrieved chunks with similarity scores
No LLM generation step yet. Keep it simple: retrieval only.
File 3: README (sandbox/README.md)
Quick instructions: how to run it, what to try, and 3 suggested experiments:
- Try different queries and see what comes back
- Change the chunk size and see how results change
- Add your own data file and query it
Step 3: Run It Together
Run the pipeline with a sample query and show the output. Walk through what happened at each step: "Here's where it chunked your data... here's the embedding step... here's what ChromaDB returned."
Step 4: Suggest Experiments
Give the learner 3 things to try right now:
- "Try a query where the answer spans two chunks. Notice how the pipeline only returns individual chunks."
- "Change chunk size from 200 to 50 tokens. Run the same query. What changed?"
- "Add a paragraph about something totally different to data.txt. Query for it. Does it retrieve correctly?"
Then suggest next steps:
/lessonto understand the concepts behind what you just built/break-itto learn by debugging/buildto extend this into a full pipeline with generation