arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.07387cs.HCcs.AI
收藏

BISCUIT:在计算笔记本中通过临时UI为大语言模型生成的代码搭建脚手架

BISCUIT: Scaffolding LLM-Generated Code with Ephemeral UIs in Computational Notebooks

Apple(苹果公司)

Ruijia Cheng, Titus Barik, Alan Leung, Fred Hohman, Jeffrey Nichols

AI总结:

针对程序员难以理解使用大语言模型生成代码的问题,研究提出JupyterLab扩展BISCUIT,通过临时UI脚手架衔接用户提示与代码生成,经10名新手测试证实可辅助代码理解、降低提示工程难度并支持变量探索与想法迭代。

摘要:

程序员经常在计算笔记本中学习机器学习教程,并且已经开始采用基于大语言模型(LLM)的代码生成技术。然而,他们在理解和使用LLM生成的代码时遇到了困难。为缓解这些问题,我们在计算笔记本中引入了一种新工作流,通过额外的临时UI步骤增强基于LLM的代码生成,在用户提示和代码生成之间提供UI脚手架作为中间阶段。我们在JupyterLab扩展程序BISCUIT中实现了该工作流,它能根据用户的代码上下文和意图,生成由LLM驱动的临时UI,为用户理解、引导和探索LLM生成的代码提供脚手架支持。通过一项让10名新手使用BISCUIT学习机器学习教程的用户研究,我们发现BISCUIT能为用户提供代码表征以辅助理解,降低提示工程的复杂度,并为用户提供探索不同变量、迭代想法的试验场。

英文摘要:

Programmers frequently engage with machine learning tutorials in computational notebooks and have been adopting code generation technologies based on large language models (LLMs). However, they encounter difficulties in understanding and working with code produced by LLMs. To mitigate these challenges, we introduce a novel workflow into computational notebooks that augments LLM-based code generation with an additional ephemeral UI step, offering users UI scaffolds as an intermediate stage between user prompts and code generation. We present this workflow in BISCUIT, an extension for JupyterLab that provides users with ephemeral UIs generated by LLMs based on the context of their code and intentions, scaffolding users to understand, guide, and explore with LLM-generated code. Through a user study where 10 novices used BISCUIT for machine learning tutorials, we found that BISCUIT offers users representations of code to aid their understanding, reduces the complexity of prompt engineering, and creates a playground for users to explore different variables and iterate on their ideas.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑