Background: The implementation of Large Language Models (LLMs) in software engineering has provided new and improved approaches to code synthesis, testing, and refactoring. However, even with these new approaches, the practical efficacy of LLMs is restricted due to their reliance on user-given prompts. The problem is that these prompts can vary a lot in quality and specificity, which results in inconsistent or suboptimal results for the LLM application. Methods: This research therefore aims to alleviate these issues by developing an LLM-based code assistance prototype with a framework based on Retrieval-Augmented Generation (RAG) that automates the prompt-generation process and improves the outputs of LLMs using contextually relevant external knowledge. Results: The tool aims to reduce dependence on the manual preparation of prompts and enhance accessibility and usability for developers of all experience levels. The tool achieved a Code Correctness Score (CCS) of 162.0 and an Average Code Correctness (ACC) score of 98.8% in the refactoring task. These results can be compared to those of the generated tests, which scored CCS 139.0 and ACC 85.3%, respectively. Conclusions: This research contributes to the growing list of Artificial Intelligence (AI)-powered development tools and offers new opportunities for boosting the productivity of developers.
Building similarity graph...
Analyzing shared references across papers
Loading...
Saja Abufarha
Ahmed Al Marouf
Jon George Rokne
Software
University of Calgary
University of Southern Denmark
Istanbul Medipol University
Building similarity graph...
Analyzing shared references across papers
Loading...
Abufarha et al. (Wed,) studied this question.
www.synapsesocial.com/papers/69731005c8125b09b0d1fbe7 — DOI: https://doi.org/10.3390/software5010004