rag-implementation
RAG (Retrieval-Augmented Generation) implementation workflow covering embedding selection, vector database setup, chunking strategies, and retrieval optimization.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- rag-implementation
- risk
- safe
- source
- personal
- category
- granular-workflow-bundle
- date_added
- 2026-02-27
- description
- RAG (Retrieval-Augmented Generation) implementation workflow covering embedding selection, vector database setup, chunking strategies, and retrieval optimization.
03 SKILL.md 正文
RAG Implementation Workflow
Overview
Specialized workflow for implementing RAG (Retrieval-Augmented Generation) systems including embedding model selection, vector database setup, chunking strategies, retrieval optimization, and evaluation.
When to Use This Workflow
Use this workflow when:
- Building RAG-powered applications
- Implementing semantic search
- Creating knowledge-grounded AI
- Setting up document Q&A systems
- Optimizing retrieval quality
Workflow Phases
Phase 1: Requirements Analysis
Skills to Invoke
ai-product- AI product designrag-engineer- RAG engineering
Actions
- Define use case
- Identify data sources
- Set accuracy requirements
- Determine latency targets
- Plan evaluation metrics
Copy-Paste Prompts
Use @ai-product to define RAG application requirements
Phase 2: Embedding Selection
Skills to Invoke
embedding-strategies- Embedding selectionrag-engineer- RAG patterns
Actions
- Evaluate embedding models
- Test domain relevance
- Measure embedding quality
- Consider cost/latency
- Select model
Copy-Paste Prompts
Use @embedding-strategies to select optimal embedding model
Phase 3: Vector Database Setup
Skills to Invoke
vector-database-engineer- Vector DBsimilarity-search-patterns- Similarity search
Actions
- Choose vector database
- Design schema
- Configure indexes
- Set up connection
- Test queries
Copy-Paste Prompts
Use @vector-database-engineer to set up vector database
Phase 4: Chunking Strategy
Skills to Invoke
rag-engineer- Chunking strategiesrag-implementation- RAG implementation
Actions
- Choose chunk size
- Implement chunking
- Add overlap handling
- Create metadata
- Test retrieval quality
Copy-Paste Prompts
Use @rag-engineer to implement chunking strategy
Phase 5: Retrieval Implementation
Skills to Invoke
similarity-search-patterns- Similarity searchhybrid-search-implementation- Hybrid search
Actions
- Implement vector search
- Add keyword search
- Configure hybrid search
- Set up reranking
- Optimize latency
Copy-Paste Prompts
Use @similarity-search-patterns to implement retrieval
Use @hybrid-search-implementation to add hybrid search
Phase 6: LLM Integration
Skills to Invoke
llm-application-dev-ai-assistant- LLM integrationllm-application-dev-prompt-optimize- Prompt optimization
Actions
- Select LLM provider
- Design prompt template
- Implement context injection
- Add citation handling
- Test generation quality
Copy-Paste Prompts
Use @llm-application-dev-ai-assistant to integrate LLM
Phase 7: Caching
Skills to Invoke
prompt-caching- Prompt cachingrag-engineer- RAG optimization
Actions
- Implement response caching
- Set up embedding cache
- Configure TTL
- Add cache invalidation
- Monitor hit rates
Copy-Paste Prompts
Use @prompt-caching to implement RAG caching
Phase 8: Evaluation
Skills to Invoke
llm-evaluation- LLM evaluationevaluation- AI evaluation
Actions
- Define evaluation metrics
- Create test dataset
- Measure retrieval accuracy
- Evaluate generation quality
- Iterate on improvements
Copy-Paste Prompts
Use @llm-evaluation to evaluate RAG system
RAG Architecture
User Query -> Embedding -> Vector Search -> Retrieved Docs -> LLM -> Response
| | | |
Model Vector DB Chunk Store Prompt + Context
Quality Gates
- [ ] Embedding model selected
- [ ] Vector DB configured
- [ ] Chunking implemented
- [ ] Retrieval working
- [ ] LLM integrated
- [ ] Evaluation passing
Related Workflow Bundles
ai-ml- AI/ML developmentai-agent-development- AI agentsdatabase- Vector databases
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
04 同仓库更多 Skills
vercel-sandbox
Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.
slack
Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.
electron
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
dogfood
Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.