三步翻译工作流
暂无描述
工作流图谱
YAML 源码
app:
description: ''
icon: 🔄
icon_background: '#E0EAFF'
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: start
targetType: llm
id: 1711067409646-1711067429397
source: '1711067409646'
sourceHandle: source
target: '1711067429397'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: llm
id: 1711067429397-1711067578643
source: '1711067429397'
sourceHandle: source
target: '1711067578643'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: llm
id: 1711067578643-1711067817657
source: '1711067578643'
sourceHandle: source
target: '1711067817657'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: llm
id: 1711067817657-1711068087661
source: '1711067817657'
sourceHandle: source
target: '1711068087661'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: end
id: 1711068087661-1711068257370
source: '1711068087661'
sourceHandle: source
target: '1711068257370'
targetHandle: target
type: custom
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: Input Text
max_length: null
options: []
required: true
type: paragraph
variable: input_text
dragging: false
height: 90
id: '1711067409646'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: 识别专有名词
model:
completion_params:
frequency_penalty: 0
max_tokens: 4096
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-4o
provider: langgenius/openai/openai
prompt_template:
- id: e8a1c94f-9b13-46da-8107-2226ec754137
role: system
text: '<任务> 识别用户输入的技术术语。请用{XXX} -> {XXX}的格式展示翻译前后的技术术语对应关系。
<输入文本>
{{#1711067409646.input_text#}}
<示例>
Transformer -> Transformer
Token -> Token
Zero Shot -> 零样本
Few Shot -> 少样本
<专有名词>'
selected: false
title: LLM
type: llm
variables:
- value_selector:
- '1711067409646'
- input_text
variable: input_text
vision:
configs:
detail: high
enabled: true
dragging: false
height: 124
id: '1711067429397'
position:
x: 364
y: 282
positionAbsolute:
x: 364
y: 282
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: 4096
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-4o
provider: langgenius/openai/openai
prompt_template:
- id: 78118932-e541-4926-b7fc-7b83c7cc8c04
role: system
text: "<任务> 您是一名精通简体中文的专业译者,特别是在将专业的学术论文转换为通俗易懂的科普文章方面有着非凡的能力。请协助我把下面的英文段落翻译成中文,使其风格与中文的科普文章相似。\n\
<限制> \n请根据英文内容直接翻译,维持原有的格式,不省略任何信息。\n<翻译前> \n{{#1711067409646.input_text#}}\n\
<直接翻译> "
selected: false
title: LLM 2
type: llm
variables:
- value_selector:
- '1711067409646'
- input_text
variable: input_text
vision:
configs:
detail: high
enabled: true
dragging: false
height: 124
id: '1711067578643'
position:
x: 648
y: 282
positionAbsolute:
x: 648
y: 282
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: 4096
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-4o
provider: langgenius/openai/openai
prompt_template:
- id: 0c5faf03-5905-4a73-bf53-9dba152b8138
role: system
text: '<任务>
根据直接翻译的结果,指出其具体存在的问题。需要提供精确描述,避免含糊其辞,并且无需增添原文中未包含的内容或格式。具体包括但不限于:
不符合中文的表达习惯,请明确指出哪里不合适句子结构笨拙,请指出具体位置,无需提供修改建议,我们将在后续的自由翻译中进行调整表达含糊不清,难以理解,如果可能,可以试图进行解释
<直接翻译>
{{#1711067578643.text#}}
<原文>
{{#1711067409646.input_text#}}
<直接翻译的问题>'
selected: false
title: LLM 3
type: llm
variables:
- value_selector:
- '1711067409646'
- input_text
variable: input_text
- value_selector:
- '1711067578643'
- text
variable: text
vision:
configs:
detail: high
enabled: true
dragging: false
height: 124
id: '1711067817657'
position:
x: 932
y: 282
positionAbsolute:
x: 932
y: 282
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: 4096
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-4o
provider: langgenius/openai/openai
prompt_template:
- id: 525f683d-5246-4053-87e5-8cffd0af349e
role: system
text: "<任务>基于初次直接翻译的成果及随后识别的各项问题,我们将进行一次重新翻译,旨在更准确地传达原文的意义。在这一过程中,我们将致力于确保内容既忠于原意,又更加贴近中文的表达方式,更容易被理解。在此过程中,我们将保持原有格式不变。\n\
<直接翻译> \n{{#1711067578643.text#}}\n<第一次翻译的问题>\n{{#1711067817657.text#}}\n\
<意译> "
selected: false
title: LLM 4
type: llm
variables:
- value_selector:
- '1711067578643'
- text
variable: direct_translation
- value_selector:
- '1711067817657'
- text
variable: problems
vision:
configs:
detail: high
enabled: true
dragging: false
height: 124
id: '1711068087661'
position:
x: 1216
y: 282
positionAbsolute:
x: 1216
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1711068087661'
- text
variable: second_translation
selected: false
title: 结束
type: end
height: 90
id: '1711068257370'
position:
x: 1500
y: 282
positionAbsolute:
x: 1500
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 67.58769549779572
y: 31.79693362346626
zoom: 0.8705505632961248