GPTutor:一款基于ChatGPT的代码解释编程工具
GPTutor: a ChatGPT-powered programming tool for code explanation
AI总结:
本研究提出基于ChatGPT的VS Code扩展编程工具GPTutor,可结合相关源码全面分析并解释选中代码,评估显示其解释比同类工具更简洁准确,获师生好评,未来将优化性能并开展真实用户评估。
摘要:
学习新的编程技能需要个性化的指导。随着ChatGPT API等先进自然语言生成模型的出现,如今有了为计算机科学教育打造便捷、个性化AI辅导系统的可能。本文提出GPTutor——一款基于ChatGPT的编程工具,它是一款Visual Studio Code扩展,借助ChatGPT API提供编程代码解释功能。通过集成Visual Studio Code API,GPTutor能够参考相关源代码,对提供的代码进行全面分析。由此,GPTutor可利用设计好的提示词,通过弹窗消息解释选中的代码。GPTutor现已在Visual Studio Code扩展市场发布,其源代码也在GitHub上公开开放。初步评估显示,与原生ChatGPT和GitHub Copilot相比,GPTutor给出的解释最为简洁准确。此外,来自学生和教师的反馈表明,GPTutor界面友好,能够令人满意地解释给定代码。最后,我们讨论了GPTutor未来可能的研究方向,包括通过进一步的提示词编程提升其性能与个性化程度,以及在真实用户中评估GPTutor的有效性。
英文摘要:
Learning new programming skills requires tailored guidance. With the emergence of advanced Natural Language Generation models like the ChatGPT API, there is now a possibility of creating a convenient and personalized tutoring system with AI for computer science education. This paper presents GPTutor, a ChatGPT-powered programming tool, which is a Visual Studio Code extension using the ChatGPT API to provide programming code explanations. By integrating Visual Studio Code API, GPTutor can comprehensively analyze the provided code by referencing the relevant source codes. As a result, GPTutor can use designed prompts to explain the selected code with a pop-up message. GPTutor is now published at the Visual Studio Code Extension Marketplace, and its source code is openly accessible on GitHub. Preliminary evaluation indicates that GPTutor delivers the most concise and accurate explanations compared to vanilla ChatGPT and GitHub Copilot. Moreover, the feedback from students and teachers indicated that GPTutor is user-friendly and can explain given codes satisfactorily. Finally, we discuss possible future research directions for GPTutor. This includes enhancing its performance and personalization via further prompt programming, as well as evaluating the effectiveness of GPTutor with real users.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。