RAILS: Retrieval-Augmented Intelligence for Learning Software Development
On the map: Retrieval-augmented generation → RAG for code
Abstract (arXiv)
Large Language Models (LLMs) like GPT-3.5-Turbo are increasingly used to assist software development, yet they often produce incomplete code or incorrect imports, especially when lacking access to external or project-specific documentation. We introduce RAILS (Retrieval-Augmented Intelligence for Learning Software Development), a framework that augments LLM prompts with semantically retrieved context from curated Java resources using FAISS and OpenAI embeddings. RAILS incorporates an iterative validation loop guided by compiler feedback to refine suggestions. We evaluated RAILS on 78 real-world Java import error cases spanning standard libraries, GUI APIs, external tools, and custom utilities. Despite using the same LLM, RAILS outperforms baseline prompting by preserving intent, avoiding hallucinations, and surfacing correct imports even when libraries are unavailable locally. Future work will integrate symbolic filtering via PostgreSQL and extend support to other languages and IDEs.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 9 of its 20 references that are in the map. First posted on arXiv 28 Jun 2025.
Builds on
9 of 20 references.
References · 9
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 152
- 2022Retrieval-Augmented Reinforcement Learningcited by 53
- 2019Analyzing and Supporting Adaptation of Online Code Examplescited by 8
- 2024ZS4C: Zero-Shot Synthesis of Compilable Code for Incomplete Code Snippets using LLMscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025LLM Program Optimization via Retrieval Augmented Search
- 2024CodeGRAG: Bridging the Gap between Natural Language and Programming Language via Graphical Retrieval Augmented Generation
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphs
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2025When LLMs Meet API Documentation: Can Retrieval Augmentation Aid Code Generation Just as It Helps Developers?
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation