paper-with-me

홈 › Papers

Generation-Augmented Query Expansion For Code Retrieval

2022-12-20 · Dong Li, Yelong Shen, Ruoming Jin, Yi Mao, Kuan Wang, Weizhu Chen

Pre-trained language models have achieved promising success in code retrieval tasks, where a natural language documentation query is given to find the most relevant existing code snippet. However, existing models focus only on optimizing the documentation code pairs by embedding them into latent space, without the association of external knowledge. In this paper, we propose a generation-augmented query expansion framework. Inspired by the human retrieval process - sketching an answer before searching, in this work, we utilize the powerful code generation model to benefit the code retrieval task. Specifically, we demonstrate that rather than merely retrieving the target code snippet according to the documentation query, it would be helpful to augment the documentation query with its generation counterpart - generated code snippets from the code generation model. To the best of our knowledge, this is the first attempt that leverages the code generation model to enhance the code retrieval task. We achieve new state-of-the-art results on the CodeSearchNet benchmark and surpass the baselines significantly.

📄 PDF Abstract BibTeX arXiv:2212.10692

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationRetrieval

Similar Papers 제목 키워드 기반

BioRAGent: A Retrieval-Augmented Generation System for Showcasing Generative Query Expansion and Domain-Specific Search for Scientific Q&A

2024-12-16 · Samy Ateia, Udo Kruschwitz

We present BioRAGent, an interactive web-based retrieval-augmented generation (RAG) system for biomedical question answering. The system uses large language models (LLMs) for query expansion, snippet extraction, and answ…

Answer GenerationFew-Shot LearningQuestion AnsweringRAG+2

GQE-PRF: Generative Query Expansion with Pseudo-Relevance Feedback

2021-08-13 · Minghui Huang, Dong Wang, Shuang Liu, Meizhen Ding

Query expansion with pseudo-relevance feedback (PRF) is a powerful approach to enhance the effectiveness in information retrieval. Recently, with the rapid advance of deep learning techniques, neural text generation has …

Information RetrievalRerankingRetrievalText Generation

Benchmarking Retrieval Strategies for Biomedical Retrieval-Augmented Generation: A Controlled Empirical Study

2026-05-04 · Devi Prasad Bal, Subhashree Puhan arxiv

Retrieval-Augmented Generation (RAG) offers a well-established path to grounding large language model (LLM) outputs in external knowledge, yet the question of which retrieval strategy works best in a high-stakes domain s…

From BM25 to Corrective RAG: Benchmarking Retrieval Strategies for Text-and-Table Documents

2026-04-02 · Meftun Akarsu, Recep Kaan Karaman, Christopher Mierbach arxiv

Retrieval-Augmented Generation (RAG) systems critically depend on retrieval quality, yet no systematic comparison of modern retrieval methods exists for heterogeneous documents containing both text and tabular data. We b…

Beyond the Reranker: Do RAG Retrieval Enhancements Help Once a Strong Reranker Is Present?

2026-06-14 · Sadanand Singh, Allam Reddy, Manan Chopra arxiv

Retrieval-augmented generation (RAG) is routinely extended with methods meant to improve retrieval: query expansion, hierarchical and cross-document summarization, graph-based expansion, per-query routing, rank fusion, a…

Document Summarization