On Improving Repository-Level Code QA for Large Language Models

Jan Strich, Florian Schneider, Irina Nikishina, Chris Biemann


Abstract
Large Language Models (LLMs) such as ChatGPT, GitHub Copilot, Llama, or Mistral assist programmers as copilots and knowledge sources to make the coding process faster and more efficient. This paper aims to improve the copilot performance by implementing different self-alignment processes and retrieval-augmented generation (RAG) pipelines, as well as their combination. To test the effectiveness of all approaches, we create a dataset and apply a model-based evaluation, using LLM as a judge. It is designed to check the model’s abilities to understand the source code semantics, the dependency between files, and the overall meta-information about the repository. We also compare our approach with other existing solutions, e.g. ChatGPT-3.5, and evaluate on the existing benchmarks. Code and dataset are available online (https://anonymous.4open.science/r/ma_llm-382D).
Anthology ID:
2024.acl-srw.28
Volume:
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop)
Month:
August
Year:
2024
Address:
Bangkok, Thailand
Editors:
Xiyan Fu, Eve Fleisig
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
303–338
Language:
URL:
https://aclanthology.org/2024.acl-srw.28
DOI:
Bibkey:
Cite (ACL):
Jan Strich, Florian Schneider, Irina Nikishina, and Chris Biemann. 2024. On Improving Repository-Level Code QA for Large Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop), pages 303–338, Bangkok, Thailand. Association for Computational Linguistics.
Cite (Informal):
On Improving Repository-Level Code QA for Large Language Models (Strich et al., ACL 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.acl-srw.28.pdf