RAG (Retrieval-Augmented Generation) comhcheanglaíonn sé LLM le córas fhéachaint — faisnéis ábhartha a fhéachaint ó bhunachar fhios agus í a sholáthar don LLM mar chomhthéacs chun freagraí cruinn, bunaithe ar fhianaise a ghiniúint. Is teicníc bhunúsach í do thógáil feidhmchlár LLM thar shonraíochta dheireannacha.
Cad a dhéanann 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
