RAG (Retrieval-Augmented Generation) łączy LLM z systemem pobierania informacji — pobierając istotne informacje z bazy wiedzy i dostarczając je do LLM jako kontekst, aby generować dokładne, ugruntowane odpowiedzi. To kluczowa technika do budowania aplikacji LLM na podstawie danych niestandardowych.
Co RAG robi
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
