Miami University
LLM-Based Knowledge Extraction and Automatic Code Generation in Low-Resource Languages
Abstract
dc:descriptionLarge Language Models (LLMs) are used for a variety of tasks and scripting languages. Yet a significant gap remains for Low-resource programming languages (LRPLs). These are the languages that lack sufficient representation in publicly available data. Since LRPL’s have limited documentation and scarce training examples, NLP tasks like code generation and question answering are infeasible. As specialized scientific and engineering domains continue to rely on such languages, there is a growing need for LLM-based tools that can operate effectively in low-resource settings. To implement this, a conversational assistant is developed and evaluated on “SPEC”, a low-resource, domain-specific scripting language used in Q-Mapping for Quantum Materials ⟨QM⟩2 beamline experiments at the Cornell High Energy Synchrotron Source (CHESS). This thesis investigates the extent to which a language model can acquire meaningful knowledge from SPEC documentation with effective natural language interaction, allowing novice users to obtain accurate guidance, including code generation and query resolution. Results show that Gemini 2.5 Flash performs well under a Retrieval-Augmented Generation approach in comparison to other models, while fine-tuned models demonstrate partial generalization to domain-specific terminology. Across both approaches, the fundamental bottleneck is the scarcity of high-quality training data rather than model capacity. These findings inform recommendations to guide future LLM-based tooling for low-resource scripting languages, lowering barriers for researchers in specialized domains.
Degree
thesis:*- Name thesis:degree_name
- Master of Computer Science
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Computer Science
- Grantor dc:publisher
- Miami University
- Year dc:date
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Valluru, Sai Aneesha
- Advisor dc:contributor.advisor
-
- Bhunia, Suman
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=miami1777939111391986