工作流修改
This commit is contained in:
@@ -7,7 +7,7 @@ app:
|
||||
use_icon_as_answer_icon: false
|
||||
dependencies: []
|
||||
kind: app
|
||||
version: 0.4.0
|
||||
version: 0.5.0
|
||||
workflow:
|
||||
conversation_variables: []
|
||||
environment_variables: []
|
||||
@@ -136,7 +136,16 @@ workflow:
|
||||
required: true
|
||||
type: text-input
|
||||
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'
|
||||
position:
|
||||
x: 80
|
||||
@@ -250,7 +259,7 @@ workflow:
|
||||
}'
|
||||
type: json
|
||||
desc: ''
|
||||
headers: 'Authorization:Bearer dataset-HeDK9gHBqPnI4rBZ2q2Hm7rV
|
||||
headers: 'Authorization:Bearer {{#1747125462435.dataset_apikey#}}
|
||||
|
||||
Content-Type:application/json'
|
||||
isInIteration: true
|
||||
@@ -260,7 +269,7 @@ workflow:
|
||||
params: ''
|
||||
retry_config:
|
||||
max_retries: 3
|
||||
retry_enabled: true
|
||||
retry_enabled: false
|
||||
retry_interval: 100
|
||||
selected: false
|
||||
ssl_verify: true
|
||||
@@ -270,9 +279,9 @@ workflow:
|
||||
max_write_timeout: 0
|
||||
title: HTTP 请求
|
||||
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: []
|
||||
height: 157
|
||||
height: 111
|
||||
id: '1747125795256'
|
||||
parentId: '1747125586388'
|
||||
position:
|
||||
@@ -351,7 +360,7 @@ workflow:
|
||||
type: custom
|
||||
width: 242
|
||||
viewport:
|
||||
x: 116.27083894320822
|
||||
y: 126.27330841264018
|
||||
x: -967.224047730792
|
||||
y: 147.70051636546336
|
||||
zoom: 0.8705505632961247
|
||||
rag_pipeline_variables: []
|
||||
|
||||
@@ -9,17 +9,25 @@ dependencies:
|
||||
- current_identifier: null
|
||||
type: marketplace
|
||||
value:
|
||||
marketplace_plugin_unique_identifier: langgenius/siliconflow:0.0.34@1c203017d8ef49fd9152696a42e6dc71ecf272b115d8caf731c99ee0d2956dce
|
||||
marketplace_plugin_unique_identifier: anspire/anspire_search:0.0.9@a59824e9507c05c81d582cc5d8384197215d91bf5c787150d8aad723eb5d1a69
|
||||
version: null
|
||||
- current_identifier: null
|
||||
type: marketplace
|
||||
value:
|
||||
marketplace_plugin_unique_identifier: anspire/anspire_search:0.0.9@a59824e9507c05c81d582cc5d8384197215d91bf5c787150d8aad723eb5d1a69
|
||||
marketplace_plugin_unique_identifier: langgenius/ollama:0.1.0@7c18c74b94a855de83aa66f376939d47b96a49b6dbb6904b46b267cb0213396e
|
||||
version: null
|
||||
kind: app
|
||||
version: 0.4.0
|
||||
version: 0.5.0
|
||||
workflow:
|
||||
conversation_variables:
|
||||
- description: ''
|
||||
id: 71e3f805-8445-46b1-bd43-8af398234527
|
||||
name: dataset_apikey
|
||||
selector:
|
||||
- conversation
|
||||
- dataset_apikey
|
||||
value: ''
|
||||
value_type: string
|
||||
- description: ''
|
||||
id: e18aacca-16a2-4d93-80c4-5a85ead53ae4
|
||||
name: datasets
|
||||
@@ -225,19 +233,6 @@ workflow:
|
||||
targetHandle: target
|
||||
type: custom
|
||||
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:
|
||||
isInIteration: false
|
||||
isInLoop: false
|
||||
@@ -257,6 +252,7 @@ workflow:
|
||||
sourceType: code
|
||||
targetType: iteration
|
||||
id: 1762510470105-source-1762339969303-target
|
||||
selected: false
|
||||
source: '1762510470105'
|
||||
sourceHandle: source
|
||||
target: '1762339969303'
|
||||
@@ -268,21 +264,11 @@ workflow:
|
||||
isInLoop: false
|
||||
sourceType: if-else
|
||||
targetType: tool
|
||||
id: 1762421892949-true-1762511001734-target
|
||||
id: 1762421892949-true-1764314675268-target
|
||||
selected: false
|
||||
source: '1762421892949'
|
||||
sourceHandle: 'true'
|
||||
target: '1762511001734'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
- data:
|
||||
isInLoop: false
|
||||
sourceType: assigner
|
||||
targetType: tool
|
||||
id: 1762509024795-source-1762511001734-target
|
||||
source: '1762509024795'
|
||||
sourceHandle: source
|
||||
target: '1762511001734'
|
||||
target: '1764314675268'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
@@ -290,13 +276,76 @@ workflow:
|
||||
isInLoop: false
|
||||
sourceType: tool
|
||||
targetType: code
|
||||
id: 1762511001734-source-1762510470105-target
|
||||
source: '1762511001734'
|
||||
id: 1764314675268-source-1762510470105-target
|
||||
selected: false
|
||||
source: '1764314675268'
|
||||
sourceHandle: source
|
||||
target: '1762510470105'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
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:
|
||||
- data:
|
||||
selected: false
|
||||
@@ -321,14 +370,32 @@ workflow:
|
||||
required: true
|
||||
type: text-input
|
||||
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'
|
||||
position:
|
||||
x: -1233.1402302396395
|
||||
y: 149.5782401176896
|
||||
x: -1704.106555788423
|
||||
y: 174.193204867626
|
||||
positionAbsolute:
|
||||
x: -1233.1402302396395
|
||||
y: 149.5782401176896
|
||||
x: -1704.106555788423
|
||||
y: 174.193204867626
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
@@ -354,8 +421,8 @@ workflow:
|
||||
model:
|
||||
completion_params: {}
|
||||
mode: chat
|
||||
name: deepseek-ai/DeepSeek-V3
|
||||
provider: langgenius/siliconflow/siliconflow
|
||||
name: qwen-14b
|
||||
provider: langgenius/ollama/ollama
|
||||
prompt_config:
|
||||
jinja2_variables:
|
||||
- value_selector:
|
||||
@@ -370,10 +437,14 @@ workflow:
|
||||
- '1762510470105'
|
||||
- result
|
||||
variable: result
|
||||
- value_selector:
|
||||
- '1762339910800'
|
||||
- promt
|
||||
variable: promt
|
||||
prompt_template:
|
||||
- edition_type: jinja2
|
||||
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{% if fileData %}\r\n结合文件内容 {{ fileData }} 回答用户\r\n{% endif %}\r\n"
|
||||
role: system
|
||||
@@ -394,7 +465,7 @@ workflow:
|
||||
- id: 23264213-e421-4449-b666-a55a0e39e561
|
||||
role: user
|
||||
text: ''
|
||||
selected: false
|
||||
selected: true
|
||||
title: LLM
|
||||
type: llm
|
||||
vision:
|
||||
@@ -407,7 +478,7 @@ workflow:
|
||||
positionAbsolute:
|
||||
x: 2674.6343495125943
|
||||
y: 75.75635633814841
|
||||
selected: false
|
||||
selected: true
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
@@ -496,7 +567,7 @@ workflow:
|
||||
variable_selector:
|
||||
- '1762339969303'
|
||||
- item
|
||||
height: 92
|
||||
height: 104
|
||||
id: '1762339981310'
|
||||
parentId: '1762339969303'
|
||||
position:
|
||||
@@ -958,7 +1029,7 @@ workflow:
|
||||
type: code
|
||||
variables:
|
||||
- value_selector:
|
||||
- '1762511001734'
|
||||
- '1764314675268'
|
||||
- text
|
||||
value_type: string
|
||||
variable: text
|
||||
@@ -1034,10 +1105,44 @@ workflow:
|
||||
scope: null
|
||||
template: null
|
||||
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:
|
||||
dataset_apikey: ''
|
||||
dataset_ids: ''
|
||||
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_type: workflow
|
||||
selected: false
|
||||
@@ -1048,6 +1153,9 @@ workflow:
|
||||
tool_name: dynamic_dataset
|
||||
tool_node_version: '2'
|
||||
tool_parameters:
|
||||
dataset_apikey:
|
||||
type: mixed
|
||||
value: '{{#conversation.dataset_apikey#}}'
|
||||
dataset_ids:
|
||||
type: mixed
|
||||
value: '{{#conversation.datasets#}}'
|
||||
@@ -1056,20 +1164,77 @@ workflow:
|
||||
value: '{{#sys.query#}}'
|
||||
type: tool
|
||||
height: 52
|
||||
id: '1762511001734'
|
||||
id: '1764314675268'
|
||||
position:
|
||||
x: -142.91348174874167
|
||||
y: -247.51043561574136
|
||||
x: -165.1249185156642
|
||||
y: -247.5444668446392
|
||||
positionAbsolute:
|
||||
x: -142.91348174874167
|
||||
y: -247.51043561574136
|
||||
selected: true
|
||||
x: -165.1249185156642
|
||||
y: -247.5444668446392
|
||||
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
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 242
|
||||
viewport:
|
||||
x: 863.6452676587132
|
||||
y: 446.19950772630614
|
||||
zoom: 0.9236555375410279
|
||||
x: -1068.6187404167313
|
||||
y: 347.5222255720734
|
||||
zoom: 0.6093853943072881
|
||||
rag_pipeline_variables: []
|
||||
|
||||
Reference in New Issue
Block a user