arXiv:2411.19478cs.IR2024-11被引 1

用搜索引擎实时补全大模型信息,生成更准更新的回答。

Zero-Indexing Internet Search Augmented Generation for Large Language Models

  • 用大模型判断是否需要联网,并提取关键词搜索
  • 混合排序策略消除搜索引擎结果偏差
  • 动态抽取网页内容,适合需最新信息的场景

检索增强生成已成为提升大语言模型性能的有效方法。传统方法依赖内部检索模块,通过索引机制管理静态预处理语料库,但在生成推理时难以融入未更新的最新信息。本文提出一种新范式,利用标准搜索引擎API动态整合最新在线信息(无需维护固定语料库索引),从而提升生成内容质量。我们设计了一种基于大模型的协同框架:(i) 解析器-大模型在单次推理中判断是否需要互联网增强生成,并提取搜索关键词;(ii) 混合排序策略对检索到的HTML文件重新排序,以消除搜索引擎接口引入的偏差;(iii) 抽取器-大模型可准确高效地从每份新鲜网页内容中提取相关信息。我们进行了大量实证研究评估该互联网搜索增强生成范式的性能。实验结果表明,该方法显著提升了生成内容的质量。系统已在01.AI生产环境部署,用于服务其生成推理请求。

原文摘要 · Abstract (English)

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.

大模型搜索增强实时生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。