Pre-retrieval Query Clustering for Adaptive Top-k Document Retrieval in RAG Systems
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
RAG systems commonly retrieve a fixed number of documents (top-k) to ground generation, but this static approach is brittle: simple queries suffer over-retrieval (adding noise and cost) while complex queries are under-retrieved, causing recall failures that cascade into incorrect answers. Motivated by the question of how many documents must be retrieved to answer an arbitrary query reliably, we propose a practical, general framework for query-adaptive retrieval depth. Offline, we estimate per-query retrieval difficulty by measuring NDCG under the default retriever and deriving a query-specific saturation point k* from the NDCG-k curve. Because computing these signals online is expensive, we cluster a large set of queries in embedding space and summarize each cluster with a recommended retrieval depth that targets high coverage (e.g., ~95%) using a mean-plus-variance rule. At runtime, the system assigns an incoming query to a cluster and selects the corresponding top-k in constant time. Compared with post-retrieval confidence methods that rely on clustering retrieved documents, our approach is pre-retrieval and query-centric, making it robust in heterogeneous, case-like corpora and applicable across domains such as legal, healthcare, finance, and enterprise search. Finally, this framework has been tested in full-traffic queries that improved F1 by over 36% while reducing token usage by 14% on low-complexity clusters without accuracy loss.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 7 of its 28 references that are in the map. First posted on arXiv 11 Sep 2026.
Builds on
7 of 28 references.
Closest ancestors · 1
Same direction, newest first
Other references · 6
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
- 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applicationscited by 22
- 2022Experiments on Generalizability of BERTopic on Multi-Domain Short Textcited by 9
- 2023Query-specific Variable Depth Pooling via Query Performance Prediction towards Reducing Relevance Assessment Effortcited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025CaGR-RAG: Context-aware Query Grouping for Disk-based Vector Search in RAG Systems
- 2025From Static to Dynamic: A Streaming RAG Approach to Real-time Knowledge Base
- 2025Efficient Dynamic Clustering-Based Document Compression for Retrieval-Augmented-Generation
- 2026Tail-Aware Adaptive-k: Query-Adaptive Context Selection for Retrieval-Augmented Generation
- 2026One Retrieval to Cover Them All: Co-occurrence-Aware Knowledge Base Reorganization for Session-Level RAG
- 2026KohakuRAG: A simple RAG framework with hierarchical document indexing
- 2024SAKR: Enhancing Retrieval-Augmented Generation via Streaming Algorithm and K-Means Clustering
- 2026Cost-Aware Query Routing in RAG: Empirical Analysis of Retrieval Depth Tradeoffs