arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.10315cs.CLcs.AI
收藏

EasyRAG:面向自动化网络运营的高效检索增强生成框架

EasyRAG: Efficient Retrieval-Augmented Generation Framework for Automated Network Operations

School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院)

Zhangchi Feng, Dongdong Kuang, Zhongyuan Wang, Zhijie Nie, Yaowei Zheng, Richong Zhang

AI总结:

本文提出EasyRAG框架,通过双路稀疏检索与LLM重排实现精准问答,具备无需微调、低显存易部署及高效推理加速等优势,在GLM4赛事中取得优异成绩。

摘要:

本文提出了EasyRAG,一个用于自动化网络运营的简单、轻量且高效的检索增强生成框架。该框架具有三大优势。首先是准确的问答。我们设计了一种直观的RAG方案,基于:(1)特定的数据处理流程;(2)用于粗排的双路稀疏检索;(3)用于重排的LLM Reranker;(4)LLM答案生成与优化。该方法在初赛GLM4赛道获得第一名,在半决赛GLM4赛道获得第二名。其次是简单的部署。我们的方法主要由BM25检索和BGE-reranker重排组成,无需对任何模型进行微调,占用极少的VRAM,易于部署且高度可扩展;我们提供了一个包含各种搜索和生成策略的灵活代码库,便于实现自定义流程。最后是高效的推理。我们为整个粗排、重排和生成过程设计了一种高效的推理加速方案,在保持良好准确率的同时显著降低了RAG的推理延迟;每个加速方案都能即插即用到RAG流程的任何组件中,持续提升RAG系统的效率。我们的代码和数据已在https://github.com/BUAADreamer/EasyRAG发布。

英文摘要:

This paper presents EasyRAG, a simple, lightweight, and efficient retrieval-augmented generation framework for automated network operations. Our framework has three advantages. The first is accurate question answering. We designed a straightforward RAG scheme based on (1) a specific data processing workflow (2) dual-route sparse retrieval for coarse ranking (3) LLM Reranker for reranking (4) LLM answer generation and optimization. This approach achieved first place in the GLM4 track in the preliminary round and second place in the GLM4 track in the semifinals. The second is simple deployment. Our method primarily consists of BM25 retrieval and BGE-reranker reranking, requiring no fine-tuning of any models, occupying minimal VRAM, easy to deploy, and highly scalable; we provide a flexible code library with various search and generation strategies, facilitating custom process implementation. The last one is efficient inference. We designed an efficient inference acceleration scheme for the entire coarse ranking, reranking, and generation process that significantly reduces the inference latency of RAG while maintaining a good level of accuracy; each acceleration scheme can be plug-and-play into any component of the RAG process, consistently enhancing the efficiency of the RAG system. Our code and data are released at \url{https://github.com/BUAADreamer/EasyRAG}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑