Universidade de Coimbro
Automated Explanation of Software Engineering Concepts with LLM Amália
Abstract
dc:description.abstractLarge Language Models can generate fluent answers to Software Engineering questions, but their responses depend primarily on knowledge encoded during training and may lack explicit grounding in domain-specific material. This dissertation investigates whether augmenting AMÁLIA, a Large Language Model for European Portuguese, with a domain-specific Retrieval-Augmented Generation architecture improves its answers to Software Engineering questions.A Software Engineering knowledge base was constructed around four macro-themes: Requirements and Software Specification, Software Architecture and Design, Software Development, Verification and Validation, and Software Project Management and Software Processes. The resulting resource contains 198 expository documents and 3960 synthetic question--answer pairs, providing two textual representations of the same domain knowledge. Both representations were independently indexed using multilingual sentence embeddings and queried with the original user question. The highest-ranked results from each representation were then incorporated into the context supplied to AMÁLIA.The system was evaluated using a benchmark of 48 European Portuguese Software Engineering questions derived from academic examinations and certification material. Retrieval effectiveness was evaluated against manually defined taxonomy-based relevance mappings for 46 questions. Answer quality was compared between standalone AMÁLIA and AMÁLIA with retrieval augmentation using five generations per question and condition. The evaluation combined ROUGE-L, BERTScore, semantic similarity, paired statistical testing, and a blinded LLM-as-a-Judge comparison with answer-order reversal.The question--answer representation achieved higher individual retrieval performance than the expository corpus, with Hit@3 values of 60.87% and 47.83%, respectively. Combining both representations increased Hit@3 to 73.91%, demonstrating complementary retrieval behaviour, although 12 of the 46 evaluated questions remained without a ground-truth match. Retrieval augmentation increased the mean ROUGE-L score from 0.0814 to 0.1047, BERTScore F1 from 0.8475 to 0.8556, and semantic similarity from 0.6366 to 0.6545. Question-level paired tests found statistically significant differences in favour of the retrieval-augmented condition for all three metrics.The order-consistent LLM-as-a-Judge evaluation significantly favoured retrieval augmentation for technical correctness, relevance, European Portuguese quality, and overall preference, while no significant difference was found for completeness or clarity. The results also varied across Software Engineering areas, indicating that the benefit of retrieval augmentation is not uniform across the domain.Overall, the results show that explicit domain knowledge supplied through retrieval can provide a measurable benefit over standalone AMÁLIA for Software Engineering question answering in European Portuguese. At the same time, the remaining retrieval failures, variation across domain areas, and sensitivity of automated evaluation highlight the need for stronger retrieval methods and further human validation.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Duarte, Daniel Martins
- Advisor dc:contributor.advisor
-
- Campos, João Rodrigues de
Subjects
dc:subject × 9Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204413737