Prompt Sapper:一款用于构建AI链的大语言模型赋能生产工具
Prompt Sapper: A LLM-Empowered Production Tool for Building AI Chains
AI总结:
针对现有基础模型交互方式难构建可复用AI服务、LLM应用开发API门槛高的问题,提出AI链概念并融入软件工程原则,开发无代码IDE Prompt Sapper,经用户研究验证其效率与正确性。
摘要:
基础模型(例如大语言模型LLM GPT-4和文本生成图像模型DALL-E)的出现,为各领域开辟了诸多可能性。人们如今可以使用自然语言(即提示词)与AI交互以执行任务。尽管人们能通过聊天机器人(如ChatGPT)使用基础模型,但无论底层模型的能力有多强,聊天都并非构建可复用AI服务的生产工具。LangChain等API支持基于大语言模型的应用开发,但需要大量编程知识,因而构成了障碍。为缓解这一问题,我们提出AI链的概念,并将软件工程领域数十年来积累的最佳原则与实践引入AI链工程,以系统化AI链工程方法论。我们还开发了一款无代码集成开发环境Prompt Sapper,它在构建AI链的过程中自然融入了这些AI链工程原则与模式,从而提升AI链的性能与质量。借助Prompt Sapper,AI链工程师可以通过基于聊天的需求分析和可视化编程,在基础模型之上组合基于提示词的AI服务。我们的用户研究评估并验证了Prompt Sapper的效率与正确性。
英文摘要:
The emergence of foundation models, such as large language models (LLMs) GPT-4 and text-to-image models DALL-E, has opened up numerous possibilities across various domains. People can now use natural language (i.e. prompts) to communicate with AI to perform tasks. While people can use foundation models through chatbots (e.g., ChatGPT), chat, regardless of the capabilities of the underlying models, is not a production tool for building reusable AI services. APIs like LangChain allow for LLM-based application development but require substantial programming knowledge, thus posing a barrier. To mitigate this, we propose the concept of AI chain and introduce the best principles and practices that have been accumulated in software engineering for decades into AI chain engineering, to systematise AI chain engineering methodology. We also develop a no-code integrated development environment, Prompt Sapper, which embodies these AI chain engineering principles and patterns naturally in the process of building AI chains, thereby improving the performance and quality of AI chains. With Prompt Sapper, AI chain engineers can compose prompt-based AI services on top of foundation models through chat-based requirement analysis and visual programming. Our user study evaluated and demonstrated the efficiency and correctness of Prompt Sapper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。