工作流修改

This commit is contained in:
2025-12-01 13:39:16 +08:00
parent a5db05fba6
commit 1335959881
2 changed files with 235 additions and 61 deletions

View File

@@ -7,7 +7,7 @@ app:
use_icon_as_answer_icon: false use_icon_as_answer_icon: false
dependencies: [] dependencies: []
kind: app kind: app
version: 0.4.0 version: 0.5.0
workflow: workflow:
conversation_variables: [] conversation_variables: []
environment_variables: [] environment_variables: []
@@ -136,7 +136,16 @@ workflow:
required: true required: true
type: text-input type: text-input
variable: query variable: query
height: 114 - default: ''
hint: ''
label: dataset_apikey
max_length: 100
options: []
placeholder: ''
required: true
type: text-input
variable: dataset_apikey
height: 161
id: '1747125462435' id: '1747125462435'
position: position:
x: 80 x: 80
@@ -250,7 +259,7 @@ workflow:
}' }'
type: json type: json
desc: '' desc: ''
headers: 'Authorization:Bearer dataset-HeDK9gHBqPnI4rBZ2q2Hm7rV headers: 'Authorization:Bearer {{#1747125462435.dataset_apikey#}}
Content-Type:application/json' Content-Type:application/json'
isInIteration: true isInIteration: true
@@ -260,7 +269,7 @@ workflow:
params: '' params: ''
retry_config: retry_config:
max_retries: 3 max_retries: 3
retry_enabled: true retry_enabled: false
retry_interval: 100 retry_interval: 100
selected: false selected: false
ssl_verify: true ssl_verify: true
@@ -270,9 +279,9 @@ workflow:
max_write_timeout: 0 max_write_timeout: 0
title: HTTP 请求 title: HTTP 请求
type: http-request type: http-request
url: http://192.168.0.64:7700/v1/datasets/{{#1747125586388.item#}}/retrieve url: http://nginx:80/v1/datasets/{{#1747125586388.item#}}/retrieve
variables: [] variables: []
height: 157 height: 111
id: '1747125795256' id: '1747125795256'
parentId: '1747125586388' parentId: '1747125586388'
position: position:
@@ -351,7 +360,7 @@ workflow:
type: custom type: custom
width: 242 width: 242
viewport: viewport:
x: 116.27083894320822 x: -967.224047730792
y: 126.27330841264018 y: 147.70051636546336
zoom: 0.8705505632961247 zoom: 0.8705505632961247
rag_pipeline_variables: [] rag_pipeline_variables: []

View File

@@ -9,17 +9,25 @@ dependencies:
- current_identifier: null - current_identifier: null
type: marketplace type: marketplace
value: value:
marketplace_plugin_unique_identifier: langgenius/siliconflow:0.0.34@1c203017d8ef49fd9152696a42e6dc71ecf272b115d8caf731c99ee0d2956dce marketplace_plugin_unique_identifier: anspire/anspire_search:0.0.9@a59824e9507c05c81d582cc5d8384197215d91bf5c787150d8aad723eb5d1a69
version: null version: null
- current_identifier: null - current_identifier: null
type: marketplace type: marketplace
value: value:
marketplace_plugin_unique_identifier: anspire/anspire_search:0.0.9@a59824e9507c05c81d582cc5d8384197215d91bf5c787150d8aad723eb5d1a69 marketplace_plugin_unique_identifier: langgenius/ollama:0.1.0@7c18c74b94a855de83aa66f376939d47b96a49b6dbb6904b46b267cb0213396e
version: null version: null
kind: app kind: app
version: 0.4.0 version: 0.5.0
workflow: workflow:
conversation_variables: conversation_variables:
- description: ''
id: 71e3f805-8445-46b1-bd43-8af398234527
name: dataset_apikey
selector:
- conversation
- dataset_apikey
value: ''
value_type: string
- description: '' - description: ''
id: e18aacca-16a2-4d93-80c4-5a85ead53ae4 id: e18aacca-16a2-4d93-80c4-5a85ead53ae4
name: datasets name: datasets
@@ -225,19 +233,6 @@ workflow:
targetHandle: target targetHandle: target
type: custom type: custom
zIndex: 0 zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: if-else
id: 1762339910800-source-1762421892949-target
selected: false
source: '1762339910800'
sourceHandle: source
target: '1762421892949'
targetHandle: target
type: custom
zIndex: 0
- data: - data:
isInIteration: false isInIteration: false
isInLoop: false isInLoop: false
@@ -257,6 +252,7 @@ workflow:
sourceType: code sourceType: code
targetType: iteration targetType: iteration
id: 1762510470105-source-1762339969303-target id: 1762510470105-source-1762339969303-target
selected: false
source: '1762510470105' source: '1762510470105'
sourceHandle: source sourceHandle: source
target: '1762339969303' target: '1762339969303'
@@ -268,21 +264,11 @@ workflow:
isInLoop: false isInLoop: false
sourceType: if-else sourceType: if-else
targetType: tool targetType: tool
id: 1762421892949-true-1762511001734-target id: 1762421892949-true-1764314675268-target
selected: false
source: '1762421892949' source: '1762421892949'
sourceHandle: 'true' sourceHandle: 'true'
target: '1762511001734' target: '1764314675268'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: assigner
targetType: tool
id: 1762509024795-source-1762511001734-target
source: '1762509024795'
sourceHandle: source
target: '1762511001734'
targetHandle: target targetHandle: target
type: custom type: custom
zIndex: 0 zIndex: 0
@@ -290,13 +276,76 @@ workflow:
isInLoop: false isInLoop: false
sourceType: tool sourceType: tool
targetType: code targetType: code
id: 1762511001734-source-1762510470105-target id: 1764314675268-source-1762510470105-target
source: '1762511001734' selected: false
source: '1764314675268'
sourceHandle: source sourceHandle: source
target: '1762510470105' target: '1762510470105'
targetHandle: target targetHandle: target
type: custom type: custom
zIndex: 0 zIndex: 0
- data:
isInLoop: false
sourceType: assigner
targetType: tool
id: 1762509024795-source-1764314675268-target
selected: false
source: '1762509024795'
sourceHandle: source
target: '1764314675268'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: if-else
id: 1762339910800-source-1764314703864-target
selected: false
source: '1762339910800'
sourceHandle: source
target: '1764314703864'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: assigner
id: 1764314703864-false-1764314714879-target
selected: false
source: '1764314703864'
sourceHandle: 'false'
target: '1764314714879'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: assigner
targetType: if-else
id: 1764314714879-source-1762421892949-target
selected: false
source: '1764314714879'
sourceHandle: source
target: '1762421892949'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: if-else
id: 1764314703864-true-1762421892949-target
selected: false
source: '1764314703864'
sourceHandle: 'true'
target: '1762421892949'
targetHandle: target
type: custom
zIndex: 0
nodes: nodes:
- data: - data:
selected: false selected: false
@@ -321,14 +370,32 @@ workflow:
required: true required: true
type: text-input type: text-input
variable: datasets variable: datasets
height: 114 - default: ''
hint: ''
label: dataset_apikey
max_length: 100
options: []
placeholder: ''
required: true
type: text-input
variable: dataset_apikey
- default: ''
hint: ''
label: promt
max_length: 2000
options: []
placeholder: ''
required: true
type: paragraph
variable: promt
height: 187
id: '1762339910800' id: '1762339910800'
position: position:
x: -1233.1402302396395 x: -1704.106555788423
y: 149.5782401176896 y: 174.193204867626
positionAbsolute: positionAbsolute:
x: -1233.1402302396395 x: -1704.106555788423
y: 149.5782401176896 y: 174.193204867626
selected: false selected: false
sourcePosition: right sourcePosition: right
targetPosition: left targetPosition: left
@@ -354,8 +421,8 @@ workflow:
model: model:
completion_params: {} completion_params: {}
mode: chat mode: chat
name: deepseek-ai/DeepSeek-V3 name: qwen-14b
provider: langgenius/siliconflow/siliconflow provider: langgenius/ollama/ollama
prompt_config: prompt_config:
jinja2_variables: jinja2_variables:
- value_selector: - value_selector:
@@ -370,10 +437,14 @@ workflow:
- '1762510470105' - '1762510470105'
- result - result
variable: result variable: result
- value_selector:
- '1762339910800'
- promt
variable: promt
prompt_template: prompt_template:
- edition_type: jinja2 - edition_type: jinja2
id: 5d50499d-b81d-43aa-a891-38fd349bd754 id: 5d50499d-b81d-43aa-a891-38fd349bd754
jinja2_text: "你是一个专业的思政学习助手,致力于帮助用户学习思想政治理论知识。请基于提供的知识库内容{{ result }},为用户提供准确、简洁的回答。\r\ jinja2_text: "{{ promt }}\r\n\r\n请基于提供的知识库内容{{ result }},为用户提供准确、简洁的回答。\r\
\n\r\n{% if searchData %}\r\n结合 {{ searchData }} 回答用户\r\n{% endif %}\r\ \n\r\n{% if searchData %}\r\n结合 {{ searchData }} 回答用户\r\n{% endif %}\r\
\n{% if fileData %}\r\n结合文件内容 {{ fileData }} 回答用户\r\n{% endif %}\r\n" \n{% if fileData %}\r\n结合文件内容 {{ fileData }} 回答用户\r\n{% endif %}\r\n"
role: system role: system
@@ -394,7 +465,7 @@ workflow:
- id: 23264213-e421-4449-b666-a55a0e39e561 - id: 23264213-e421-4449-b666-a55a0e39e561
role: user role: user
text: '' text: ''
selected: false selected: true
title: LLM title: LLM
type: llm type: llm
vision: vision:
@@ -407,7 +478,7 @@ workflow:
positionAbsolute: positionAbsolute:
x: 2674.6343495125943 x: 2674.6343495125943
y: 75.75635633814841 y: 75.75635633814841
selected: false selected: true
sourcePosition: right sourcePosition: right
targetPosition: left targetPosition: left
type: custom type: custom
@@ -496,7 +567,7 @@ workflow:
variable_selector: variable_selector:
- '1762339969303' - '1762339969303'
- item - item
height: 92 height: 104
id: '1762339981310' id: '1762339981310'
parentId: '1762339969303' parentId: '1762339969303'
position: position:
@@ -958,7 +1029,7 @@ workflow:
type: code type: code
variables: variables:
- value_selector: - value_selector:
- '1762511001734' - '1764314675268'
- text - text
value_type: string value_type: string
variable: text variable: text
@@ -1034,10 +1105,44 @@ workflow:
scope: null scope: null
template: null template: null
type: string type: string
- auto_generate: null
default: ''
form: llm
human_description:
en_US: ''
ja_JP: ''
pt_BR: ''
zh_Hans: ''
label:
en_US: dataset_apikey
ja_JP: dataset_apikey
pt_BR: dataset_apikey
zh_Hans: dataset_apikey
llm_description: ''
max: null
min: null
name: dataset_apikey
options: []
placeholder:
en_US: ''
ja_JP: ''
pt_BR: ''
zh_Hans: ''
precision: null
required: true
scope: null
template: null
type: string
params: params:
dataset_apikey: ''
dataset_ids: '' dataset_ids: ''
query: '' query: ''
provider_id: 019a5dd7-5f2b-7767-b2df-82bfda84c7ec plugin_id: null
plugin_unique_identifier: null
provider_icon:
background: '#FFEAD5'
content: 🤖
provider_id: e7e4453f-0667-47fe-be4c-62accfbc7cc6
provider_name: 动态知识库检索 provider_name: 动态知识库检索
provider_type: workflow provider_type: workflow
selected: false selected: false
@@ -1048,6 +1153,9 @@ workflow:
tool_name: dynamic_dataset tool_name: dynamic_dataset
tool_node_version: '2' tool_node_version: '2'
tool_parameters: tool_parameters:
dataset_apikey:
type: mixed
value: '{{#conversation.dataset_apikey#}}'
dataset_ids: dataset_ids:
type: mixed type: mixed
value: '{{#conversation.datasets#}}' value: '{{#conversation.datasets#}}'
@@ -1056,20 +1164,77 @@ workflow:
value: '{{#sys.query#}}' value: '{{#sys.query#}}'
type: tool type: tool
height: 52 height: 52
id: '1762511001734' id: '1764314675268'
position: position:
x: -142.91348174874167 x: -165.1249185156642
y: -247.51043561574136 y: -247.5444668446392
positionAbsolute: positionAbsolute:
x: -142.91348174874167 x: -165.1249185156642
y: -247.51043561574136 y: -247.5444668446392
selected: true selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: not empty
id: 3123b598-113d-453f-b3fc-d04b6e83a35e
value: ''
varType: string
variable_selector:
- conversation
- dataset_apikey
id: 'true'
logical_operator: and
selected: false
title: 条件分支 3
type: if-else
height: 124
id: '1764314703864'
position:
x: -1295.7675522246373
y: -98.76989654474232
positionAbsolute:
x: -1295.7675522246373
y: -98.76989654474232
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
items:
- input_type: variable
operation: over-write
value:
- '1762339910800'
- dataset_apikey
variable_selector:
- conversation
- dataset_apikey
write_mode: over-write
selected: false
title: 变量赋值 2
type: assigner
version: '2'
height: 84
id: '1764314714879'
position:
x: -988.84455927465
y: -5.23303049498395
positionAbsolute:
x: -988.84455927465
y: -5.23303049498395
selected: false
sourcePosition: right sourcePosition: right
targetPosition: left targetPosition: left
type: custom type: custom
width: 242 width: 242
viewport: viewport:
x: 863.6452676587132 x: -1068.6187404167313
y: 446.19950772630614 y: 347.5222255720734
zoom: 0.9236555375410279 zoom: 0.6093853943072881
rag_pipeline_variables: [] rag_pipeline_variables: []