Generating a Low-code Complete Workflow via Task Decomposition and RAG
Abstract
AI technologies are moving rapidly from research to production. With the popularity of Foundation Models (FMs) that generate text, images, and video, AI-based systems are increasing their complexity. Compared to traditional AI-based software, systems employing FMs, or GenAI-based systems, are more difficult to design due to their scale and versatility. This makes it necessary to document best practices, known as design patterns in software engineering, that can be used across GenAI applications. Our first contribution is to formalize two techniques, Task Decomposition and Retrieval-Augmented Generation (RAG), as design patterns for GenAI-based systems. We discuss their trade-offs in terms of software quality attributes and comment on alternative approaches. We recommend to AI practitioners to consider these techniques not only from a scientific perspective but also from the standpoint of desired engineering properties such as flexibility, maintainability, safety, and security. As a second contribution, we describe our industry experience applying Task Decomposition and RAG to build a complex real-world GenAI application for enterprise users: Workflow Generation. The task of generating workflows entails generating a specific plan using data from the system environment, taking as input a user requirement. As these two patterns affect the entire AI development cycle, we explain how they impacted the dataset creation, model training, model evaluation, and deployment phases.
Community
We present a case study of how we built a reliable LLM powered application for Workflow Generation relying on Task Decomposition and Retrieval-Augmented Generation (RAG).
This paper is meant to present an overview of the data collection process, design of tasks, and evaluation of a LLM powered approach in a way that is scalable and maintainable.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Software Engineering and Foundation Models: Insights from Industry Blogs Using a Jury of Foundation Models (2024)
- Practitioners' Discussions on Building LLM-based Applications for Production (2024)
- Towards AI-Native Software Engineering (SE 3.0): A Vision and a Challenge Roadmap (2024)
- A Methodology for Evaluating RAG Systems: A Case Study On Configuration Dependency Validation (2024)
- Software Performance Engineering for Foundation Model-Powered Software (FMware) (2024)
- Opus: A Large Work Model for Complex Workflow Generation (2024)
- Advanced System Integration: Analyzing OpenAPI Chunking for Retrieval-Augmented Generation (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper