Searching for Best Practices in Retrieval-Augmented Generation
Xiaohua Wang, Zhenghua Wang, Xuan Gao, Feiran Zhang, Yixin Wu, Zhibo Xu, Tianyuan Shi, Zhengyuan Wang, Shizheng Li, Qi Qian, Ruicheng Yin, Changze Lv, Xiaoqing Zheng, Xuanjing Huang
TL;DR
This work systematically investigates best practices for retrieval-augmented generation (RAG) by dissecting the full pipeline into modular components and evaluating representative methods across them. It introduces a structured, three-step experimental approach to select per-module choices and their combinations, and validates these findings through extensive benchmarks spanning open-domain, multi-hop, and medical QA tasks, alongside a multimodal extension. Key contributions include a comprehensive evaluation framework, performance-efficiency trade-offs for retrieval, reranking, summarization, and generator fine-tuning, and practical deployment recipes for high performance or balanced efficiency. The results offer actionable guidance for building scalable, low-latency RAG systems and demonstrate the added value of multimodal retrieval in grounding and accelerating multimodal content generation.
Abstract
Retrieval-augmented generation (RAG) techniques have proven to be effective in integrating up-to-date information, mitigating hallucinations, and enhancing response quality, particularly in specialized domains. While many RAG approaches have been proposed to enhance large language models through query-dependent retrievals, these approaches still suffer from their complex implementation and prolonged response times. Typically, a RAG workflow involves multiple processing steps, each of which can be executed in various ways. Here, we investigate existing RAG approaches and their potential combinations to identify optimal RAG practices. Through extensive experiments, we suggest several strategies for deploying RAG that balance both performance and efficiency. Moreover, we demonstrate that multimodal retrieval techniques can significantly enhance question-answering capabilities about visual inputs and accelerate the generation of multimodal content using a "retrieval as generation" strategy.
