Prompt Sapper: A LLM-Empowered Production Tool for Building AI Chains
Open Access
- 3 June 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (5) , 1-24
Abstract
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 systematically review, summarise, refine and extend the concept of AI chain by incorporating the best principles and practices that have been accumulated in software engineering for decades into AI chain engineering, to systematize 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.Keywords
Funding Information
- National Nature Science Foundation of China (6226201)
This publication has 15 references indexed in Scilit:
- PCR-Chain: Partial Code Reuse Assisted by Hierarchical Chaining of Prompts on Frozen Copilot2023
- High-Resolution Image Synthesis with Latent Diffusion Models2022
- AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Prompts2022
- PromptChainer: Chaining Large Language Model Prompts through Visual Programming2022
- Re3: Generating Longer Stories With Recursive Reprompting and Revision2022
- Language Models of Code are Few-Shot Commonsense Learners2022
- Reframing Instructional Prompts to GPTk’s Language2022
- Vipo2020
- RAZER—A HRI for Visual Task-Level Programming and Intuitive Skill ParameterizationIEEE Robotics and Automation Letters, 2018
- Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple TestingJournal of the Royal Statistical Society Series B: Statistical Methodology, 1995