用大模型自动生成无服务器工作流,降低开发门槛。
Action Engine: Automatic Workflow Generation in FaaS
- 基于工具增强的大模型理解自然语言指令
- 自动识别函数并处理数据依赖,支持参数执行
- 跨平台无绑定,适合非专业开发者快速构建应用
无服务器计算(FaaS)因其可扩展性、成本效益和易用性,正成为下一代云系统的基础。然而,开发者在构建功能工作流时仍面临专业知识要求高、平台依赖性强、难以扩展等问题。为此,本文提出Action Engine机制,利用工具增强的大语言模型(LLM)解析自然语言查询,自动完成FaaS工作流生成,减少对专业技能的需求。该系统包含从FaaS仓库中识别相关函数的模块,并无缝管理函数间的数据依赖关系,确保用户查询被正确处理。此外,Action Engine可注入用户提供的参数执行生成的工作流。本研究还从自动工作流生成视角填补了工具增强型LLM研究的空白,系统评估了四个核心子过程的方法论。通过基准测试,结果表明Action Engine在性能上媲美少样本学习方法,同时保持平台与语言无关性,有效规避了供应商锁定问题。实验显示,该系统能为非云技术背景开发者开启工作流自动化,显著加速云原生应用开发周期。
原文摘要 · Abstract (English)
Function as a Service (FaaS) is poised to become the foundation of the next generation of cloud systems due to its inherent advantages in scalability, cost-efficiency, and ease of use. However, challenges such as the need for specialized knowledge, platform dependence, and difficulty in scalability in building functional workflows persist for cloud-native application developers. To overcome these challenges and mitigate the burden of developing FaaS-based applications, in this paper, we propose a mechanism called Action Engine, that makes use of tool-augmented large language models (LLMs) at its kernel to interpret human language queries and automates FaaS workflow generation, thereby, reducing the need for specialized expertise and manual design. Action Engine includes modules to identify relevant functions from the FaaS repository and seamlessly manage the data dependency between them, ensuring the developer's query is processed and resolved. Beyond that, Action Engine can execute the generated workflow by injecting the user-provided arguments. On another front, this work addresses a gap in tool-augmented LLM research via adopting an Automatic FaaS Workflow Generation perspective to systematically evaluate methodologies across four fundamental sub-processes. Through benchmarking various parameters, this research provides critical insights into streamlining workflow automation for real-world applications, specifically in the FaaS continuum. Our evaluations demonstrate that the Action Engine achieves comparable performance to the few-shot learning approach while maintaining platform- and language-agnosticism, thereby, mitigating provider-specific dependencies in workflow generation. We notice that Action Engine can unlock FaaS workflow generation for non-cloud-savvy developers and expedite the development cycles of cloud-native applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。