Skip to content

[Bug] variable will be reinitialized after assignment #2962

@TraceIvan

Description

@TraceIvan

Contact Information

No response

MaxKB Version

v1.10.4

Problem Description

在多轮问答场景里,工作流中第一轮被赋值的全局变量在追问后会被初始化,应该保留第一轮被赋值的内容,初始化操作应当只在问答开始前操作一次。

Steps to Reproduce

工作流中,根据历史记录长度判断当前问答轮次,如果是第一轮则对全局变量赋值,否则输出全局变量值。发现第一轮被赋值的全局变量在后续轮次后会重新被初始化。

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions