Generating Assignments for Domain-Specific Programming Languages with Retrieval-Augmented Generation
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
Related papers
Privacy-Aware Adaptive Client Selection for Federated Retrieval-Augmented Generation
Shared title terminologycs.IRAli Shams Saryazd, Abolfazl Gandomi
LSP-RAG: Latent Scoring Perspectives for Knowledge Graph Retrieval-Augmented Generation
Shared title terminologycs.IRHaochen Liu, Guanghui Min, Song Wang et al.
AdLoop: An Agentic Feedback Loop for Domain-Specific LLMs Post-Training in Local-Life Service Advertising
Shared title terminologycs.IRLong Zhang, Mengting Li, Hao Jiang et al.
GovernRAG: Governance of Retrieval and Response Generation
Shared title terminologycs.IRMadhav Sunil, Tasneem AS
Retrieval Fairness vs. Generation Fairness: An Analysis with Fair Ranking Data from NTCIR and TREC
Shared title terminologycs.IRHanpei Fang, Sijie Tao, Tetsuya Sakai
LAMP: Language-Aligned Multi-Intent Parallel Decoding of Semantic IDs for Generative Recommendation
Shared title terminologycs.IRYixuan Xu, Yuheng Chen, Fan Zhang et al.