Introducing a new hyper-parameter for RAG: Context Window Utilization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Juvekar, Kush, Purwar, Anupam
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914914607562752
author Juvekar, Kush
Purwar, Anupam
author_facet Juvekar, Kush
Purwar, Anupam
contents This paper introduces a new hyper-parameter for Retrieval-Augmented Generation (RAG) systems called Context Window Utilization. RAG systems enhance generative models by incorporating relevant information retrieved from external knowledge bases, improving the factual accuracy and contextual relevance of generated responses. The size of the text chunks retrieved and processed is a critical factor influencing RAG performance. This study aims to identify the optimal chunk size that maximizes answer generation quality. Through systematic experimentation, we analyze the effects of varying chunk sizes on the efficiency and effectiveness of RAG frameworks. Our findings reveal that an optimal chunk size balances the trade-off between providing sufficient context and minimizing irrelevant information. These insights are crucial for enhancing the design and implementation of RAG systems, underscoring the importance of selecting an appropriate chunk size to achieve superior performance.
format Preprint
id arxiv_https___arxiv_org_abs_2407_19794
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Introducing a new hyper-parameter for RAG: Context Window Utilization
Juvekar, Kush
Purwar, Anupam
Computation and Language
Emerging Technologies
This paper introduces a new hyper-parameter for Retrieval-Augmented Generation (RAG) systems called Context Window Utilization. RAG systems enhance generative models by incorporating relevant information retrieved from external knowledge bases, improving the factual accuracy and contextual relevance of generated responses. The size of the text chunks retrieved and processed is a critical factor influencing RAG performance. This study aims to identify the optimal chunk size that maximizes answer generation quality. Through systematic experimentation, we analyze the effects of varying chunk sizes on the efficiency and effectiveness of RAG frameworks. Our findings reveal that an optimal chunk size balances the trade-off between providing sufficient context and minimizing irrelevant information. These insights are crucial for enhancing the design and implementation of RAG systems, underscoring the importance of selecting an appropriate chunk size to achieve superior performance.
title Introducing a new hyper-parameter for RAG: Context Window Utilization
topic Computation and Language
Emerging Technologies
url https://arxiv.org/abs/2407.19794