Cache Mechanism for Agent RAG Systems
Preprint
Abstract
Recent advances in Large Language Model (LLM)-based agents have been propelled by Retrieval-Augmented Generation (RAG), which grants the models access to vast external knowledge bases. Despite RAG's success in improving agent performance, agent-level cache management, particularly constructing, maintaining, and updating a compact, relevant corpus dynamically tailored to each agent's need, remains underexplored. Therefore, we introduce ARC (Agent RAG Cache Mechanism), a novel, annotation-free caching framework that dynamically manages small, high-value corpora for each agent. By synthesizing historical query distribution patterns with the intrinsic geometry of cached items in the embedding space, ARC automatically maintains a high-relevance cache. With comprehensive experiments on three retrieval datasets, our experimental results demonstrate that ARC reduces storage requirements to 0.015% of the original corpus while offering up to 79.8% has-answer rate and reducing average retrieval latency by 80%. Our results demonstrate that ARC can drastically enhance efficiency and effectiveness in RAG-powered LLM agents.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- OmniRouter: Budget and Performance Controllable Multi-LLM RoutingACM SIGKDD Explorations Newsletter, 2025
- The Faiss LibraryIEEE Transactions on Big Data, 2025
- Accelerating Retrieval-Augmented Generation2025
- 4bit-Quantization in Vector-Embedding for RAG2024
- GPTCache: An Open-Source Semantic Cache for LLM Applications Enabling Faster Answers and Cost Savings2023
- Balance Act: Mitigating Hubness in Cross-Modal Retrieval with Query and Gallery Banks2023
- SimCSE: Simple Contrastive Learning of Sentence Embeddings2021
- Billion-Scale Similarity Search with GPUsIEEE Transactions on Big Data, 2019
- The Role of Hubness in Clustering High-Dimensional DataIEEE Transactions on Knowledge and Data Engineering, 2013
- Answering Physicians' Clinical Questions: Obstacles and Potential SolutionsJournal of the American Medical Informatics Association, 2005