Generating a Low-code Complete Workflow via Task Decomposition and RAG
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 29 of its 54 references that are in the map. First posted on arXiv 29 Nov 2024.
Builds on
29 of 54 references.
References · 29
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 258
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 138
- 2024Reducing hallucination in structured outputs via Retrieval-Augmented Generationcited by 92
- 2023Search-in-the-Chain: Interactively Enhancing Large Language Models with Search for Knowledge-intensive Taskscited by 73
- 2021Software Engineering for AI-Based Systems: A Surveycited by 68
- 2023KnowledGPT: Enhancing Large Language Models with Retrieval and Storage Access on Knowledge Basescited by 52
17 more
- 2024JMLR: Joint Medical LLM and Retrieval Training for Enhancing Reasoning and Professional Question Answering Capabilitycited by 32
- 2024Speech-Copilot: Leveraging Large Language Models for Speech Processing via Task Decomposition, Modularization, and Program Generationcited by 27
- 2019Studying Software Engineering Patterns for Designing Machine Learning Systemscited by 24
- 2024Towards Uncovering How Large Language Model Works: An Explainability Perspectivecited by 22
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Modelscited by 20
- 2024The Challenges of Evaluating LLM Applications: An Analysis of Automated, Human, and LLM-Based Approachescited by 18
- 2024Quantifying the Capabilities of LLMs across Scale and Precisioncited by 17
- 2023Low-code LLM: Graphical User Interface over Large Language Modelscited by 13
- 2021Finding the Right Moment: Human-Assisted Trailer Creation via Task Compositioncited by 12
- 2021Adapting Software Architectures to Machine Learning Challengescited by 11
- 2023A Taxonomy of Foundation Model based Systems through the Lens of Software Architecturecited by 6
- 2024A Jailbroken GenAI Model Can Cause Substantial Harm: GenAI-powered Applications are Vulnerable to PromptWarescited by 6
- 2024TaskGen: A Task-Based, Memory-Infused Agentic Framework using StrictJSONcited by 5
- 2023Design Patterns for AI-based Systems: A Multivocal Literature Review and Pattern Repositorycited by 4
- 2024Investigating the Impact of SOLID Design Principles on Machine Learning Code Understandingcited by 3
- 2022Architecture Decisions in AI-based Systems Development: An Empirical Studycited by 1
- 2023Learning Abstract Visual Reasoning via Task Decomposition: A Case Study in Raven Progressive Matricescited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuning
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluation
- 2026AI Engineering Blueprint for On-Premises Retrieval-Augmented Generation Systems
- 2025Generative AI for Software Architecture. Applications, Challenges, and Future Directions
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey
- 2025RAG Without the Lag: Interactive Debugging for Retrieval-Augmented Generation Pipelines
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks
- 2025Survey of GenAI for Automotive Software Development: From Requirements to Executable Code