QueryGym: A Toolkit for Reproducible LLM-Based Query Reformulation
Not on the map. Why?
Abstract (arXiv)
We present QueryGym, a lightweight, extensible Python toolkit that supports large language model (LLM)-based query reformulation. This is an important tool development since recent work on llm-based query reformulation has shown notable increase in retrieval effectiveness. However, while different authors have sporadically shared the implementation of their methods, there is no unified toolkit that provides a consistent implementation of such methods, which hinders fair comparison, rapid experimentation, consistent benchmarking and reliable deployment. QueryGym addresses this gap by providing a unified framework for implementing, executing, and comparing llm-based reformulation methods. The toolkit offers: (1) a Python API for applying diverse LLM-based methods, (2) a retrieval-agnostic interface supporting integration with backends such as Pyserini and PyTerrier, (3) a centralized prompt management system with versioning and metadata tracking, (4) built-in support for benchmarks like BEIR and MS MARCO, and (5) a completely open-source extensible implementation available to all researchers. QueryGym is publicly available at https://github.com/radinhamidi/QueryGym.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 6 of its 20 references that are in the map. First posted on arXiv 20 Nov 2025.
Builds on
6 of 20 references.
References · 6
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2020Declarative Experimentation in Information Retrieval using PyTerriercited by 30
- 2023Generative Query Reformulation for Effective Adhoc Searchcited by 24
- 2024GenQREnsemble: Zero-Shot LLM Ensemble Prompting for Generative Query Reformulationcited by 23
- 2024Exploring the Best Practices of Query Expansion with Large Language Modelscited by 17
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026A Reproducibility Study of LLM-Based Query Reformulationcited by 2
- 2026A Picture of Agentic Searchcited by 1
- 2026Can QPP Choose the Right Query Variant? Evaluating Query Variant Selection for RAG Pipelinescited by 1
- 2026ADORE: Iterative Query Expansion with Retrieval-Grounded Relevance Feedbackcited by 1
- 2026A Systematic Study of Pseudo-Relevance Feedback with LLMscited by 0
- 2026ADORE: Iterative Query Expansion with Retrieval-Grounded Relevance Feedback11 Jun 2026
- 2026A Reproducibility Study of LLM-Based Query Reformulation30 Apr 2026
- 2026Can QPP Choose the Right Query Variant? Evaluating Query Variant Selection for RAG Pipelines24 Apr 2026
- 2026A Systematic Study of Pseudo-Relevance Feedback with LLMs11 Mar 2026
- 2026A Picture of Agentic Search19 Feb 2026