本文介绍了GPTutor的最新进展:一个基于ChatGPT驱动的Visual Studio Code编程工具扩展。大型语言模型(LLMs)的出现提高了软件开发效率,但其性能可能受到训练数据限制和提示设计问题的阻碍。现有的LLM开发工具通常作为黑盒运行,用户无法查看所使用的提示,也无法在出现错误时通过纠正提示来提高性能。为了解决上述问题,GPTutor被引入作为一个开源的AI结对编程工具,作为Copilot的替代方案。GPTutor允许用户为各种编程语言和场景定制提示,支持120多种人类语言和50多种编程语言。用户可以微调提示以纠正LLM的错误,从而实现精确和高效的代码生成。在论文末尾,我们通过示例强调了GPTutor的潜力,包括展示其在解释和生成Sui-Move(一种新引入的智能合约语言)方面的熟练程度,这是通过提示工程实现的。
英文摘要:
This paper presents the latest progress of GPTutor: a ChatGPT-powered programming tool extension in Visual Studio Code. The emergence of Large Language Models (LLMs) has improved software development efficiency, but their performance can be hindered by training data limitations and prompt design issues. Existing LLM development tools often operate as black boxes, with users unable to view the prompts used and unable to improve performance by correcting prompts when errors occur. To address the aforementioned issues, GPTutor was introduced as an open-source AI pair programming tool, offering an alternative to Copilot. GPTutor empowers users to customize prompts for various programming languages and scenarios, with support for 120+ human languages and 50+ programming languages. Users can fine-tune prompts to correct the errors from LLM for precision and efficient code generation. At the end of the paper, we underscore GPTutor's potential through examples, including demonstrating its proficiency in interpreting and generating Sui-Move, a newly introduced smart contract language, using prompt engineering.
Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Language
University of Auckland(奥克兰大学);Indian Institute of Science(印度科学学院)
GitHub Copilot是一个人工智能模型,用于从自然语言问题描述自动生成源代码。自2022年6月以来,Copilot已正式免费提供给所有学生作为Visual Studio Code等开发环境的插件。之前探索OpenAI Codex(Copilot的底层模型)的工作表明,它在典型的CS1问题上表现良好,因此人们担心它会对入门编程课程的教学产生影响。然而,关于Copilot不能很好地执行的问题类型,或者关于学生在解决错误时可能与Copilot进行的自然语言交互,我们知之甚少。我们通过评估Copilot在166个编程问题的公开数据集上的性能来探索这些问题。我们发现,它成功地解决了大约一半的这些问题的第一次尝试,它解决了60%的剩余问题,只使用自然语言的问题描述的变化。我们认为,这种类型的提示工程,我们相信将成为一个标准的人类和Copilot之间的互动时,它最初失败,是一个潜在的有用的学习活动,促进计算思维技能,并有可能改变代码编写技能的发展的性质。
Will Your Next Pair Programming Partner Be Human? An Empirical Evaluation of Generative AI as a Collaborative Teammate in a Semester-Long Classroom Setting
Bespoke Visual Assistance: What and How do Blind and Low-Vision People Create with Agentic Programming?
University of Michigan(密歇根大学);Massachusetts Institute of Technology(麻省理工学院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Georgia Institute of Technology(佐治亚理工学院);Microsoft Corporation(微软公司);Tufts University(塔夫茨大学)