shuyu-labs/webcode/ms-agent-framework-rag
Claude Code and agent skill by shuyu-labs/webcode
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive guide for building Agentic RAG systems using Microsoft Agent Framework in C#. Use when creating RAG applications with semantic search, document indexing, and intelligent agent orchestration. Includes scaffolding scripts, reference implementations, and documentation for vector databases, embedding models, and multi-agent workflows.
Install
npx vskill@latest install shuyu-labs/webcode/ms-agent-framework-ragSKILL.md
Microsoft Agent Framework - Agentic RAG System
This skill provides scaffolding and guidance for building production-ready Agentic RAG (Retrieval-Augmented Generation) systems using Microsoft Agent Framework with C#.
Quick Start
Use the scaffolding script to create a new RAG system:
Example:
Architecture Overview
An Agentic RAG system consists of:
- Ingestion Layer: Document parsing, chunking, and embedding generation
- Vector Store: Semantic search index (Azure AI Search, Qdrant, or Pinecone)
- Agent Framework: Multi-agent orchestration with Microsoft AutoGen
- LLM Integration: Azure OpenAI or OpenAI API for generation
- API Layer: RESTful endpoints for querying
Core Components
1. Semantic Search
- Use Azure AI Search for integrated vector + keyword search
- Store embeddings with metadata (source, timestamp, tags)
- Implement hybrid search (vector + BM25) for best results
See references/semantic_search.md for implementation details.
2. Multi-Agent System
Build specialized agents:
- Research Agent: Finds relevant documents
- Synthesis Agent: Combines information from multiple sources
- Validation Agent: Checks accuracy and citations
See references/agent_patterns.md for agent design patterns.
3. Document Processing
- Supported formats: PDF, DOCX, TXT, MD, HTML
- Chunking strategies: semantic, sliding window, hierarchical
- Metadata extraction: title, author, date, tags
See references/document_processing.md for chunking strategies.
Available Scripts
create_rag_system.sh
Scaffolds a complete RAG system with:
- Project structure following best practices
- Configuration files (appsettings.json)
- Docker compose for local development
- Example agents and tools
Usage:
ingest_documents.sh
Batch document ingestion:
run_local.sh
Start the RAG system locally:
Configuration
Required environment variables:
Reference Documentation
references/semantic_search.md- Vector search implementationreferences/agent_patterns.md- Multi-agent design patternsreferences/document_processing.md- Chunking and preprocessingreferences/evaluation.md- RAG quality metrics
Best Practices
- Start Simple: Begin with basic RAG, add agents incrementally
- Metadata Matters: Rich metadata improves retrieval accuracy
- Hybrid Search: Combine vector and keyword search
- Citation Tracking: Always include source references
- Evaluation: Use RAGAS framework for quality metrics
Common Patterns
Multi-Step Retrieval
For complex queries, use iterative refinement:
- Initial search with broad query
- Research agent expands with sub-queries
- Synthesis agent combines results
- Validation agent checks citations
Citation Management
Always track:
- Document ID
- Page number
- Chunk index
- Relevance score
See references/citations.md for implementation.
Troubleshooting
Poor Retrieval Quality
- Adjust chunk size (try 512-1024 tokens)
- Use hybrid search instead of pure vector
- Add more metadata for filtering
- Consider re-embedding with different model
Slow Performance
- Enable caching on vector queries
- Use streaming responses
- Implement async document ingestion
- Consider partitioning large indices
High Costs
- Use smaller models for embeddings
- Cache frequently asked questions
- Implement result pagination
- Use batch processing for ingestion
Security
- Security scanPassedPattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codex/ms-agent-framework-rag/SKILL.md
Popularity
- Repository stars
- 285
- Repository forks
- 45
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shuyu-labs/webcode/ms-agent-framework-rag)