English
Retrieval-augmented generation, or RAG, retrieves relevant documents from an external source and feeds them to a language model before it answers. This grounds the response in real, current information instead of relying only on what the model memorized during training.
Retrieval-augmented generation fetches relevant documents first and puts them in front of the model, so the answer is grounded in retrieved text rather than in whatever the model happened to memorise during training. It is the standard remedy for two problems at once: knowledge that is newer than the training cut-off, and hallucination. The retrieval step is where most RAG systems actually succeed or fail. A model cannot ground an answer in a document that was never fetched.
The assistant uses RAG over the company's internal documentation.
العربية
التوليد المعزَّز بالاسترجاع (RAG) يقوم باسترجاع مستندات ذات صلة من مصدر خارجي ثم يزوّد بها النموذج اللغوي قبل أن يجيب. يجعل هذا الإجابة مستندة إلى معلومات حقيقية وحديثة بدلاً من الاعتماد فقط على ما حفظه النموذج أثناء التدريب.
يجلب التوليد المعزَّز بالاسترجاع المستندات ذات الصلة أولاً ويضعها أمام النموذج، فتستند الإجابة إلى نصٍّ مُسترجَع لا إلى ما حفظه النموذج مصادفةً أثناء تدريبه. وهو العلاج المعتاد لمشكلتين معاً: معرفةٌ أحدث من تاريخ انتهاء التدريب، والهلوسة. وخطوة الاسترجاع هي التي تنجح فيها أنظمة RAG أو تفشل فعلياً، إذ لا يستطيع النموذج أن يُسند إجابةً إلى مستندٍ لم يُجلَب أصلاً.
يستعمل المساعد التوليد المعزَّز بالاسترجاع فوق الوثائق الداخلية للشركة.
يُعرف أيضاً بـ
- RAG
- retrieval augmented generation
- RAG
يُكتب أيضاً هكذا، ولا نوصي به
- الاسترجاع المعزز بالتوليد
- راغ
لمَ هذه الصيغة: «الاسترجاع المعزز بالتوليد» يقلب العلاقة: فالتوليد هو المُعزَّز بالاسترجاع، لا العكس.
أول ظهور
2020 · سُمِّي في ورقة «التوليد المعزَّز بالاسترجاع لمهام معالجة اللغة كثيفة المعرفة» (لويس وزملاؤه، ميتا).
المصدر