RAGCacheSim: A discrete-event simulator for evaluating caching strategies in Retrieval-Augmented Generation systems

Retrieval-Augmented Generation (RAG) systems enhance large language models (LLMs) with external knowledge retrieval but incur significant compute and latency costs. In distributed RAG deployments, semantically similar queries routed to different nodes — each with its own cache — can lead to redundant processing. We present RAGCacheSim , a discrete-event simulator for evaluating caching strategies such as Centralized Exact-match Cache (CEC), Independent Semantic Caches (IC), and Distributed Semantic Cache Coordination (DSC). It reports metrics like cache hit rate, average query latency, and coordination overhead. Built using SimPy , FastEmbed , and pybloom_live , it helps researchers optimize distributed RAG architectures. • RAGCacheSim is a discrete-event simulator for distributed RAG caching strategies. • Supports CEC, IC, and DSC cache architectures with configurable workloads. • Provides detailed metrics: cache hit rate, latency, and coordination overhead. • Enables reproducible benchmarking and optimization of RAG deployments. • Open-source Python tool built on SimPy, FastEmbed, and pybloom_live.

Authors

Institutions

Publication Details

Journal
Software Impacts
Published
2025-09-01
DOI
https://doi.org/10.1016/j.simpa.2025.100783
Primary Topic
Caching and Content Delivery
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

RAGCacheSim: A discrete-event simulator for evaluating caching strategies in Retrieval-Augmented Generation systems

Tatsat R. Patel, Hardik Ruparel
Software Impacts
Caching and Content Delivery
article

RAGCacheSim: A discrete-event simulator for evaluating caching strategies in Retrieval-Augmented Generation systems

Tatsat R. Patel, Hardik Ruparel
article en

Abstract

Retrieval-Augmented Generation (RAG) systems enhance large language models (LLMs) with external knowledge retrieval but incur significant compute and latency costs. In distributed RAG deployments, semantically similar queries routed to different nodes — each with its own cache — can lead to redundant processing. We present RAGCacheSim , a discrete-event simulator for evaluating caching strategies such as Centralized Exact-match Cache (CEC), Independent Semantic Caches (IC), and Distributed Semantic Cache Coordination (DSC). It reports metrics like cache hit rate, average query latency, and coordination overhead. Built using SimPy , FastEmbed , and pybloom_live , it helps researchers optimize distributed RAG architectures. • RAGCacheSim is a discrete-event simulator for distributed RAG caching strategies. • Supports CEC, IC, and DSC cache architectures with configurable workloads. • Provides detailed metrics: cache hit rate, latency, and coordination overhead. • Enables reproducible benchmarking and optimization of RAG deployments. • Open-source Python tool built on SimPy, FastEmbed, and pybloom_live.

Software ImpactsVol. 26
Film Independent (US)
Openalex Percentile: Top 74%
Caching and Content Delivery
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.

RAGCacheSim: A discrete-event simulator for evaluating caching strategies in Retrieval-Augmented Generation systems — Tatsat R. Patel, Hardik Ruparel · Software Impacts (2025) | TGRS Research Map | TGRS