Skip to content

fix: refresh workflow form knowledge snapshots#6308

Open
Binx98 wants to merge 1 commit into
1Panel-dev:v2from
Binx98:fix-binx-rag-name
Open

fix: refresh workflow form knowledge snapshots#6308
Binx98 wants to merge 1 commit into
1Panel-dev:v2from
Binx98:fix-binx-rag-name

Conversation

@Binx98

@Binx98 Binx98 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

修复智能体【收集表单】节点引用知识库时,知识库改名后节点中展示的知识库名称未同步更新的问题。

原因是【收集表单】节点中的知识库字段会在工作流 JSON 中保存一份知识库快照,包括 idnametypeembedding_model_id。此前应用详情接口只刷新了知识库检索节点中的知识库信息,没有刷新表单节点中的知识库快照,导致知识库改名后仍展示旧名称。

Summary of your change

  • 在应用详情返回工作流数据时,刷新【收集表单】节点中的知识库字段。
  • 根据表单字段中已保存的知识库 id 查询当前最新的知识库信息。
  • 同步更新表单节点知识库快照中的:
    • name
    • type
    • embedding_model_id
  • 支持递归处理循环节点中的【收集表单】节点。
  • 未新增文件,仅在现有应用序列化逻辑中补充刷新处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant