Agent skill · Design & Presentation

rag-design

Production-grade RAG (Retrieval-Augmented Generation) system design patterns from OpenClaw. Use when implementing semantic search, vector retrieval, memory systems, or knowledge bases. Covers hybrid search (vector + keyword), embedding providers, MMR re-ranking, temporal decay, and enterprise features.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill rag-design --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/ai-llm/rag-design/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# RAG Design Patterns Production-grade RAG implementation patterns extracted from OpenClaw's memory system. ## Core Architecture ### Hybrid Search Strategy Combine vector and keyword search for optimal retrieval: ```typescript // Parallel execution const [vectorResults, keywordResults] = await Promise.all([ vectorSearch(query, { limit: 50 }), keywordSearch(query, { limit: 50 }) ]); // Weighted merge const merged = mergeResults({ vector: vectorResults, keyword: keywordResults, vectorWeight: 0.7, // Semantic relevance textWeight: 0.3 // Keyword matching }); ``` ### Storage Layer Use SQLite with extensions for production deployments: - **Vector table**: `sqlite-vec` extension for embeddings - **FTS table**: SQLite FTS5 for full-text search - **Cache table**: Store computed embeddings to avoid recomputation ```sql -- Vector storage CREATE VIRTUAL TABLE chunks_vec USING vec0( embedding FLOAT[768] ); -- Full-text search CREATE VIRTUAL TABLE chunks_fts USING fts5( content, path, source ); -- Embedding cache CREATE TABLE embedding_cache ( content_hash TEXT PRIMARY KEY, embedding BLOB, provider TEXT, model TEXT ); ``` ## Embedding Providers Support multiple providers with fallback: ```types

What's inside
Steps it walks through
  1. Core Architecture
  2. Hybrid Search Strategy
  3. Storage Layer
  4. Embedding Providers
  5. Advanced Retrieval
  6. MMR Re-ranking
  7. Temporal Decay
  8. Query Enhancement
  9. Query Expansion
  10. Enterprise Features
  11. Batch Processing
  12. Incremental Indexing
  13. Error Recovery
  14. Agent Integration
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the rag-design skill do?

Production-grade RAG (Retrieval-Augmented Generation) system design patterns from OpenClaw. Use when implementing semantic search, vector retrieval, memory systems, or knowledge bases. Covers hybrid search (vector + keyword), embedding providers, MMR re-ranking, temporal decay, and enterprise features.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill rag-design --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going