Large language models · Artificial intelligence
Retrieval-augmented generation RAG 検索拡張生成
けんさくかくちょうせいせい
Retrieval-augmented generation (RAG) has a language model first look up relevant documents and then answer based on them, making answers more current, sourced and less prone to fabrication.
- Emerged
- 2020
- Key pioneers
- Patrick Lewis et al. (Meta AI)
- Example uses
- Company-document Q&A, legal lookup
How it works
The question is embedded, the closest passages are retrieved from a document store, placed in the prompt, and the model writes an answer, possibly citing sources.
Pros and cons
RAG is cheaper than fine-tuning and easy to update, but if retrieval picks the wrong documents the answer can still be wrong.
In Vietnam
Many Vietnamese banks, agencies and firms are piloting RAG chatbots over internal documents and regulations.
Vocabulary corner
Japanese: 検索拡張生成 (けんさくかくちょうせいせい). English: Retrieval-augmented generation (RAG). Related Japanese words: 検索拡張生成、検索、文書、出典、埋め込み.