arXiv:2504.03771cs.AI2025-04被引 3

让人类与AI协作自编程,降低复杂系统开发门槛

Flow State: Humans Enabling AI Systems to Program Themselves

  • 用模块化节点+声明式流程+嵌套结构设计可读性强的AI系统
  • 实测减少开发开销,支持智能体工作流和RAG等复杂模式
  • 适合需要迭代优化的团队,尤其擅长人机协同开发

复合型AI系统通过协调多个AI组件和外部API日益重要,但面临复杂性管理、歧义处理及开发流程效率低下的挑战。现有框架常引入显著开销、隐式复杂性或限制性抽象,影响可维护性和迭代能力,尤其在人机协同场景中更为突出。本文提出一种以结构清晰和显式控制为核心的底层架构,推出Pocketflow平台。该平台基于精简却协同的核心抽象:具有严格生命周期的模块化节点、声明式流程编排、原生分层嵌套(流程即节点)以及显式动作驱动的条件逻辑。这一组合构建了轻量、无厂商锁定的基础,显著降低开销,同时具备表达复杂模式(如智能体工作流、RAG)的能力。结合由该结构赋能的Pocket AI助手,Pocketflow为现代企业所需的可适应、可扩展的AI系统提供了高效的原型设计、迭代优化与部署环境。

原文摘要 · Abstract (English)

Compound AI systems, orchestrating multiple AI components and external APIs, are increasingly vital but face challenges in managing complexity, handling ambiguity, and enabling effective development workflows. Existing frameworks often introduce significant overhead, implicit complexity, or restrictive abstractions, hindering maintainability and iterative refinement, especially in Human-AI collaborative settings. We argue that overcoming these hurdles requires a foundational architecture prioritizing structural clarity and explicit control. To this end, we introduce Pocketflow, a platform centered on Human-AI co-design, enabled by Pocketflow. Pocketflow is a Python framework built upon a deliberately minimal yet synergistic set of core abstractions: modular Nodes with a strict lifecycle, declarative Flow orchestration, native hierarchical nesting (Flow-as-Node), and explicit action-based conditional logic. This unique combination provides a robust, vendor-agnostic foundation with very little code that demonstrably reduces overhead while offering the expressiveness needed for complex patterns like agentic workflows and RAG. Complemented by Pocket AI, an assistant leveraging this structure for system design, Pocketflow provides an effective environment for iteratively prototyping, refining, and deploying the adaptable, scalable AI systems demanded by modern enterprises.

人机协同AI系统自动化编程工作流

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。