PromptChainer:通过可视化编程链接大语言模型对象
PromptChainer: Chaining Large Language Model Prompts through Visual Programming
摘要:
虽然LLM可以有效地帮助原型单个ML功能,但许多现实世界的应用程序涉及复杂的任务,无法通过LLM的单次运行轻松处理。最近的工作发现,将多个LLM运行链接在一起(一个步骤的输出是下一个步骤的输入)可以帮助用户完成这些更复杂的任务,并且可以以一种被认为更透明和可控的方式。然而,用户在创作自己的LLM链时需要什么仍然是未知的-这是降低非AI专家原型AI注入应用程序的障碍的关键一步。在这项工作中,我们将探索LLM链创作过程。我们得出结论,从试点研究发现,链接需要仔细的脚手架转换中间结点输出,以及调试链在多个粒度,以帮助这些需求,我们设计了一个交互式界面,可视化编程链。通过对四个人的案例研究,我们表明,Chainer支持为一系列应用程序构建原型,并总结了关于将链扩展到复杂任务和支持低Fi链原型的开放性问题。
英文摘要:
While LLMs can effectively help prototype single ML functionalities, many real-world applications involve complex tasks that cannot be easily handled via a single run of an LLM. Recent work has found that chaining multiple LLM runs together (with the output of one step being the input to the next) can help users accomplish these more complex tasks, and in a way that is perceived to be more transparent and controllable. However, it remains unknown what users need when authoring their own LLM chains -- a key step for lowering the barriers for non-AI-experts to prototype AI-infused applications. In this work, we explore the LLM chain authoring process. We conclude from pilot studies find that chaining requires careful scaffolding for transforming intermediate node outputs, as well as debugging the chain at multiple granularities; to help with these needs, we designed PromptChainer, an interactive interface for visually programming chains. Through case studies with four people, we show that PromptChainer supports building prototypes for a range of applications, and conclude with open questions on scaling chains to complex tasks, and supporting low-fi chain prototyping.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。