rag-implementation
यह क्या करती है
यह स्किल आपके AI को अपने दस्तावेज़ों पर खोज बनाने में मार्गदर्शन देती है, जिसके नतीजे भाषा मॉडल तक पहुँचते हैं। यह उन डेवलपर्स के लिए है जो अपने डेटा पर आधारित सटीक जवाब चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप ऐसा सिस्टम बना रहे हैं जो आपके अपने दस्तावेज़ों से सवालों के जवाब देता है।
- ✓जब आपकी मौजूदा खोज खराब नतीजे देती है और आपको बेहतर चंकिंग या हाइब्रिड सर्च चाहिए।
- ✓जब आप तय करना चाहते हैं कि retrieval ज़रूरी है या नहीं, क्योंकि इसमें देरी और लागत बढ़ती है।
Skill का लिंक
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/rag-implementation/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे दस्तावेज़ चैटबॉट की खोज सुधारने में मदद कर सकते हैं, क्योंकि वह बार-बार अप्रासंगिक हिस्से लौटा रहा है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल जाँचती है कि दस्तावेज़ों को कैसे चंक, एम्बेड, स्टोर और रिट्रीव किया जा रहा है। वह चंक्स के बीच overlap, dense और keyword सर्च का मेल, और reranking जैसे सुधार सुझाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
RAG Implementation
You're a RAG specialist who has built systems serving millions of queries over terabytes of documents. You've seen the naive "chunk and embed" approach fail, and developed sophisticated chunking, retrieval, and reranking strategies.
You understand that RAG is not just vector search—it's about getting the right information to the LLM at the right time. You know when RAG helps and when it's unnecessary overhead.
Your core principles:
- Chunking is critical—bad chunks mean bad retrieval
- Hybri
Capabilities
- document-chunking
- embedding-models
- vector-stores
- retrieval-strategies
- hybrid-search
- reranking
Patterns
Semantic Chunking
Chunk by meaning, not arbitrary size
Hybrid Search
Combine dense (vector) and sparse (keyword) search
Contextual Reranking
Rerank retrieved docs with LLM for relevance
Anti-Patterns
❌ Fixed-Size Chunking
❌ No Overlap
❌ Single Retrieval Strategy
⚠️ Sharp Edges
| Issue | Severity | Solution |
|---|---|---|
| Poor chunking ruins retrieval quality | critical | // Use recursive character text splitter with overlap |
| Query and document embeddings from different models | critical | // Ensure consistent embedding model usage |
| RAG adds significant latency to responses | high | // Optimize RAG latency |
| Documents updated but embeddings not refreshed | medium | // Maintain sync between documents and embeddings |
Related Skills
Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline
अक्सर पूछे जाने वाले सवाल
हाइब्रिड सर्च क्या है?
यह vector सर्च को, जो मिलते-जुलते अर्थ खोजती है, keyword सर्च के साथ जोड़ता है, जो सटीक शब्द खोजती है।
चंकिंग क्यों मायने रखती है?
गाइड के अनुसार खराब चंक्स से खराब retrieval होता है, इसलिए अर्थ या सेक्शन के आधार पर बाँटना आम तौर पर तय आकार से बेहतर है।
क्या हर ऐप को RAG चाहिए?
नहीं। गाइड कहती है कि पहले जाँचें कि अतिरिक्त देरी और overhead के बदले retrieval उपयोगी है या नहीं।
जानकारी
लेखक का मूल विवरण
Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8615
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
owasp-security
33kआपके एजेंट को वेब ऐप, API, मोबाइल, कंटेनर और AI एजेंट्स के लिए OWASP सुरक्षा मार्गदर्शन सिखाती है, ताकि वह आम कमज़ोरियाँ पहचान सके और सुधार सुझा सके।
agent-management
33kआपके एजेंट को AI Maestro कमांड-लाइन से AI एजेंट बनाने, सूची देखने, hibernate और wake करने, नाम बदलने और हटाने देती है, हर एजेंट के जीवन-चक्र को संभालते हुए।
agent-messaging
33kAgent Messaging Protocol का उपयोग करके AI एजेंट्स के बीच हस्ताक्षरित संदेश भेजने, प्राप्त करने और उनका जवाब देने देती है, ज़्यादातर आपकी अपनी मशीन पर।
docs-search
33kआपके एजेंट को फ़ंक्शन सिग्नेचर, क्लास परिभाषा और कमेंट के लिए ऑटो-जनरेटेड कोड डॉक्यूमेंटेशन खोजने देती है, ताकि कोड बदलने से पहले वह असली API जाँच सके।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।