1Panel-dev / MaxKB

🚀 MaxKB 是一款基于大语言模型和 RAG 的开源知识库问答系统,广泛应用于智能客服、企业内部知识库、学术研究与教育等场景。
https://maxkb.cn/
GNU General Public License v3.0
11.66k stars 1.53k forks source link

workflow中增加变量更新节点 #1595

Closed evilstar2016 closed 2 weeks ago

evilstar2016 commented 2 weeks ago

workflow中增加变量更新节点

功能说明

1.全局变量存储在chat_cache中 2.flow中使用了变量更新node,会更新全局变量,包括chat_cache、flow上下文 3.star-node启动时,优先读取共享内存中已有的变量

遗留问题

1.当前无默认值的全局变量(form_data)无法传输给后端,因此 使用 “变量更新” 节点的全局变量 必须在入口处设置默认值。 2.前端图片是复用的,需要切一下

f2c-ci-robot[bot] commented 2 weeks ago

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
f2c-ci-robot[bot] commented 2 weeks ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/1Panel-dev/MaxKB/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
liqiang-fit2cloud commented 2 weeks ago

1、开始写代码之前最好跟项目组沟通需求和大概方案; 2、第一次PR不建议修改这么多代码,建议从小fix开始,逐步建立信任之后再提交大PR。