Contextualizing Search Queries In-Context Learning for Conversational Rewriting with LLMs

Raymond Wilson, Chase Carter, Cole Graham
2/20/2025
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Conversational query rewriting is crucial for effective conversational search, yet traditional supervised methods require substantial labeled data, which is scarce in low-resource settings. This paper introduces Prompt-Guided In-Context Learning, a novel approach that leverages the in-context learning capabilities of Large Language Models (LLMs) for few-shot conversational query rewriting. Our method employs carefully designed prompts, incorporating task descriptions, input/output format specifications, and a small set of illustrative examples, to guide pre-trained LLMs to generate context-independent queries without explicit fine-tuning. Extensive experiments on benchmark datasets, TREC and Taskmaster-1, demonstrate that our approach significantly outperforms strong baselines, including supervised models and contrastive co-training methods, across various evaluation metrics such as BLEU, ROUGE-L, Success Rate, and MRR. Ablation studies confirm the importance of in-context examples, and human evaluations further validate the superior fluency, relevance, and context utilization of our generated rewrites. The results highlight the potential of prompt-guided in-context learning as an efficient and effective paradigm for low-resource conversational query rewriting, reducing the reliance on extensive labeled data and complex training procedures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wilson2025contextualizing,
  title  = {Contextualizing Search Queries In-Context Learning for Conversational Rewriting with LLMs},
  author = {Raymond Wilson and Chase Carter and Cole Graham},
  year   = {2025},
  eprint = {2502.15009},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15009v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15009.svg)](https://codeofpaper.com/paper/2502.15009)

Discussion