文本总结工作流
暂无描述
工作流图谱
YAML 源码
app:
description: ''
icon: 📑
icon_background: '#FFEAD5'
mode: workflow
name: 文本总结工作流
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:0.0.13@9caa0421b5519db036aaccdbf1980d1071550767d6c59e9d9388dd386a92e9f6
kind: app
version: 0.1.5
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
image_file_size_limit: 10
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
enabled: false
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
sourceType: knowledge-retrieval
targetType: llm
id: 1711526421923-1711526430540
source: '1711526421923'
sourceHandle: source
target: '1711526430540'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: variable-assigner
id: 1711526430540-1711526428184
source: '1711526430540'
sourceHandle: source
target: '1711526428184'
targetHandle: '1711526430540'
type: custom
- data:
sourceType: llm
targetType: variable-assigner
id: 1711526424455-1711526428184
source: '1711526424455'
sourceHandle: source
target: '1711526428184'
targetHandle: '1711526424455'
type: custom
- data:
sourceType: variable-assigner
targetType: template-transform
id: 1711526428184-1711526522789
source: '1711526428184'
sourceHandle: source
target: '1711526522789'
targetHandle: target
type: custom
- data:
sourceType: template-transform
targetType: end
id: 1711526522789-1711526526878
source: '1711526522789'
sourceHandle: source
target: '1711526526878'
targetHandle: target
type: custom
- data:
sourceType: if-else
targetType: knowledge-retrieval
id: 1712563849389-1711526421923
source: '1712563849389'
sourceHandle: 'true'
target: '1711526421923'
targetHandle: target
type: custom
- data:
sourceType: if-else
targetType: llm
id: 1712563849389-1711526424455
source: '1712563849389'
sourceHandle: 'false'
target: '1711526424455'
targetHandle: target
type: custom
- data:
sourceType: start
targetType: if-else
id: 1711526002155-1712563849389
source: '1711526002155'
sourceHandle: source
target: '1712563849389'
targetHandle: target
type: custom
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: 需要总结的文本
max_length: null
options: []
required: true
type: paragraph
variable: input
- label: 技术摘要 或 概述
max_length: 48
options:
- 技术摘要
- 概述
required: true
type: select
variable: summaryStyle
dragging: false
height: 116
id: '1711526002155'
position:
x: 80.5
y: 515.5
positionAbsolute:
x: 80.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: contains
id: '1712563872930'
value: 技术
variable_selector:
- '1711526002155'
- summaryStyle
logical_operator: and
conditions:
- comparison_operator: contains
id: '1712563872930'
value: 技术
variable_selector:
- '1711526002155'
- summaryStyle
desc: ''
logical_operator: and
selected: false
title: 条件分支
type: if-else
height: 126
id: '1712563849389'
position:
x: 369.5
y: 515.5
positionAbsolute:
x: 369.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
dataset_ids:
- 6084ed3f-d100-4df2-a277-b40d639ea7c6
desc: 如果技术概要就用知识库来获取更详细的信息。
query_variable_selector:
- '1711526002155'
- input
retrieval_mode: single
selected: false
single_retrieval_config:
model:
completion_params: {}
mode: chat
name: gpt-3.5-turbo
provider: openai
title: 知识检索
type: knowledge-retrieval
dragging: false
height: 98
id: '1711526421923'
position:
x: 645.5
y: 515.5
positionAbsolute:
x: 645.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: 生成概述
model:
completion_params:
frequency_penalty: 0
max_tokens: 512
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-3.5-turbo
provider: langgenius/openai/openai
prompt_template:
- role: system
text: '<任务>
对以下文本进行概述式总结。使用与被总结文本相同的语言。
<被总结文本>
{{#1711526002155.input#}}
<总结>'
selected: false
title: LLM 2
type: llm
variables:
- value_selector:
- '1711526002155'
- input
variable: input
vision:
enabled: false
dragging: false
height: 124
id: '1711526424455'
position:
x: 928.5
y: 675.0714285714286
positionAbsolute:
x: 928.5
y: 675.0714285714286
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: 将两个分支合并成一个
output_type: string
selected: false
title: 变脸赋值
type: variable-assigner
variables:
- - '1711526430540'
- text
- - '1711526424455'
- text
dragging: false
height: 158
id: '1711526428184'
position:
x: 1211.5
y: 515.5
positionAbsolute:
x: 1211.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: true
variable_selector:
- '1711526421923'
- result
desc: 用知识检索生成更技术和更准确的总结
model:
completion_params:
frequency_penalty: 0
max_tokens: 512
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-3.5-turbo
provider: langgenius/openai/openai
prompt_template:
- role: system
text: '<任务>
参考知识检索结果。对以下文本进行技术摘要。使用与被摘要文本相同的语言。
<知识>
使用以下上下文作为您所学的知识,在<context></context> XML标签内。
<context>
{{#context#}}
</context>
回答用户时:
- 如果你不知道,就说你不知道。
- 如果你不确定时不知道,就请求澄清。
避免提及你是从上下文中获得的信息。
并根据用户问题的语言回答。
<待摘要的文本>
{{#1711526002155.input#}}
<摘要>'
selected: false
title: LLM
type: llm
variables:
- value_selector:
- '1711526002155'
- input
variable: input
vision:
enabled: false
dragging: false
height: 124
id: '1711526430540'
position:
x: 928.5
y: 515.5
positionAbsolute:
x: 928.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: "<h1> 总结 </h1>\r\n{{ output }}\r\n"
title: 模板转换
type: template-transform
variables:
- value_selector:
- '1711526428184'
- output
variable: output
dragging: false
height: 54
id: '1711526522789'
position:
x: 1494.5
y: 515.5
positionAbsolute:
x: 1494.5
y: 515.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1711526522789'
- output
variable: output
selected: false
title: 结束
type: end
dragging: false
height: 90
id: '1711526526878'
position:
x: 1777.5
y: 515.5
positionAbsolute:
x: 1777.5
y: 515.5
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 62.07916977975219
y: 11.034336842706296
zoom: 0.7578582832...(过长已截断)