Query Suggestion for Retrieval-Augmented Generation via Dynamic In-Context Learning
On the map: Retrieval-augmented generation → Agentic RAG, agents and memory
also in 1 more
Abstract (arXiv)
Retrieval-augmented generation with tool-calling agents (agentic RAG) has become increasingly powerful in understanding, processing, and responding to user queries. However, the scope of the grounding knowledge is limited and asking questions that exceed this scope may lead to issues like hallucination. While guardrail frameworks aim to block out-of-scope questions (Rodriguez et al., 2024), no research has investigated the question of suggesting answerable queries in order to complete the user interaction. In this paper, we initiate the study of query suggestion for agentic RAG. We consider the setting where user questions are not answerable, and the suggested queries should be similar to aid the user interaction. Such scenarios are frequent for tool-calling LLMs as communicating the restrictions of the tools or the underlying datasets to the user is difficult, and adding query suggestions enhances the interaction with the RAG agent. As opposed to traditional settings for query recommendations such as in search engines, ensuring that the suggested queries are answerable is a major challenge due to the RAG's multi-step workflow that demands a nuanced understanding of the RAG as a whole, which the executing LLM lacks. As such, we introduce robust dynamic few-shot learning which retrieves examples from relevant workflows. We show that our system can be self-learned, for instance on prior user queries, and is therefore easily applicable in practice. We evaluate our approach on three benchmark datasets based on two unlabeled question datasets collected from real-world user queries. Experiments on real-world datasets confirm that our method produces more relevant and answerable suggestions, outperforming few-shot and retrieval-only baselines, and thus enable safer, more effective user interaction with agentic RAG.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 21 of its 40 references that are in the map. First posted on arXiv 13 Jan 2026.
Builds on
21 of 40 references.
References · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2023Query Rewriting for Retrieval-Augmented Large Language Modelscited by 213
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 163
9 more
- 2020ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)cited by 58
- 2023Tree of Clarifications: Answering Ambiguous Questions with Retrieval-Augmented Large Language Modelscited by 43
- 2023Knowledge-Augmented Large Language Models for Personalized Contextual Query Suggestioncited by 43
- 2021Memorisation versus Generalisation in Pre-trained Language Modelscited by 32
- 2021Evaluating User Perception of Speech Recognition System Quality with Semantic Distance Metriccited by 21
- 2024Dynamic Contexts for Generating Suggestion Questions in RAG Based Conversational Systemscited by 7
- 2024Retrieval Augmented Zero-Shot Text Classificationcited by 4
- 2017Generating Query Suggestions to Support Task-Based Searchcited by 2
- 2018Generating High-Quality Query Suggestion Candidates for Task-Based Searchcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Is Agentic RAG worth it? An experimental comparison of RAG approaches
- 2025Interact-RAG: Reason and Interact with the Corpus, Beyond Black-Box Retrieval
- 2026A-RAG: Scaling Agentic Retrieval-Augmented Generation via Hierarchical Retrieval Interfaces
- 2025Am I on the Right Track? What Can Predicted Query Performance Tell Us about the Search Behaviour of Agentic RAG
- 2025Keyword search is all you need: Achieving RAG-Level Performance without vector databases using agentic tool use
- 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG
- 2024The Power of Noise: Redefining Retrieval for RAG Systems
- 2026Test-Time Strategies for More Efficient and Accurate Agentic RAG