Searching for Best Practices in Retrieval-Augmented Generation

Xiaohua Wang, Zhenghua Wang, Xuan Gao, Feiran Zhang, Yixin Wu +9 more
7/1/2024
cs.CL

No official code found. Best implementation: FudanDNN-NLP/RAG (347 stars, Apache-2.0, last commit 2024-12-21).

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.

View on arXivView PDF

Code Implementations(1)

FudanDNN-NLP/RAGCommunity100%
Apache-2.0

This is an implementation of the paper: Searching for Best Practices in Retrieval-Augmented Generation (EMNLP2024)

34721Shell, PythonJun 29, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2024searching,
  title  = {Searching for Best Practices in Retrieval-Augmented Generation},
  author = {Xiaohua Wang and Zhenghua Wang and Xuan Gao and Feiran Zhang and Yixin Wu and Zhibo Xu and Tianyuan Shi and Zhengyuan Wang and Shizheng Li and Qi Qian and Ruicheng Yin and Changze Lv and Xiaoqing Zheng and Xuanjing Huang},
  year   = {2024},
  eprint = {2407.01219},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.01219v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.01219.svg)](https://codeofpaper.com/paper/2407.01219)

Discussion