Simultaneous Multilingual Translation_1.1
# Add parallel features to speed up translation Simultaneous output of multiple translations with a single input 一次输入,多种翻译同时输出
工作流图谱
YAML 源码
app:
description: '# Add parallel features to speed up translation
Simultaneous output of multiple translations with a single input
一次输入,多种翻译同时输出'
icon: biting_lip
icon_background: '#FFEAD5'
mode: advanced-chat
name: Simultaneous Multilingual Translation_1.1
use_icon_as_answer_icon: true
kind: app
version: 0.1.3
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: '我已了解你的翻译要求,直接发送要翻译的内容给我,稍等片刻,我将为你提供翻译结果~😄
I have understood your translation requirements, send me the content to be translated
directly, wait a moment, I will provide you with the translation results~'
retriever_resource:
enabled: true
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:
isInIteration: false
sourceType: start
targetType: llm
id: 1728905819683-source-1728911450642-target
selected: false
source: '1728905819683'
sourceHandle: source
target: '1728911450642'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: code
id: 1728911450642-source-1728913424986-target
selected: false
source: '1728911450642'
sourceHandle: source
target: '1728913424986'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: llm
targetType: llm
id: 1728912661000-source-1729394715737-target
selected: false
source: '1728912661000'
sourceHandle: source
target: '1729394715737'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: llm
targetType: llm
id: 1729394715737-source-1729394720619-target
selected: false
source: '1729394715737'
sourceHandle: source
target: '1729394720619'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: iteration-start
targetType: code
id: 1728912649383start-source-1729394862920-target
selected: false
source: 1728912649383start
sourceHandle: source
target: '1729394862920'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: code
targetType: llm
id: 1729394862920-source-1728912661000-target
selected: false
source: '1729394862920'
sourceHandle: source
target: '1728912661000'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: llm
targetType: template-transform
id: 1729394720619-source-1729395276354-target
selected: false
source: '1729394720619'
sourceHandle: source
target: '1729395276354'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '1728912649383'
sourceType: template-transform
targetType: answer
id: 1729395276354-source-1728912665829-target
selected: false
source: '1729395276354'
sourceHandle: source
target: '1728912665829'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: code
targetType: if-else
id: 1728913424986-source-1729416391754-target
selected: false
source: '1728913424986'
sourceHandle: source
target: '1729416391754'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: iteration
id: 1729416391754-true-1728912649383-target
selected: false
source: '1729416391754'
sourceHandle: 'true'
target: '1728912649383'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: iteration
id: 1729416391754-false-17294164297430-target
selected: false
source: '1729416391754'
sourceHandle: 'false'
target: '17294164297430'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '17294164297430'
sourceType: iteration-start
targetType: code
id: 1729416429743start-source-1729416429743017294164297434-target
selected: false
source: 1729416429743start
sourceHandle: source
target: '1729416429743017294164297434'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '17294164297430'
sourceType: code
targetType: llm
id: 1729416429743017294164297434-source-1729416429743017294164297430-target
selected: false
source: '1729416429743017294164297434'
sourceHandle: source
target: '1729416429743017294164297430'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '17294164297430'
sourceType: llm
targetType: template-transform
id: 1729416429743017294164297430-source-1729416429743017294164297435-target
source: '1729416429743017294164297430'
sourceHandle: source
target: '1729416429743017294164297435'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '17294164297430'
sourceType: template-transform
targetType: answer
id: 1729416429743017294164297435-source-1729416429743017294164297431-target
source: '1729416429743017294164297435'
sourceHandle: source
target: '1729416429743017294164297431'
targetHandle: target
type: custom
zIndex: 1002
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: Target Languages/目标语言(支持多种语言,用空格分隔)
max_length: 500
options:
- ''
required: true
type: paragraph
variable: language
- label: Style/翻译风格场景(如推特推文、押韵诗歌、技术报告等)
max_length: 100
options: []
required: true
type: text-input
variable: style
- label: Mode/翻译模式
max_length: 48
options:
- 质量优先模式
- 速度优先模式
required: true
type: select
variable: mode
height: 142
id: '1728905819683'
position:
x: 91.36343029591596
y: 383.5803612688547
positionAbsolute:
x: 91.36343029591596
y: 383.5803612688547
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: Qwen/Qwen2.5-7B-Instruct
provider: siliconflow
prompt_template:
- id: 29e84a93-8304-42e2-a6d8-4becee2f488e
role: system
text: "你是一个翻译参数提取大师,擅长将用户的输入转换为list列表对象,每个元素其中包含语言属性`language`,翻译风格属性`style`,具体示例如下:\n\
\n<INPUT Example>\nLanguage: 中文 英文 日文\nStyle: Twitter Post\n</INPUT Example>\n\
<Output Example>\n[\n {\n \"language\": \"中文\",\n \"style\"\
: \"Twitter Post\"\n },\n {\n \"language\": \"英文\",\n \
\ \"style\": \"Twitter Post\"\n },\n {\n \"language\": \"日文\"\
,\n \"style\": \"Twitter Post\"\n }\n]\n</Output Example>\n\n\
请遵循以上指令,对用户输入进行转换,只输出list转换结果,不输出其他内容。"
- id: 9a1b838f-8de2-4e1b-a269-054e5eb5a939
role: user
text: '<INPUT>
Language: {{#1728905819683.language#}}
Style: {{#1728905819683.style#}}
</INPUT>'
selected: false
title: 准备翻译流程
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1728911450642'
position:
x: 453.65904358955447
y: 383.5803612688547
positionAbsolute:
x: 453.65904358955447
y: 383.5803612688547
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
error_handle_mode: terminated
height: 517
is_parallel: true
iterator_selector:
- '1728913424986'
- result
output_selector:
- '1729395276354'
- output
output_type: array[string]
parallel_nums: 10
selected: true
start_node_id: 1728912649383start
title: 多语言翻译(质量优先)
...(过长已截断)