Query Expansion by Prompting Large Language Models
About
Query expansion is a widely used technique to improve the recall of search systems. In this paper, we propose an approach to query expansion that leverages the generative abilities of Large Language Models (LLMs). Unlike traditional query expansion approaches such as Pseudo-Relevance Feedback (PRF) that relies on retrieving a good set of pseudo-relevant documents to expand queries, we rely on the generative and creative abilities of an LLM and leverage the knowledge inherent in the model. We study a variety of different prompts, including zero-shot, few-shot and Chain-of-Thought (CoT). We find that CoT prompts are especially useful for query expansion as these prompts instruct the model to break queries down step-by-step and can provide a large number of terms related to the original query. Experimental results on MS-MARCO and BEIR demonstrate that query expansions generated by LLMs can be more powerful than traditional query expansion methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Information Retrieval | BEIR | SciFact0.742 | 174 | |
| Information Retrieval | BEIR v1.0.0 (test) | -- | 75 | |
| Question Answering | WebQA | -- | 64 | |
| Tool Calling | API-Bank L-1 | -- | 46 | |
| Information Retrieval | TREC DL 2019 | nDCG@1068.3 | 43 | |
| Information Retrieval | TREC DL 2020 | nDCG@1064.2 | 43 | |
| Information Retrieval | SciFact BEIR | NDCG@1070.9 | 36 | |
| Information Retrieval | TREC-COVID BEIR | NDCG@1071.5 | 27 | |
| Information Retrieval | DBPedia-Entity BEIR | NDCG@1037.8 | 27 | |
| Question Answering | NaturalQA | EM37.17 | 26 |