RAG (Retrieval-Augmented Generation) एक LLM लाई retrieval system संग जोडिएको हुन्छ — ज्ञान आधारबाट सान्दर्भिक जानकारी प्राप्त गरेर यसलाई LLM को context को रूपमा प्रदान गर्दै सटीक, आधारित उत्तर उत्पन्न गर्न। यो कस्टम डेटामाथि LLM अनुप्रयोगहरू निर्माण गर्न एक मुख्य तकनीक हो।
RAG ले के गर्छ
RAG → augment an LLM's generation with RETRIEVED relevant information:
1. RETRIEVE → search a knowledge base (your documents/data) for info relevant to the query
2. AUGMENT → add the retrieved info to the LLM's prompt as CONTEXT
3. GENERATE → the LLM answers using the provided context (grounded in your data)
→ gives the LLM relevant, up-to-date, specific knowledge it wasn't trained on
