BERGEN: A Benchmarking Library for Retrieval-Augmented Generation

David Rau, Hervé Déjean, Nadezhda Chirkova, Thibault Formal, Shuai Wang +2 more
7/1/2024
cs.CLcs.IR

Official code: naver/bergen (276 stars, last commit 2026-03-11).

Abstract

Retrieval-Augmented Generation allows to enhance Large Language Models with external knowledge. In response to the recent popularity of generative LLMs, many RAG approaches have been proposed, which involve an intricate number of different configurations such as evaluation datasets, collections, metrics, retrievers, and LLMs. Inconsistent benchmarking poses a major challenge in comparing approaches and understanding the impact of each component in the pipeline. In this work, we study best practices that lay the groundwork for a systematic evaluation of RAG and present BERGEN, an end-to-end library for reproducible research standardizing RAG experiments. In an extensive study focusing on QA, we benchmark different state-of-the-art retrievers, rerankers, and LLMs. Additionally, we analyze existing RAG metrics and datasets. Our open-source library BERGEN is available under \url{https://github.com/naver/bergen}.

View on arXivView PDF

Code Implementations(1)

naver/bergenOfficial100%

Benchmarking library for RAG

27633Shell, PythonMay 9, 20247 months agoNOASSERTION
augmentationgenerationllmsragretrieval

Similar Papers

Cite this paper

@article{rau2024bergen,
  title  = {BERGEN: A Benchmarking Library for Retrieval-Augmented Generation},
  author = {David Rau and Hervé Déjean and Nadezhda Chirkova and Thibault Formal and Shuai Wang and Vassilina Nikoulina and Stéphane Clinchant},
  year   = {2024},
  eprint = {2407.01102},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.01102v1}
}

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.01102.svg)](https://codeofpaper.com/paper/2407.01102)

Discussion