RAG for code
Key facts. RAG for code: 109 papers on arXiv since 2020 (data through 7 Oct 2026). 30 of its 109 mapped papers (28%) cite “Retrieval Augmented Code Generation and Summarization” (2021, arXiv 2108.11601). 24 of its 109 mapped papers (22%) cite “ReACC: A Retrieval-Augmented Code Completion Framework” (2022, arXiv 2203.07722).
What’s new
Nothing new since 17 Sep. Latest: 10 Sep 2026.
Foundations
Most cited by papers here
- Retrieval Augmented Code Generation and Summarization2021cited by 30 here
- ReACC: A Retrieval-Augmented Code Completion Framework2022cited by 24 here
- Repoformer: Selective Retrieval for Repository-Level Code Completion2024cited by 14 here
- CodeRAG-Bench: Can Retrieval Augment Code Generation?2024cited by 11 here
- RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair2023cited by 10 here
Lineage
The papers this direction builds on, oldest first.
Each paper on the line cites the one before.
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 14 here
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 57 here
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 4 here
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 5 here
- 2023In-Context Retrieval-Augmented Language Modelscited by 7 here
- 2023Active Retrieval Augmented Generationcited by 5 here
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 8 here
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 11 here
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 6 here
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 5 here
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 4 here
13 more it builds on, not in this chain
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 8 here
- 2021Retrieval Augmented Code Generation and Summarizationcited by 30 here
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 24 here
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 5 here
- 2023RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repaircited by 10 here
- 2024EVOR: Evolving Retrieval for Code Generationcited by 9 here
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 14 here
- 2024FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completioncited by 6 here
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 4 here
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 9 here
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 11 here
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 6 here
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 4 here
The 24 most cited of 144.
Browse
30 of 109, ranked 6–35
- 6EVOR: Evolving Retrieval for Code Generation20249
- 7GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Model20249
- 8Retrieval-Augmented Generation for Code Summarization via Hybrid GNN20208
- 9An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities20256
- 10FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completion20246
- 11What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond20254
- 12Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches20254
- 13Prompt-based Code Completion via Multi-Retrieval Augmented Generation20244
- 14RTLRepoCoder: Repository-Level RTL Code Completion through the Combination of Fine-Tuning and Retrieval Augmentation20253
- 15cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree20253
All 30
- 16Impact-driven Context Filtering For Cross-file Code Completion20253
- 17CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion20253
- 18Improving Retrieval-Augmented Code Comment Generation by Retrieving for Generation20243
- 19Building A Coding Assistant via the Retrieval-Augmented Language Model20243
- 20Retrieval-Augmented Code Generation for Universal Information Extraction20233
- 21When LLMs Meet API Documentation: Can Retrieval Augmentation Aid Code Generation Just as It Helps Developers?20252
- 22GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation20252
- 23Towards Mitigating API Hallucination in Code Generated by LLMs with Hierarchical Dependency Aware20252
- 24ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation20252
- 25Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation20242
- 26Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation20242
- 27RACE: Retrieval-Augmented Commit Message Generation20222
- 28Learning from Execution: Self-Evolving Memory for Private-Library Code Generation20261
- 29Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generation20261
- 30CODEPROMPTZIP: Code-specific Prompt Compression for Retrieval-Augmented Generation in Coding Tasks with LMs20251
- 31ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement20251
- 32RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industry20251
- 33Across Programming Language Silos: A Study on Cross-Lingual Retrieval-augmented Code Generation20251
- 34Retrieval-Augmented Code Review Comment Generation20251
- 35SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localization20251