JOURNAL ARTICLE

Query Rewriting in Retrieval-Augmented Large Language Models

Abstract

Large Language Models (LLMs) play powerful, black-box readers in the retrieve-then-read pipeline, making remarkable progress in knowledge-intensive tasks. This work introduces a new framework, Rewrite-Retrieve-Read instead of the previous retrieve-then-read for the retrieval-augmented LLMs from the perspective of the query rewriting. Unlike prior studies focusing on adapting either the retriever or the reader, our approach pays attention to the adaptation of the search query itself, for there is inevitably a gap between the input text and the needed knowledge in retrieval. We first prompt an LLM to generate the query, then use a web search engine to retrieve contexts. Furthermore, to better align the query to the frozen modules, we propose a trainable scheme for our pipeline. A small language model is adopted as a trainable rewriter to cater to the black-box LLM reader. The rewriter is trained using the feedback of the LLM reader by reinforcement learning. Evaluation is conducted on downstream tasks, open-domain QA and multiple-choice QA. Experiments results show consistent performance improvement, indicating that our framework is proven effective and scalable, and brings a new framework for retrieval-augmented LLM.

Keywords:
Computer science Pipeline (software) Information retrieval Rewriting Query expansion Scalability Query language Language model Scheme (mathematics) Adaptation (eye) Domain (mathematical analysis) Natural language processing Programming language Database

Metrics

137
Cited By
35.00
FWCI (Field Weighted Citation Impact)
46
Refs
1.00
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Topic Modeling
Physical Sciences →  Computer Science →  Artificial Intelligence
Natural Language Processing Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence
Multimodal Machine Learning Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition

Related Documents

JOURNAL ARTICLE

MaFeRw: Query Rewriting with Multi-Aspect Feedbacks for Retrieval-Augmented Large Language Models

Yujing WangHainan ZhangLiang PangBinghui GuoHongwei ZhengZhiming Zheng

Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Year: 2025 Vol: 39 (24)Pages: 25434-25442
JOURNAL ARTICLE

Interactive Image Retrieval Meets Query Rewriting with Large Language and Vision Language Models

Hongyi ZhuJia-Hong HuangYixian ShenStevan RudinacEvangelos Kanoulas

Journal:   ACM Transactions on Multimedia Computing Communications and Applications Year: 2025
BOOK-CHAPTER

Enhanced Large Language Models-based Legal Query Responses through Retrieval Augmented Generation

Ruiteng Li

Advances in intelligent systems research/Advances in Intelligent Systems Research Year: 2024 Pages: 237-244
© 2026 ScienceGate Book Chapters — All rights reserved.