ARAGOG: Advanced RAG Output Grading

Matouš Eibich, Shivay Nagpal, Alexander Fred-Ojala
4/1/2024
cs.CLcs.IR

Official code: predlico/ARAGOG (115 stars, last commit 2024-04-15).

Abstract

Retrieval-Augmented Generation (RAG) is essential for integrating external knowledge into Large Language Model (LLM) outputs. While the literature on RAG is growing, it primarily focuses on systematic reviews and comparisons of new state-of-the-art (SoTA) techniques against their predecessors, with a gap in extensive experimental comparisons. This study begins to address this gap by assessing various RAG methods' impacts on retrieval precision and answer similarity. We found that Hypothetical Document Embedding (HyDE) and LLM reranking significantly enhance retrieval precision. However, Maximal Marginal Relevance (MMR) and Cohere rerank did not exhibit notable advantages over a baseline Naive RAG system, and Multi-query approaches underperformed. Sentence Window Retrieval emerged as the most effective for retrieval precision, despite its variable performance on answer similarity. The study confirms the potential of the Document Summary Index as a competent retrieval approach. All resources related to this research are publicly accessible for further investigation through our GitHub repository ARAGOG (https://github.com/predlico/ARAGOG). We welcome the community to further this exploratory study in RAG systems.

View on arXivView PDF

Code Implementations(1)

predlico/ARAGOGOfficial100%

ARAGOG- Advanced RAG Output Grading. Exploring and comparing various Retrieval-Augmented Generation (RAG) techniques on AI research papers dataset. Includes modular code for easy experimentation and reusability.

1158Python, Jupyter NotebookFeb 29, 20242 years ago

Similar Papers

Cite this paper

@article{eibich2024aragog,
  title  = {ARAGOG: Advanced RAG Output Grading},
  author = {Matouš Eibich and Shivay Nagpal and Alexander Fred-Ojala},
  year   = {2024},
  eprint = {2404.01037},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.01037v1}
}

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

Discussion