RAG (Retrieval-Augmented Generation) একটি LLM কে একটি retrieval system এর সাথে একত্রিত করে — একটি knowledge base থেকে প্রাসঙ্গিক তথ্য আনে এবং এটি LLM কে context হিসাবে প্রদান করে accurate এবং grounded উত্তর তৈরি করতে। এটি 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
