用 RAG 为领域专用编程语言 BRIDGES 生成编程作业
Generating Assignments for Domain-Specific Programming Languages with Retrieval-Augmented Generation
AI 导读
一项 arXiv 研究探索用检索增强生成(RAG)帮助教师基于 BRIDGES——一个支持数据结构可视化的研究工具包与 API——快速生成编程作业。结果显示 RAG 减少了生成可用作业所需的迭代次数并降低幻觉率,但幻觉仍存在,表明 RAG 有助于为 LLM 训练数据中覆盖较少的库和语言简化作业创建。
正文 · 原文
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.
| 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 |
| Subjects: | Information Retrieval (cs.IR); Artificial Intelligence (cs.AI); Human-Computer Interaction (cs.HC); Programming Languages (cs.PL) |
| ACM classes: | K.3.2; I.2.7 |
| Cite as: | arXiv:2612.02668 [cs.IR] |
| (or arXiv:2612.02668v1 [cs.IR] for this version) | |
| https://doi.org/10.48550/arXiv.2612.02668 arXiv-issued DOI via DataCite (pending registration) |
|
| Related DOI: | https://doi.org/10.1145/3857223.3863002
DOI(s) linking to related resources |
Submission history
From: Rahad Arman Nabid [view email]
[v1]
Tue, 1 Dec 2026 19:41:04 UTC (309 KB)
来源:arXiv cs.AI · arxiv.org