Discover and explore top open-source AI tools and projects—updated daily.
Automating agentic workflow generation
Top 96.8% on SourcePulse
Automating the generation and optimization of agentic workflows, AFlow targets researchers and developers seeking to replace manual workflow design with an automated, performance-driven approach. By leveraging Monte Carlo Tree Search (MCTS) within a code-represented workflow space, AFlow aims to discover and refine effective agentic workflows, potentially outperforming handcrafted solutions across various tasks.
How It Works
AFlow employs a framework comprising Nodes (basic LLM invocation units), Operators (predefined Node sequences for efficiency), Workflows (connected sequences of Nodes), an Optimizer (using MCTS to explore workflow variations), and an Evaluator (to assess performance). The core innovation lies in using MCTS to navigate a search space where workflows are represented as code, allowing for iterative exploration, selection, expansion, and evaluation of workflow structures to optimize task performance.
Quick Start & Requirements
conda create -n aflow python=3.9
), then install dependencies with pip install -r requirements.txt
.config/config2.yaml
. Optimization parameters are set via command-line arguments (e.g., --dataset
, --sample
, --max_rounds
) or by modifying run.py
. Operator configurations can be found in operator.json
.metagpt/ext/aflow/data/download_data.py
.python run.py --dataset <dataset_name>
.Highlighted Details
Maintenance & Community
Direct contact is available via email (didi4goooogle@gmail.com) and WeChat (18831933368) for support. Users are encouraged to open issues for questions or difficulties. The roadmap includes plans for supporting multiple search algorithms, multi-model search, leaderboards, and additional benchmarks.
Licensing & Compatibility
The provided README does not explicitly state the project's license. This absence requires further investigation for compatibility, especially concerning commercial use or integration into closed-source projects.
Limitations & Caveats
The project explicitly notes that "Some Operators may have bugs during the migration from MetaGPT to this repository," indicating potential stability issues with certain components. The lack of a specified license is a significant caveat for adoption.
1 month ago
Inactive