Retrieval-Augmented Generation for LargeLanguage Models: A Survey

标题:Retrieval-Augmented Generation for Large Language Models: A Survey

作者:Yunfan Gaoa , Yun Xiongb , Xinyu Gaob , Kangxiang Jiab , Jinliu Panb , Yuxi Bic , Yi Daia , Jiawei Suna , Meng Wangc , and Haofen Wang

  1. By referencing external knowledge, RAG effectively reduces the problem of generating factually incorrect content. Its integration into LLMs has resulted in widespread adoption, establishing RAG as a key technology in advancing chatbots and enhancing the suitability of LLMs for real-world applications

  2. The RAG research paradigm is continuously evolving, and we categorize it into three stages: Naive RAG, Advanced RAG, and Modular RAG

  3. The Naive RAG:

Indexing starts with the cleaning and extraction of raw data

Retrieval. Upon receipt of a user query, the RAG system employs the same encoding model utilized during the indexing phase to transform the query into a vector representation.

Generation. The posed query and selected documents are synthesized into a coherent prompt to which a large language model is tasked with formulating a response.

Advanced RAG introduces specific improvements to overcome the limitations of Naive RAG. Focusing on enhancing retrieval quality, it employs pre-retrieval and post-retrieval strategies.

Pre-retrieval process. In this stage, the primary focus is on optimizing the indexing structure and the original query. The goal of optimizing indexing is to enhance the quality of the content being indexed.

Post-Retrieval Process. Once relevant context is retrieved, it's crucial to integrate it effectively with the query

  1. Innovations such as the Rewrite-Retrieve-Read 7model leverage the LLM's capabilities to refine retrieval queries through a rewriting module and a LM-feedback mechanism to update rewriting model

  2. RAG is often compared with Fine-tuning (FT) and prompt engineering. Each method has distinct characteristics as illustrated in Figure 4.

  3. In the context of RAG, it is crucial to efficiently retrieve relevant documents from the data source. There are several key issues involved, such as the retrieval source, retrieval granularity, pre-processing of the retrieval, and selection of the corresponding embedding model.

相关推荐
Thomas.Sir4 小时前
第017讲:AI模型开发|可行性评分卡与一票否决:把主观判断结构化:数据不及格,其余满分也必须 No-Go
人工智能·ai
wflynn6 小时前
Gemini 3.8 Flash 和 Cyber 版本发布,网络安全与软件工程能力双线突破
ai·技术
Jeff-Tsai6 小时前
手上的纸质单据,能不能直接变成系统里的表单?
ai·.net·blazor·erp
xiezhr7 小时前
期待已久的workbuddy多设备同步终于来了
ai·ai-agent·workbuddy
知了一笑7 小时前
当项目只留下一个人
ai·职场·打工人
Summer-Bright1 天前
深度 | 决策模型抢滩:OpenAI 微软同周下场,大模型从生成文本转向输出概率判断
人工智能·microsoft·ai·微软·qwen·决策
wflynn2 天前
Inkling 2 Mini:26B 参数循环 Transformer 的本地多模态模型
人工智能·ai
我才是银古2 天前
DSH插件开发实录
ai·deepseek·dsh·dsh插件
万有AI2 天前
FastAPI中间件复盘:注册顺序换算、限流分层与SSE直通的三个设计决策
ai·api
aicat_cn2 天前
AI Studio 做的安卓 App 有后端了,Gemini 密钥不用塞进 APK
ai·大模型