Optimizing Chunk Size in Retrieval-Augmented Generation (RAG) Pipelines for Enhanced API Latency

Abstract: Retrieval-Augmented Generation (RAG) has become the standard architecture for integrating large language models (LLMs) with custom knowledge bases. However, in production environments, API latency remains a critical bottleneck. This study investigates the impact of document chunk size on the overall response time of a Naive RAG pipeline. By evaluating three distinct token configurations (250, 500, and 1000) using FAISS and Google's Gemini models, we identify an optimal "sweet spot" that balances vector search efficiency with LLM context processing overhead.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-08-24
DOI
https://doi.org/10.5281/zenodo.22081149
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Chunk Size in Retrieval-Augmented Generation (RAG) Pipelines for Enhanced API Latency

Shahzad Akbar
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
article

Optimizing Chunk Size in Retrieval-Augmented Generation (RAG) Pipelines for Enhanced API Latency

Shahzad Akbar
article en

Abstract

Abstract: Retrieval-Augmented Generation (RAG) has become the standard architecture for integrating large language models (LLMs) with custom knowledge bases. However, in production environments, API latency remains a critical bottleneck. This study investigates the impact of document chunk size on the overall response time of a Naive RAG pipeline. By evaluating three distinct token configurations (250, 500, and 1000) using FAISS and Google's Gemini models, we identify an optimal "sweet spot" that balances vector search efficiency with LLM context processing overhead.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 7%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Optimizing Chunk Size in Retrieval-Augmented Generation (RAG) Pipelines for Enhanced API Latency — Shahzad Akbar · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS