RAG (Retrieval-Augmented Generation) nggabungake LLM karo sistem retrieval — ngambil informasi sing relevan saka knowledge base lan menehi informasi kasebut menyang LLM minangka konteks kanggo ngasilake jawaban sing akurat lan grounded. Iki minangka teknik kunci kanggo ngrancang aplikasi LLM liwati data custom.
Apa sing ditindakake 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
