Efficient pipeline for retrieval-augmented generation system under big data

Retrieval-augmented generation (RAG) is a methodology that integrates external knowledge through knowledge retrieval techniques such as approximate nearest neighbor search (ANNS), significantly enhancing the generation quality of large language models (LLMs). However, as external knowledge bases continue to expand, the storage requirements for ANNS indexes also surge, making the storage of massive data in memory impractical. This has further promoted the development and application of disk-based ANNS, but it significantly increases the response time of RAG systems. To address this issue, this paper proposes the PipeRAG method, which effectively overlaps the latency of knowledge retrieval and LLM inference by pipelining the disk-based ANNS and LLM prefill processes, thereby enhancing the overall performance of RAG systems while ensuring retrieval accuracy. Specifically, PipeRAG features two core designs: the “ANNS adaptive prefetching mechanism" and the “RAG dynamic pipeline scheduling strategy". The former design adjusts the prefetching speed in real time based on the current retrieval status, finding an optimal balance between performance and accuracy. The latter design dynamically adjusts the size of prefilling tasks by considering both ANNS prefetching speed and LLM chunked-prefill latency to achieve optimal pipeline efficiency. Our evaluations under real-world production workloads show that PipeRAG successfully reduces the response latency of RAG systems using disk-based ANNS by 25% to 71%, while maintaining extremely low recall loss.

Authors

Publication Details

Journal
Scientia Sinica Informationis
Published
2025-02-18
DOI
https://doi.org/10.1360/ssi-2024-0331
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient pipeline for retrieval-augmented generation system under big data

Runjie Yu, Yufan Yang, Jian Zhou, Fei Wu
Scientia Sinica Informationis
Algorithms and Data Compression
article

Efficient pipeline for retrieval-augmented generation system under big data

Runjie Yu, Yufan Yang, Jian Zhou, Fei Wu
article en

Abstract

Retrieval-augmented generation (RAG) is a methodology that integrates external knowledge through knowledge retrieval techniques such as approximate nearest neighbor search (ANNS), significantly enhancing the generation quality of large language models (LLMs). However, as external knowledge bases continue to expand, the storage requirements for ANNS indexes also surge, making the storage of massive data in memory impractical. This has further promoted the development and application of disk-based ANNS, but it significantly increases the response time of RAG systems. To address this issue, this paper proposes the PipeRAG method, which effectively overlaps the latency of knowledge retrieval and LLM inference by pipelining the disk-based ANNS and LLM prefill processes, thereby enhancing the overall performance of RAG systems while ensuring retrieval accuracy. Specifically, PipeRAG features two core designs: the “ANNS adaptive prefetching mechanism" and the “RAG dynamic pipeline scheduling strategy". The former design adjusts the prefetching speed in real time based on the current retrieval status, finding an optimal balance between performance and accuracy. The latter design dynamically adjusts the size of prefilling tasks by considering both ANNS prefetching speed and LLM chunked-prefill latency to achieve optimal pipeline efficiency. Our evaluations under real-world production workloads show that PipeRAG successfully reduces the response latency of RAG systems using disk-based ANNS by 25% to 71%, while maintaining extremely low recall loss.

Scientia Sinica InformationisVol. 55(3)
Openalex Percentile: Top 99%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Efficient pipeline for retrieval-augmented generation system under big data — Runjie Yu, Yufan Yang, et al. · Scientia Sinica Informationis (2025) | TGRS Research Map | TGRS