RAGdeterm: Deterministic retrieval-augmented generation for code generation

Read full text
Authors: A. Bochenek, J. Protasiewicz, W. Pedrycz
Cited by: 1
References: 5

Abstract

Large language models (LLMs) are increasingly used in software development, yet effective code generation requires reliable access to up-to-date project-specific source code. This paper introduces RAGdeterm, a deterministic Retrieval-Augmented Generation approach proposed as an alternative to embedding-based RAG architectures. RAGdeterm enriches prompts using a relational database that explicitly represents object-oriented code structures and dependencies, rather than vector embeddings and similarity search. This design enables deterministic and repeatable retrieval of contextual information and avoids probabilistic retrieval mechanisms. RAGdeterm is positioned as an alternative to traditional, enhanced, and agentic RAG approaches in software engineering where predictability and reproducibility are important.

Fields of Study & Subjects

Software Engineering Research Algorithms and Data Compression Natural Language Processing Techniques

Publication details

Journal / source
SoftwareX
Publisher
Elsevier BV
Volume
34
Pages
102636–102636
Publication date
10 April 2026
Language
EN