提示中间件:将大型语言模型的提示映射到 UI 示能
Prompt Middleware: Mapping Prompts for Large Language Models to UI Affordances
AI总结:
本文提出 Prompt Middleware 框架,通过静态、基于模板和自由形式三种方式将 UI 示能映射为 LLMs 提示,并借助写作助手 FeedbackBuffet 展示其如何利用模板生成 GPT-3 反馈请求,帮助开发者更好地将 LLMs 集成到 UIs 中。
摘要:
为了帮助用户完成复杂工作,研究人员开发了将 AI 和人类智能集成到用户界面(UIs)中的技术。随着近期能够响应自然语言提示生成文本的大型语言模型(LLMs)的出现,考虑如何将 LLMs 集成到 UIs 中有了新机遇。我们提出了 Prompt Middleware,这是一个基于 UI 示能生成 LLMs 提示的框架。这些提示包括由专家预定义的提示(静态提示)、通过 UI 中的填充选项从模板生成的提示(基于模板的提示),或从零开始创建的提示(自由形式提示)。我们通过 FeedbackBuffet 演示了该框架,这是一个基于用户文本输入自动生成反馈的写作助手。受先前研究表明模板如何帮助非专家表现得更像专家的启发,FeedbackBuffet 利用基于模板的提示中间件,使反馈寻求者能够将他们希望接收的反馈类型指定为 UI 中的选项。这些选项使用模板组合成对 GPT-3 的反馈请求提示。我们最后讨论了 Prompt Middleware 如何帮助开发者将 LLMs 集成到 UIs 中。
英文摘要:
To help users do complex work, researchers have developed techniques to integrate AI and human intelligence into user interfaces (UIs). With the recent introduction of large language models (LLMs), which can generate text in response to a natural language prompt, there are new opportunities to consider how to integrate LLMs into UIs. We present Prompt Middleware, a framework for generating prompts for LLMs based on UI affordances. These include prompts that are predefined by experts (static prompts), generated from templates with fill-in options in the UI (template-based prompts), or created from scratch (free-form prompts). We demonstrate this framework with FeedbackBuffet, a writing assistant that automatically generates feedback based on a user's text input. Inspired by prior research showing how templates can help non-experts perform more like experts, FeedbackBuffet leverages template-based prompt middleware to enable feedback seekers to specify the types of feedback they want to receive as options in a UI. These options are composed using a template to form a feedback request prompt to GPT-3. We conclude with a discussion about how Prompt Middleware can help developers integrate LLMs into UIs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。