RAG (Retrieval-Augmented Generation) एक LLM ला retrieval system सह एकत्रित करते — knowledge base मधून संबंधित माहिती मिळवते आणि LLM ला संदर्भ म्हणून प्रदान करते जेणेकरून सटीक, आधारित उत्तरे तयार होतात. हे custom data वर LLM applications बांधण्यासाठी एक मुख्य तंत्र आहे.
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
