检索增强生成已成为提升大语言模型性能的有效方法。该方法通常依赖内部检索模块,利用多种索引机制管理静态的预处理语料库。然而,当需要在生成推理阶段整合尚未更新到语料库中的最新信息时,这种范式往往力不从心。本文探索了一种替代方案,利用标准搜索引擎 API 动态整合最新在线信息(无需为任何固定语料库维护索引),从而提升生成内容的质量。我们设计了一种基于大语言模型的协作范式,其中包括:(i)一个解析器大语言模型,通过单次推理判断是否需要互联网增强生成,并在需要时提取搜索关键词;(ii)一种混合排序策略,对检索到的 HTML 文件进行重排序,以消除搜索引擎 API 引入的偏差;(iii)一个提取器大语言模型,能够准确高效地从每个 HTML 文件的新鲜内容中提取相关信息。我们进行了广泛的实证研究,以评估这种互联网搜索增强生成范式的性能。实验结果表明,我们的方法生成的内容质量显著提升。我们的系统已成功部署于生产环境,为 01.AI 的生成推理请求提供服务。
英文摘要:
Retrieval augmented generation has emerged as an effective method to enhance large language model performance. This approach typically relies on an internal retrieval module that uses various indexing mechanisms to manage a static pre-processed corpus. However, such a paradigm often falls short when it is necessary to integrate the most up-to-date information that has not been updated into the corpus during generative inference time. In this paper, we explore an alternative approach that leverages standard search engine APIs to dynamically integrate the latest online information (without maintaining any index for any fixed corpus), thereby improving the quality of generated content. We design a collaborative LLM-based paradigm, where we include: (i) a parser-LLM that determines if the Internet augmented generation is demanded and extracts the search keywords if so with a single inference; (ii) a mixed ranking strategy that re-ranks the retrieved HTML files to eliminate bias introduced from the search engine API; and (iii) an extractor-LLM that can accurately and efficiently extract relevant information from the fresh content in each HTML file. We conduct extensive empirical studies to evaluate the performance of this Internet search augmented generation paradigm. The experimental results demonstrate that our method generates content with significantly improved quality. Our system has been successfully deployed in a production environment to serve 01.AI's generative inference requests.
Dual-Hypergraph Indexing: Bridging Knowledge Islands for Multi-Hop Reasoning in Retrieval-Augmented Generation
School of Software Engineering, Xi'an Jiaotong University(西安交通大学软件学院);EHV Power Transmission Company of China Southern Power Grid Co., Ltd.(中国南方电网有限责任公司超高压输电公司)
Approximate Nearest Neighbor Search for Modern AI: A Projection-Augmented Graph Approach
University of Yamanashi(山梨大学);Beijing Institute of Technology, Zhuhai(北京理工大学(珠海));Shenzhen University(深圳大学);Nagoya University(名古屋大学);Osaka University(大阪大学)
Establishing a Foundation for Tetun Ad-Hoc Text Retrieval: Stemming, Indexing, Retrieval, and Ranking
Institute for Systems and Computer Engineering, Tech. and Science (INESC TEC)(系统与计算机工程研究所(科技与科学));Faculty of Engineering, University of Porto (FEUP)(波尔图大学工程学院)
HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generation
Peking University(北京大学);Center for LLM, Institute for Advanced Algorithms Research(大模型中心,高级算法研究所);Huazhong University of Science and Technology(华中科技大学)
Bridging the Question-Answer Gap in Retrieval-Augmented Generation: Hypothetical Prompt Embeddings
University of Primorska(普里莫尔斯卡大学);InnoRenew CoE;Research Centre of the Slovenian Academy of Sciences and Arts(斯洛文尼亚科学与艺术研究院研究中心);The Fran Ramovš Institute(弗兰·拉莫夫什研究所)
SafeRAG: Benchmarking Security in Retrieval-Augmented Generation of Large Language Model
School of Information, Renmin University of China(中国人民大学信息学院);Institute for Advanced Algorithms Research(高级算法研究院);School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院)
Research on the Online Update Method for Retrieval-Augmented Generation (RAG) Model with Incremental Learning
School of Engineering and Applied Science(工程与应用科学学院);School of Business(商学院);University of Pennsylvania(宾夕法尼亚大学);Stevens Institute of Technology(史蒂文斯理工学院);College of Engineering(工程学院);College of Computer Sciences(计算机科学学院);Peking University(北京大学);Northeastern University(东北大学);Syracuse University(雪城大学);College of Engineering and Computer Science(工程与计算机科学学院)
School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Ant Group(蚂蚁集团);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Rutgers University(罗格斯大学)