Skip to content

Generating Assignments for Domain-Specific Programming Languages with Retrieval-Augmented Generation

Rahad Arman Nabid, Jeni Sorathiya, Stephen MacNeil

cs.IR

Abstract

Large language models (LLMs) can help instructors quickly draft programming assignments, but it can be challenging to ensure that these assignments are fully aligned with course goals, course-specific software, and programming patterns. This is especially true when instructors use pedagogical libraries or teaspoon languages. We investigate the use of retrieval-augmented generation (RAG) to generate assignments based on BRIDGES, a research toolkit and API designed to support the visualization of data structures. Results show that RAG reduces both the iterations needed to produce functional assignments and the hallucination rate, although some hallucinations persist. These preliminary results suggest that RAG may help streamline assignment creation for libraries and languages that are not well represented in LLM training data.

Create a lesson

Metadata

Categories
cs.IR, cs.AI, cs.HC, cs.PL
Comments
2 pages, 2 figures. Accepted at the 58th ACM Technical Symposium on Computer Science Education V.2 (SIGCSE TS 2027), February 17-20, 2027, Sacramento, CA, USA