Online-Optimized RAG for Tool Use and Function Calling
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
also in 1 more
Abstract (arXiv)
In many applications, retrieval-augmented generation (RAG) drives tool use and function calling by embedding the (user) queries and matching them to pre-specified tool/function descriptions. In this paper, we address an embedding misalignment issue that often arises in practical applications due to imperfect embedding models or noisy descriptions; such misalignment may lead to incorrect retrieval and task failure. We introduce Online-Optimized RAG, a deployment-time framework that continually adapts retrieval embeddings from live interactions using minimal feedback (e.g., task success). Online-Optimized RAG applies lightweight online gradient updates with negligible per-query latency and requires no changes to the underlying LLM. The method is plug-and-play: it supports both single- and multi-hop tool use, dynamic tool inventories, and K-retrieval with re-ranking. We provide a problem-dependent theoretical analysis that quantifies how the method's performance depends on the initialization quality of the embeddings and other related quantities. Across diverse tool-use and document-retrieval scenarios, our Online-Optimized RAG consistently improves tool selection accuracy and end-task success, thus providing a simple, practical path to robust, self-improving RAG systems.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 24 of its 44 references that are in the map. First posted on arXiv 24 Sep 2025.
Builds on
24 of 44 references.
References · 24
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,190
- 2019Introduction to Online Convex Optimizationcited by 803
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 591
- 2024Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexitycited by 451
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 240
12 more
- 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 159
- 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 154
- 2023Quantifying Uncertainty in Answers from any Language Model and Enhancing their Trustworthinesscited by 122
- 2024Planning, Creation, Usage: Benchmarking LLMs for Comprehensive Tool Utilization in Real-World Complex Scenarioscited by 86
- 2024Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approachcited by 76
- 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 74
- 2024MBA-RAG: a Bandit Approach for Adaptive Retrieval-Augmented Generation through Question Complexitycited by 29
- 2024Toolshed: Scale Tool-Equipped Agents with Advanced RAG-Tool Fusion and Tool Knowledge Basescited by 23
- 2024NUDGE: Lightweight Non-Parametric Fine-Tuning of Embeddings for Retrievalcited by 5
- 2025Query Drift Compensation: Enabling Compatibility in Continual Learning of Retrieval Embedding Modelscited by 5
- 2025FLAIR: Feedback Learning for Adaptive Information Retrievalcited by 4
- 2023ReFIT: Relevance Feedback from a Reranker during Inferencecited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026PhGPO: Pheromone-Guided Policy Optimization for Long-Horizon Tool Planningcited by 9
- 2026Multi-Field Tool Retrievalcited by 2
- 2026PhGPO: Pheromone-Guided Policy Optimization for Long-Horizon Tool Planning14 Feb 2026
- 2026Multi-Field Tool Retrieval5 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning
- 2025Fast or Better? Balancing Accuracy and Cost in Retrieval-Augmented Generation with Flexible User Control
- 2026Revisiting RAG Retrievers: An Information Theoretic Benchmark
- 2023Context Tuning for Retrieval Augmented Generation
- 2024Toward Optimal Search and Retrieval for RAG
- 2025An Analysis of Hyper-Parameter Optimization Methods for Retrieval Augmented Generation
- 2026RAISE: RAG Design as an Architecture Search Problem
- 2025Less Is More: Elevating RAG via Performance-Driven Context Compression