[Refactor] Add Fixed Workflow Execution Engine: Flow, Node, and Scheduler Architecture#302
Merged
imbajin merged 5 commits intoapache:mainfrom Oct 23, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request refactors the HugeGraph-AI workflow execution system by introducing a fixed workflow execution engine with a new scheduler-based architecture.
- Introduces new scheduler architecture with Flow, Node, and operator separation
- Upgrades project version from 1.5.0 to 1.7.0 across multiple modules
- Migrates existing workflows to use the new Node/Operator pattern for better modularity
Reviewed Changes
Copilot reviewed 134 out of 135 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Updates version to 1.7.0 |
| spec/hugegraph-llm/fixed_flow/*.md | Design documents for new workflow architecture |
| hugegraph-llm/src/hugegraph_llm/flows/ | New scheduler and flow implementations |
| hugegraph-llm/src/hugegraph_llm/nodes/ | New Node layer for operator lifecycle management |
| hugegraph-llm/src/hugegraph_llm/state/ai_state.py | Workflow state management classes |
| hugegraph-python-client/ | Code formatting improvements and version updates |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
imbajin
reviewed
Oct 20, 2025
imbajin
reviewed
Oct 20, 2025
imbajin
reviewed
Oct 20, 2025
imbajin
reviewed
Oct 20, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
imbajin
reviewed
Oct 21, 2025
3508b67 to
7ae3b6e
Compare
imbajin
reviewed
Oct 23, 2025
imbajin
reviewed
Oct 23, 2025
imbajin
reviewed
Oct 23, 2025
imbajin
reviewed
Oct 23, 2025
| pipeline_pool: Dict[str, Any] | ||
| max_pipeline: int | ||
|
|
||
| def __init__(self, max_pipeline: int = 10): |
Member
There was a problem hiding this comment.
本PR新增了以下核心flow实现:
RAGRawFlow,RAGVectorOnlyFlow,RAGGraphOnlyFlow,RAGGraphVectorFlowText2GremlinFlow,BuildExampleIndexFlow- 以及多个其他flow类
但从diff来看,缺少对应的测试文件。
建议:
- 为每个flow类添加单元测试
- 测试应覆盖:
- 正常执行路径
- 错误处理路径
- 边界条件(空输入、超大输入等)
- Pipeline状态转换
- 集成测试验证flow之间的协作
- 考虑添加性能基准测试
这对于如此大规模的架构重构至关重要!
imbajin
reviewed
Oct 23, 2025
de0baf1 to
82ce651
Compare
82ce651 to
8e2fd57
Compare
…node initialization (#51)
… to Pipeline(old design) & refactor some operator's design and implementation & code format
8e2fd57 to
af82d91
Compare
imbajin
approved these changes
Oct 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.