检索增强生成(RAG)最近作为一种扩展大语言模型预训练知识的方法而出现,其方式是通过信息检索(IR)系统检索到的相关段落或文档来增强原始提示。RAG 对生成式人工智能解决方案日益重要,尤其是在企业环境中,或在知识不断更新且无法在大语言模型中记忆的任何领域中。我们在此提出,RAG 系统的检索组件,无论是稠密检索还是稀疏检索,都值得研究界给予更多关注,因此,我们对 RAG 系统的检索策略进行了首次全面且系统的考察。我们特别关注 RAG 解决方案中的 IR 系统应当检索哪类段落。我们的分析考虑了多个因素,例如提示上下文中包含的段落的相关性、它们的位置以及它们的数量。本项工作一个反直觉的发现是,检索器给出的与查询不直接相关(例如不包含答案)的最高分文档会对大语言模型的有效性产生负面影响。更令人惊讶的是,我们发现,在提示中加入随机文档可将大语言模型的准确率提高多达35%。这些结果凸显了在将检索与大语言模型集成时研究适当策略的必要性,从而为该领域的未来研究奠定了基础。
英文摘要:
Retrieval-Augmented Generation (RAG) has recently emerged as a method to extend beyond the pre-trained knowledge of Large Language Models by augmenting the original prompt with relevant passages or documents retrieved by an Information Retrieval (IR) system. RAG has become increasingly important for Generative AI solutions, especially in enterprise settings or in any domain in which knowledge is constantly refreshed and cannot be memorized in the LLM. We argue here that the retrieval component of RAG systems, be it dense or sparse, deserves increased attention from the research community, and accordingly, we conduct the first comprehensive and systematic examination of the retrieval strategy of RAG systems. We focus, in particular, on the type of passages IR systems within a RAG solution should retrieve. Our analysis considers multiple factors, such as the relevance of the passages included in the prompt context, their position, and their number. One counter-intuitive finding of this work is that the retriever's highest-scoring documents that are not directly relevant to the query (e.g., do not contain the answer) negatively impact the effectiveness of the LLM. Even more surprising, we discovered that adding random documents in the prompt improves the LLM accuracy by up to 35%. These results highlight the need to investigate the appropriate strategies when integrating retrieval with LLMs, thereby laying the groundwork for future research in this area.
LegalRAG: A Hybrid RAG System for Multilingual Legal Information Retrieval
Apurba-NSU R&D Lab, Department of Electrical and Computer Engineering, North South University, Dhaka, Bangladesh(北南大学电气与计算机工程系,北南大学阿普尔巴-NSU研发实验室,达卡,孟加拉国);Apurba Technologies, Sunnyvale, CA 94085, USA(阿普尔巴技术公司,硅谷,加利福尼亚州,美国);Fordham University, New York, USA(福丁大学,纽约,美国)
C-RAG: Certified Generation Risks for Retrieval-Augmented Language Models
University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Delft University of Technology(代尔夫特理工大学);Netflix Eyeline Studios;University of California, Berkeley(加州大学伯克利分校);University of Chicago(芝加哥大学)
Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG
Cleveland State University(克利夫兰州立大学);Kent State University(肯特州立大学);Northeastern University(东北大学);Roux Institute at Northeastern University(东北大学鲁克斯研究所);University of Agder (UiA)(阿格德尔大学)
Stable-RAG: Mitigating Retrieval-Permutation-Induced Hallucinations in Retrieval-Augmented Generation
Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing(北京未来区块链与隐私计算先进创新中心);School of Artificial Intelligence, Beihang University(北航人工智能学院);Beijing Academy of Blockchain and Edge Computing(北京区块链与边缘计算研究院);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
IA-RAG: Interval-Algebra-Driven Temporal Reasoning for Dynamic Knowledge Retrieval
East China Normal University(华东师范大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);University of Shanghai for Science and Technology(上海科技大学);Harbin Engineering University(哈尔滨工程大学)
School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机科学与技术学院);Department of Mathematical Sciences, Tsinghua University(清华大学数学科学系)