Streamlining Repository Tasks with Effective Snippet Retrieval
Repository-level software engineering tasks are increasingly automated using repo-level retrieval-augmented generation (RLRAG), where a retriever selects relevant snippets from a repository to assist a language model (LM) in completing tasks. However, existing retrievers often lack effective designs to support LMs of varying capacities. To bridge this gap, we introduce RepoET, a novel retriever for RLRAG. RepoET organizes LMs and tools into an agentic workflow that closely mimics human search logic: “ search-files \(\to\) filter-files \(\to\) search-snippets \(\to\) filter-snippets ”. In our evaluation, RepoET outperformed state-of-the-art retrievers by accurately retrieving more relevant snippets in a better order across two widely used datasets, SWE-bench Lite and RepoQA, utilizing four LMs of different capabilities and sizes (as small as 3B). RepoET improved recall by over 12% and precision by over 20%, yielding a 21% improvement in Acc@k, along with superior snippet ordering. These retrieval improvements led to significant gains in downstream tasks: (1) we resolved 136 issues (45.33%) in SWE-bench Lite with GPT-4o without any additional information, and further improved the success rate by \(\sim\) 12% with multiple attempts; (2) we improved the accuracy of searching for designated functions by over 23% in RepoQA.
Authors
- Peng Di (ORCID: https://orcid.org/0000-0002-5799-5876)
- Zhaogui Xu (ORCID: https://orcid.org/0009-0009-3975-2481)
- Chang Xu (ORCID: https://orcid.org/0000-0002-6299-4704)
- Yuan Yao (ORCID: https://orcid.org/0000-0002-6913-6542)
- Zhendong Su (ORCID: https://orcid.org/0000-0002-2970-1391)
- Cong Li (ORCID: https://orcid.org/0000-0002-9576-100X)
- Xiaorui Zhu (ORCID: https://orcid.org/0000-0002-5368-4480)
- Yanyan Jiang (ORCID: https://orcid.org/0000-0001-7651-9560)
- Feng Xu (ORCID: https://orcid.org/0000-0003-3347-7510)
- Tangzhi Xu (ORCID: https://orcid.org/0009-0005-0438-5299)
Institutions
- ETH Zurich (CH)
- Nanjing Xiaozhuang University (CN)
- Antea Group (France) (FR)
- Nanjing University (CN)
Publication Details
- Journal
- ACM Transactions on Software Engineering and Methodology
- Published
- 2026-06-26
- DOI
- https://doi.org/10.1145/3821433
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00