RAG (Retrieval-Augmented Generation) kombinira LLM z sistemom pridobivanja — pridobivanjem relevantnih informacij iz baze znanja in njihovo zagotovitvijo LLM-u kot kontekst za ustvarjanje natančnih, utemeljenih odgovorov. To je ključna tehnika za gradnjo aplikacij LLM-a nad namenskimi podatki.
Kaj RAG počne
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
