Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.
.claude/skills/davila7-rag-implementation/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | 100% | 20 |
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 20% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 7% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 13% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 22% | 0% |
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:
Chunk by meaning, not arbitrary size
Combine dense (vector) and sparse (keyword) search
Rerank retrieved docs with LLM for relevance
| 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 |
Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 25,878 | 21,295 | -18% | 1 | 1 | 0% | 4,315 | 4,367 | +1% | 0 | 0 | — |
case-02 | pass→pass | 13,675 | 13,947 | +2% | 1 | 1 | 0% | 2,484 | 2,973 | +20% | 0 | 0 | — |
case-03 | pass→pass | 14,902 | 12,097 | -19% | 1 | 1 | 0% | 2,304 | 2,461 | +7% | 0 | 0 | — |
case-04 | pass→pass | 16,624 | 16,871 | +1% | 1 | 1 | 0% | 2,826 | 3,207 | +13% | 0 | 0 | — |
case-05 | pass→pass | 9,544 | 8,397 | -12% | 1 | 1 | 0% | 1,599 | 1,958 | +22% | 0 | 0 | — |
case-06 | pass→pass | 9,472 | 6,224 | -34% | 1 | 1 | 0% | 1,626 | 1,475 | -9% | 0 | 0 | — |
case-07 | pass→pass | 7,976 | 11,848 | +49% | 1 | 1 | 0% | 1,191 | 2,291 | +92% | 0 | 0 | — |
case-08 | pass→pass | 15,871 | 15,289 | -4% | 1 | 1 | 0% | 2,492 | 3,080 | +24% | 0 | 0 | — |
case-09 | pass→pass | 20,142 | 20,753 | +3% | 1 | 1 | 0% | 3,474 | 3,775 | +9% | 0 | 0 | — |
case-10 | pass→pass | 12,923 | 12,462 | -4% | 1 | 1 | 0% | 2,004 | 2,448 | +22% | 0 | 0 | — |
case-11 | pass→pass | 12,385 | 9,121 | -26% | 1 | 1 | 0% | 2,132 | 1,960 | -8% | 0 | 0 | — |
case-12 | pass→pass | 12,060 | 10,459 | -13% | 1 | 1 | 0% | 2,064 | 2,275 | +10% | 0 | 0 | — |
case-13 | pass→pass | 13,417 | 9,420 | -30% | 1 | 1 | 0% | 2,228 | 1,941 | -13% | 0 | 0 | — |
case-14 | pass→pass | 11,359 | 9,180 | -19% | 1 | 1 | 0% | 1,970 | 2,070 | +5% | 0 | 0 | — |
case-15 | pass→pass | 12,063 | 8,954 | -26% | 1 | 1 | 0% | 2,028 | 2,017 | -1% | 0 | 0 | — |
case-16 | pass→pass | 7,400 | 7,584 | +2% | 1 | 1 | 0% | 1,379 | 1,729 | +25% | 0 | 0 | — |
case-17 | pass→pass | 16,808 | 16,966 | +1% | 1 | 1 | 0% | 2,907 | 3,387 | +17% | 0 | 0 | — |
case-18 | pass→pass | 9,789 | 11,978 | +22% | 1 | 1 | 0% | 1,675 | 2,560 | +53% | 0 | 0 | — |
case-19 | pass→pass | 14,261 | 13,265 | -7% | 1 | 1 | 0% | 2,756 | 2,822 | +2% | 0 | 0 | — |
case-20 | pass→pass | 14,839 | 14,342 | -3% | 1 | 1 | 0% | 3,050 | 3,428 | +12% | 0 | 0 | — |
case-21 | pass→pass | 11,997 | 8,907 | -26% | 1 | 1 | 0% | 1,936 | 1,876 | -3% | 0 | 0 | — |
case-22 | pass→pass | 14,467 | 16,797 | +16% | 1 | 1 | 0% | 2,313 | 3,128 | +35% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.