Retrieval-Augmented Software Engineering for Enterprise Codebases: Context-Aware Requirement Traceability, Bug Localization, and Developer Decision Support
DOI:
https://doi.org/10.63282/3050-9262.IJAIDSML-V5I4P130Keywords:
Retrieval-Augmented Generation, Software Engineering, Requirement Traceability, Bug Localization, Enterprise Codebases, Code Intelligence, Developer Decision Support, Software Governance, Hybrid Retrieval, Explainable AIAbstract
Enterprise software engineering increasingly operates under conditions of scale, regulatory exposure, architectural fragmentation, and accelerated delivery pressure. Large codebases are distributed across services, repositories, branches, build pipelines, requirements systems, incident records, design documents, and operational telemetry. In this setting, developers and engineering leaders must answer high-stakes questions: which code implements a requirement, where a defect is likely to be fixed, which architectural dependency explains a failure, and what decision is justified by available engineering evidence. This paper proposes RASE, a retrieval-augmented software engineering framework for context-aware requirement traceability, bug localization, and developer decision support in enterprise codebases. RASE treats software engineering artifacts as a governed, typed, versioned, and auditable knowledge substrate rather than a passive document collection. The framework combines hybrid lexical–dense retrieval, code-aware embeddings, dependency graphs, evidence ranking, retrieval-conditioned generation, and decision governance. Unlike generic retrieval-augmented generation pipelines, RASE introduces artifact-type aware chunking, traceability-preserving metadata, multi-hop retrieval over code and non-code artifacts, and evidence contracts that constrain generated recommendations to retrieved, inspectable sources. The paper presents a research design, architecture, operational workflow, and reproducible evaluation protocol for three core tasks: recovering requirement-to-code links, localizing buggy files from reports and incidents, and supporting developer decisions during design, change impact analysis, and release governance. The proposed evaluation emphasizes recall-oriented retrieval quality, developer-facing usefulness, provenance precision, latency, security, and organizational adoption. The contribution is a research-grade framework that integrates established information retrieval principles, modern code representation learning, secure software development governance, and AI-enabled lifecycle management into a unified enterprise software engineering method. RASE is positioned as an empirical artifact for future controlled industrial validation, with clearly defined research questions, hypotheses, metrics, ablation strategy, and threats to validity.
References
[1] Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
[2] Sivva, S. D., Thalakanti, R. R., Bandari, S. S. G., & Yettapu, S. D. R. (2023). AI-Driven Decision Intelligence for Agile Software Lifecycle Governance: An Architecture-Centered Framework Integrating Machine Learning Defect Prediction and Automated Testing. International Journal of Emerging Trends in Computer Science and Information Technology, 4(4), 167-172. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I4P118
[3] Antoniol, G., Canfora, G., Casazza, G., De Lucia, A., & Merlo, E. (2002). Recovering Traceability Links between Code and Documentation. IEEE Transactions on Software Engineering, 28(10), 970–983. https://doi.org/10.1109/TSE.2002.1041053
[4] Gudi, S. R. (2024). Design and Evaluation of Secure Microservices Architecture for HIPAA-Compliant Prescription Processing on AWS and OpenShift. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(2), 144-149. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I2P116
[5] Guo, D., Ren, S., Lu, S., Feng, Z., Tang, D., Liu, S., Zhou, L., Duan, N., Svyatkovskiy, A., Fu, S., Tufano, M., Deng, S. K., Clement, C., Drain, D., Sundaresan, N., Yin, J., Jiang, D., & Zhou, M. (2021). GraphCodeBERT: Pre-training Code Representations with Data Flow. International Conference on Learning Representations.
[6] Gunda, S. K. G. (2023). The Future of Software Development and the Expanding Role of ML Models. International Journal of Emerging Research in Engineering and Technology, 4(2), 126-129. https://doi.org/10.63282/3050-922X.IJERET-V4I2P113
[7] Robertson, S., & Zaragoza, H. (2009). The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval, 3(4), 333–389. https://doi.org/10.1561/1500000019
[8] Thalakanti, R. R., Goud Bandari, S. S., & Sivva, S. D. (2024). Federated Learning for Privacy Preserving Fraud Detection across Financial Institutions: Architecture Protocols and Operational Governance. International Journal of Emerging Research in Engineering and Technology, 5(2), 108-114. https://doi.org/10.63282/3050-922X.IJERET-V5I2P111
[9] Feng, Z., Guo, D., Tang, D., Duan, N., Feng, X., Gong, M., Shou, L., Qin, B., Liu, T., Jiang, D., & Zhou, M. (2020). CodeBERT: A Pre-Trained Model for Programming and Natural Languages. Findings of the Association for Computational Linguistics: EMNLP 2020, 1536–1547. https://doi.org/10.18653/v1/2020.findings-emnlp.139
[10] Mutyam, N. (2024). Graph-based modeling of service dependencies for predicting failure propagation in distributed systems. International Journal of Multidisciplinary Evolutionary Research, 5(1), 113–116. https://doi.org/10.54660/IJMER.2024.5.1.113-116
[11] Marcus, A., & Maletic, J. I. (2003). Recovering Documentation-to-Source-Code Traceability Links Using Latent Semantic Indexing. Proceedings of the 25th International Conference on Software Engineering, 125–135.
[12] Gudi, S. R. (2024). AI-Driven Fax-to-Digital Prescription Automation: A Cloud-Native Framework Using OCR, Machine Learning, and Microservices for Pharmacy Operations. International Journal of Emerging Research in Engineering and Technology, 5(1), 111-116. https://doi.org/10.63282/3050-922X.IJERET-V5I1P113
[13] Zhou, J., Zhang, H., & Lo, D. (2012). Where Should the Bugs Be Fixed? More Accurate Information Retrieval-Based Bug Localization Based on Bug Reports. Proceedings of the 34th International Conference on Software Engineering, 14–24. https://doi.org/10.1109/ICSE.2012.6227210
[14] Bandari, S. S. G., Sivva, S. D., & Thalakanti, R. R. (2024). Regulatory Grade Fraud Detection using Explainable Artificial Intelligence with Auditable Decision Pathways and Empirical Validation on Banking Data. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(3), 139-147. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I3P115
[15] Johnson, J., Douze, M., & Jégou, H. (2019). Billion-Scale Similarity Search with GPUs. IEEE Transactions on Big Data, 7(3), 535–547. https://doi.org/10.1109/TBDATA.2019.2921572
[16] S. K. Gunda, “Comparative Analysis of Machine Learning Models for Software Defect Prediction,” 2024 International Conference on Power, Energy, Control and Transmission Systems (ICPECTS), Chennai, India, 2024, pp. 1-6, https://doi.org/10.1109/ICPECTS62210.2024.10780167.
[17] Husain, H., Wu, H.-H., Gazit, T., Allamanis, M., & Brockschmidt, M. (2019). CodeSearchNet Challenge: Evaluating the State of Semantic Code Search. arXiv preprint arXiv:1909.09436.
[18] Balerao, M. (2023). A converged artificial intelligence architecture for innovation, software lifecycle optimization, and cybersecurity risk mitigation. International Journal of Multidisciplinary Futuristic Development, 4(1), 117–120. https://doi.org/10.54660/IJMFD.2023.4.1.117-120
[19] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems, 30.
[20] Thalakanti, R. R., & Goud Bandari, S. S. (2024). Intelligent Continuous Integration and Delivery for Banking Systems using Machine Learning Driven Risk Detection with Real World Deployment Evaluation. International Journal of AI, BigData, Computational and Management Studies, 5(4), 168-175. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I4P118
[21] Saha, R. K., Lease, M., Khurshid, S., & Perry, D. E. (2013). Improving Bug Localization Using Structured Information Retrieval. Proceedings of the 28th IEEE/ACM International Conference on Automated Software Engineering, 345–355. https://doi.org/10.1109/ASE.2013.6693093
[22] Gudi, S. R. (2024). Leveraging Predictive Analytics and Redis-Backed Caching to Optimize Specialty Medication Fulfillment and Pharmacy Inventory Management. International Journal of AI, BigData, Computational and Management Studies, 5(3), 155-160. https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I3P116
[23] Karpukhin, V., Oğuz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., & Yih, W. (2020). Dense Passage Retrieval for Open-Domain Question Answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 6769–6781. https://doi.org/10.18653/v1/2020.emnlp-main.550
[24] Sivva, S. D. (2023). An end-to-end AI-based systems engineering paradigm for lifecycle governance, predictive quality assurance, automation economics, and cybersecurity intelligence. Journal of Frontiers in Multidisciplinary Research, 4(1), 600–604. https://doi.org/10.54660/.JFMR.2023.4.1.600-604
[25] Kocetkov, D., Li, R., Allal, L. B., Li, J., Mou, C., Ferrandis, C. M., Jernite, Y., Mitchell, M., Hughes, S., Wolf, T., Bahdanau, D., von Werra, L., & de Vries, H. (2022). The Stack: 3 TB of Permissively Licensed Source Code. arXiv preprint arXiv:2211.15533.
[26] Gunda SK, Yettapu SDR, Bodakunti S, Bikki SB. Decision Intelligence Methodology for AI-Driven Agile Software Lifecycle Governance and Architecture-Centered Project Management, 2023 Mar. 30;4(1):102-8. https://doi.org/10.63282/3050-9262.IJAIDSML-V4I1P112
[27] Souppaya, M., Scarfone, K., & Dodson, D. (2022). Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities. National Institute of Standards and Technology Special Publication 800-218. https://doi.org/10.6028/NIST.SP.800-218
[28] Manga, I., Sivva, S. D. ., & Manga, V. K. (2024). The Adaptive Intelligence in Cloud Systems: A Unified Architecture for AI Enhanced Observability and Automated Root Cause Analysis. International Journal of Artificial Intelligence, Data Science, and Machine Learning, 5(1), 160-166. https://doi.org/10.63282/3050-9262.IJAIDSML-V5I1P115
[29] Cleland-Huang, J., Gotel, O. C. Z., Hayes, J. H., Mäder, P., & Zisman, A. (2014). Software Traceability: Trends and Future Directions. Future of Software Engineering Proceedings, 55–69. https://doi.org/10.1145/2593882.2593891
[30] Gudi, S. R. (2023). Enhancing Reliability in Java Enterprise Systems through Comparative Analysis of Automated Testing Frameworks. International Journal of Emerging Trends in Computer Science and Information Technology, 4(2), 151-160. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I2P115
[31] Borg, M., Runeson, P., & Ardö, A. (2014). Recovering from a Decade: A Systematic Mapping of Information Retrieval Approaches to Software Traceability. Empirical Software Engineering, 19(6), 1565–1616. https://doi.org/10.1007/s10664-013-9255-y
[32] Sivva, S. D., Thalakanti, R. R., Bandari, S. S. G., & Yettapu, S. D. R. (2023). AI-Driven Decision Intelligence for Agile Software Lifecycle Governance: An Architecture-Centered Framework Integrating Machine Learning Defect Prediction and Automated Testing. International Journal of Emerging Trends in Computer Science and Information Technology, 4(4), 167-172. https://doi.org/10.63282/3050-9246.IJETCSIT-V4I4P118
[33] S. K. Gunda, “Fault Prediction Unveiled: Analyzing the Effectiveness of Random Forest, Logistic Regression, and KNeighbors,” 2024 2nd International Conference on Self Sustainable Artificial Intelligence Systems (ICSSAS), Erode, India, 2024, pp. 107-113, https://doi.org/10.1109/ICSSAS64001.2024.10760620.










