A RAG Method for Source Code Inquiry Tailored to Long-Context LLMs
On the map: Retrieval-augmented generation → RAG for code
Abstract (arXiv)
Although the context length limitation of large language models (LLMs) has been mitigated, it still hinders their application to software development tasks. This study proposes a method incorporating execution traces into RAG for inquiries about source code. Small-scale experiments confirm a tendency for the method to contribute to improving LLM response quality.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 6 of its 7 references that are in the map. First posted on arXiv 9 Apr 2024.
Builds on
6 of 7 references.
References · 6
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Using an LLM to Help With Code Understandingcited by 222
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 150
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 38
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
- 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answering
- 2025WIP: Leveraging LLMs for Enforcing Design Principles in Student Code: Analysis of Prompting Strategies and RAG ↗
- 2025Augmenting Large Language Models with Static Code Analysis for Automated Code Quality Improvements
- 2024Are LLMs Correctly Integrated into Software Systems?
- 2024Long Context RAG Performance of Large Language Models
- 2025When LLMs Meet API Documentation: Can Retrieval Augmentation Aid Code Generation Just as It Helps Developers?