Saved in:
Bibliographic Details
Main Authors: Levy, Shahar, Mazor, Nir, Shalmon, Lihi, Hassid, Michael, Stanovsky, Gabriel
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.04388
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917106779422720
author Levy, Shahar
Mazor, Nir
Shalmon, Lihi
Hassid, Michael
Stanovsky, Gabriel
author_facet Levy, Shahar
Mazor, Nir
Shalmon, Lihi
Hassid, Michael
Stanovsky, Gabriel
contents Retrieval-Augmented Generation (RAG) enhances the accuracy of Large Language Model (LLM) responses by leveraging relevant external documents during generation. Although previous studies noted that retrieving many documents can degrade performance, they did not isolate how the quantity of documents affects performance while controlling for context length. We evaluate various language models on custom datasets derived from a multi-hop QA task. We keep the context length and position of relevant information constant while varying the number of documents, and find that increasing the document count in RAG settings poses significant challenges for most LLMs, reducing performance by up to 20%. However, Qwen2.5 maintained consistent results across increasing document counts, indicating better multi-document handling capability. Finally, our results indicate that processing multiple documents is a separate challenge from handling long contexts. We also make the datasets and code available: https://github.com/shaharl6000/MoreDocsSameLen .
format Preprint
id arxiv_https___arxiv_org_abs_2503_04388
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle More Documents, Same Length: Isolating the Challenge of Multiple Documents in RAG
Levy, Shahar
Mazor, Nir
Shalmon, Lihi
Hassid, Michael
Stanovsky, Gabriel
Computation and Language
Retrieval-Augmented Generation (RAG) enhances the accuracy of Large Language Model (LLM) responses by leveraging relevant external documents during generation. Although previous studies noted that retrieving many documents can degrade performance, they did not isolate how the quantity of documents affects performance while controlling for context length. We evaluate various language models on custom datasets derived from a multi-hop QA task. We keep the context length and position of relevant information constant while varying the number of documents, and find that increasing the document count in RAG settings poses significant challenges for most LLMs, reducing performance by up to 20%. However, Qwen2.5 maintained consistent results across increasing document counts, indicating better multi-document handling capability. Finally, our results indicate that processing multiple documents is a separate challenge from handling long contexts. We also make the datasets and code available: https://github.com/shaharl6000/MoreDocsSameLen .
title More Documents, Same Length: Isolating the Challenge of Multiple Documents in RAG
topic Computation and Language
url https://arxiv.org/abs/2503.04388