rag
Implements Retrieval-Augmented Generation for AI models to fetch and use external knowledge.
npx skills add majiayu000/claude-skill-registry --skill rag-alphaonedev-openclaw-graph --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# rag ## Purpose This skill implements Retrieval-Augmented Generation (RAG) for OpenClaw, enabling AI models to query external knowledge bases and integrate results into responses, enhancing accuracy for tasks like question-answering. ## When to Use Use this skill when your AI needs dynamic access to external data, such as querying a vector database for real-time information in NLP tasks, handling knowledge gaps in models, or augmenting responses in chatbots. Avoid it for purely generative tasks without external dependencies. ## Key Capabilities - Fetches documents from vector databases (e.g., Pinecone, FAISS) using similarity search. - Integrates retrieved content into AI prompts for generation. - Supports embedding models for query vectorization (e.g., via Hugging Face transformers). - Handles chunking of large documents and relevance scoring. - Configurable via JSON files for custom sources and thresholds. ## Usage Patterns Always set the API key via environment variable: `export OPENCLAW_API_KEY=$SERVICE_API_KEY`. For CLI, use `openclaw rag` with required flags. In code, import the skill and call methods like `rag.retrieve()`. Pattern: Query -> Retrieve -> Augment -> Generate.
- Purpose
- When to Use
- Key Capabilities
- Usage Patterns
- Common Commands/API
- Integration Notes
- Error Handling
- Concrete Usage Examples
- Graph Relationships
What does the rag skill do?
Implements Retrieval-Augmented Generation for AI models to fetch and use external knowledge.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill rag-alphaonedev-openclaw-graph --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.
