Convex Agents RAG
Implements Retrieval-Augmented Generation (RAG) patterns to enhance agents with custom knowledge bases. Use this when agents need to search through documents, retrieve context from a knowledge base, or ground responses in specific data.
npx skills add majiayu000/claude-skill-registry --skill convex-agents-rag --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.
## Purpose Enables agents to search through custom content and knowledge bases to provide accurate, context-grounded responses. RAG combines LLM capabilities with semantic search. ## When to Use This Skill - Agents need to reference a knowledge base or document collection - Grounding answers in specific data (policies, product docs, etc.) - Semantic search across custom content - Building a search + generation system (FAQ, documentation, support) - Reducing hallucinations by constraining responses to known information - Managing user-specific or team-specific knowledge namespaces ## Setup Install and configure RAG in your `convex.config.ts`: ```typescript import { defineApp } from "convex/server"; import agent from "@convex-dev/agent/convex.config"; import rag from "@convex-dev/rag/convex.config"; const app = defineApp(); app.use(agent); app.use(rag); export default app; ``` ## Add Content Ingest documents into a namespace: ```typescript import { rag } from "@convex-dev/rag"; export const addContent = action({ args: { userId: v.string(), key: v.string(), text: v.string() }, handler: async (ctx, { userId, key, text }) => { const namespace = `user:${userId}`; await rag.addContent(ctx
- Purpose
- When to Use This Skill
- Setup
- Add Content
- Search and Generate
- Key Principles
- Next Steps
What does the Convex Agents RAG skill do?
Implements Retrieval-Augmented Generation (RAG) patterns to enhance agents with custom knowledge bases. Use this when agents need to search through documents, retrieve context from a knowledge base, or ground responses in specific data.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill convex-agents-rag --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.
