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
