scimeatlas

Research map / Large language models / Retrieval and knowledge

CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion

Sheng Zhang, Yifan Ding, Shuquan Lian, Shun Song, Hui Li

EMNLP 2025Large language models › Retrieval and knowledgeapproach: RAG robustness and evaluationopen problems in this approach32 citations (OpenAlex)

Xiamen University · Ant Group

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
6improved
1no clear effect
3hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use CodeRAG instead of best baseline DraCoQwen2.5-Coder-7B · ReccEval (100%)code match EM: 39.99 -> 47.48Improved
use CodeRAG instead of DraCoCodeGen-350M · ReccEval (100%)code match EM: 23.96 (RepoCoder, best baseline) -> 26.81Improved
add LLM reranker to multi-path retrieval (ablation)CodeRAG · ReccEval (100%)code match EM (SantaCoder-1.1B): 27.70 -> 36.17Improved
add sparse retrieval to dataflow retrieval (ablation)CodeRAG · ReccEval (100%)code match EM (Qwen2.5-Coder-7B): 41.86 -> 44.21Improved
use distilled reranker instead of LLM reranker (ablation)CodeRAG · ReccEval (30%)code match EM (CodeGen-350M): 27.73 -> 23.58Hurt
use proposed query construction instead of last 1 line (ablation)CodeRAG sparse · ReccEval (100%)code match EM (Qwen2.5-Coder-7B): 32.08 -> 35.01Improved
use RepoFormer-3B with only left contextRepoFormer-3B · ReccEvalcode match EM: 12.88Hurt
increase retained reranked pieces u from 5 to 10 (ablation)CodeRAG · ReccEval (100%)EM/ESNo clear effect
increase retained reranked pieces u from 1 to 3 (ablation)CodeRAG · ReccEval (100%)EM/ESImproved
use CodeRAG instead of DraCo (efficiency)CodeRAG · ReccEval query costseconds per query: 0.04 -> 0.23Hurt

Open problems in RAG robustness and evaluation

When does retrieval help a language model, and when does it mislead it?

All 4 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy