Showing preview only (975K chars total). Download the full file or copy to clipboard to get everything.
Repository: svcvit/Awesome-Dify-Workflow
Branch: main
Commit: 7fdc2e7747d5
Files: 52
Total size: 944.0 KB
Directory structure:
gitextract__t742dxo/
├── DSL/
│ ├── AgentFlow.yml
│ ├── Agent工具调用.yml
│ ├── Artifact.yml
│ ├── Claude3 Code Translation.yml
│ ├── Deep Researcher On Dify .yml
│ ├── Demo-tod_agent.yml
│ ├── Dify 运营一条龙.yml
│ ├── Document_chat_template.yml
│ ├── DuckDuckGo翻译+LLM二次翻译.yml
│ ├── File_read.yml
│ ├── Form表单聊天Demo.yml
│ ├── Jina Reader Jinja.yml
│ ├── LanguageConsistencyChecker.yml
│ ├── MCP-amap.yml
│ ├── MCP.yml
│ ├── Python Coding Prompt.yml
│ ├── SEO Slug Generator.yml
│ ├── Text to Card Iteration.yml
│ ├── chart_demo.yml
│ ├── dify_course_demo.yml
│ ├── jieba.yml
│ ├── json-repair.yml
│ ├── json_translate.yml
│ ├── llm2o1.cn.yml
│ ├── matplotlib.yml
│ ├── runLLMCode.yml
│ ├── simple-kimi.yml
│ ├── translation_workflow.yml
│ ├── 中译英.yml
│ ├── 全书翻译.yml
│ ├── 图文知识库/
│ │ ├── 图文知识库.yml
│ │ └── 知识库内容/
│ │ ├── coffbox开启Gemini和Anthropic代理,chatwise连接方法.md
│ │ └── 我是技术小白,如何用好DIFY.md
│ ├── 完蛋!我被LLM包围了! .yml
│ ├── 完蛋!我被LLM包围了!(战绩排行版).yml
│ ├── 宝玉的英译中优化版.yml
│ ├── 小支付-DEMO.yml
│ ├── 思考助手.yml
│ ├── 搜索大师.yml
│ ├── 文章仿写-单图_多图自动搭配.yml
│ ├── 旅行Demo.yml
│ ├── 春联生成器 (“福”到了版本).yml
│ ├── 春联生成器.yml
│ ├── 标题党创作.yml
│ ├── 根据用户的意图进行回复.yml
│ ├── 瞎说新语v2.yml
│ ├── 腾讯云SubtitleInfo.yml
│ └── 记忆测试.yml
├── LICENSE
├── README.md
├── README_EN.md
└── chat_history.md
================================================
FILE CONTENTS
================================================
================================================
FILE: DSL/AgentFlow.yml
================================================
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: advanced-chat
name: AgentFlow
use_icon_as_answer_icon: false
dependencies: []
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
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
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: agent
id: 1740638793787-source-1740645185279-target
selected: false
source: '1740638793787'
sourceHandle: source
target: '1740645185279'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: agent
targetType: answer
id: 1740645185279-source-answer-target
selected: false
source: '1740645185279'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables: []
height: 52
id: '1740638793787'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#1740645185279.text#}}'
desc: ''
selected: false
title: 直接回复
type: answer
variables: []
height: 101
id: answer
position:
x: 707.4166600208597
y: 288.61610048493054
positionAbsolute:
x: 707.4166600208597
y: 288.61610048493054
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
agent_parameters:
model:
type: constant
value:
completion_params: {}
mode: chat
model: gpt-4o-mini
model_type: llm
provider: langgenius/openai/openai
type: model-selector
query:
type: constant
value: '{{#sys.query#}}'
storage_key:
type: constant
value: '{{#sys.conversation_id#}}'
task_schema:
type: constant
value: " {\n \"fields\": [\n {\n \"name\"\
: \"destination\",\n \"question\": \"请问您想去哪里旅行?\",\n \
\ \"required\": true\n },\n {\n \
\ \"name\": \"duration\",\n \"question\": \"您计划旅行多长时间?\"\
,\n \"required\": true\n },\n {\n \
\ \"name\": \"budget\",\n \"question\": \"您的预算大约是多少?\"\
,\n \"required\": true\n }\n ]\n }"
agent_strategy_label: 多轮对话
agent_strategy_name: TOD
agent_strategy_provider_name: afeaad50-3ca8-4d6b-8e95-ca6993bb2951/agent/agent
desc: ''
output_schema: null
plugin_unique_identifier: afeaad50-3ca8-4d6b-8e95-ca6993bb2951/agent:0.0.1@041f354ba09c869b9e16a69d6a5dfea1f46acdb24fedd355e26a93c9bbc3b531
selected: false
title: Agent
type: agent
height: 144
id: '1740645185279'
position:
x: 382.6767799030139
y: 282
positionAbsolute:
x: 382.6767799030139
y: 282
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: -41.014528411562424
y: 38.07301894574641
zoom: 0.8637955574370334
================================================
FILE: DSL/Agent工具调用.yml
================================================
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: advanced-chat
name: Agent工具调用
use_icon_as_answer_icon: false
dependencies: []
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: 5
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: 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: agent
id: 1739781961838-source-1739781971571-target
source: '1739781961838'
sourceHandle: source
target: '1739781971571'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: agent
targetType: answer
id: 1739781971571-source-answer-target
source: '1739781971571'
sourceHandle: source
target: answer
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables: []
height: 54
id: '1739781961838'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
agent_parameters:
instruction:
type: constant
value: 根据用户的需求,调用不同工具,回复用的内容。
model:
type: constant
value:
completion_params: {}
mode: chat
model: gpt-4o-mini
model_type: llm
provider: langgenius/openai/openai
type: model-selector
query:
type: constant
value: '{{#sys.query#}}'
tools:
type: constant
value:
- enabled: true
extra:
description: ''
parameters: {}
provider_name: time
schemas:
- auto_generate: null
default: '%Y-%m-%d %H:%M:%S'
form: form
human_description:
en_US: Time format in strftime standard.
ja_JP: Time format in strftime standard.
pt_BR: Time format in strftime standard.
zh_Hans: strftime 标准的时间格式。
label:
en_US: Format
ja_JP: Format
pt_BR: Format
zh_Hans: 格式
llm_description: null
max: null
min: null
name: format
options: []
placeholder: null
precision: null
required: false
scope: null
template: null
type: string
- auto_generate: null
default: UTC
form: form
human_description:
en_US: Timezone
ja_JP: Timezone
pt_BR: Timezone
zh_Hans: 时区
label:
en_US: Timezone
ja_JP: Timezone
pt_BR: Timezone
zh_Hans: 时区
llm_description: null
max: null
min: null
name: timezone
options:
- label:
en_US: UTC
ja_JP: UTC
pt_BR: UTC
zh_Hans: UTC
value: UTC
- label:
en_US: America/New_York
ja_JP: America/New_York
pt_BR: America/New_York
zh_Hans: 美洲/纽约
value: America/New_York
- label:
en_US: America/Los_Angeles
ja_JP: America/Los_Angeles
pt_BR: America/Los_Angeles
zh_Hans: 美洲/洛杉矶
value: America/Los_Angeles
- label:
en_US: America/Chicago
ja_JP: America/Chicago
pt_BR: America/Chicago
zh_Hans: 美洲/芝加哥
value: America/Chicago
- label:
en_US: America/Sao_Paulo
ja_JP: America/Sao_Paulo
pt_BR: América/São Paulo
zh_Hans: 美洲/圣保罗
value: America/Sao_Paulo
- label:
en_US: Asia/Shanghai
ja_JP: Asia/Shanghai
pt_BR: Asia/Shanghai
zh_Hans: 亚洲/上海
value: Asia/Shanghai
- label:
en_US: Asia/Ho_Chi_Minh
ja_JP: Asia/Ho_Chi_Minh
pt_BR: Ásia/Ho Chi Minh
zh_Hans: 亚洲/胡志明市
value: Asia/Ho_Chi_Minh
- label:
en_US: Asia/Tokyo
ja_JP: Asia/Tokyo
pt_BR: Asia/Tokyo
zh_Hans: 亚洲/东京
value: Asia/Tokyo
- label:
en_US: Asia/Dubai
ja_JP: Asia/Dubai
pt_BR: Asia/Dubai
zh_Hans: 亚洲/迪拜
value: Asia/Dubai
- label:
en_US: Asia/Kolkata
ja_JP: Asia/Kolkata
pt_BR: Asia/Kolkata
zh_Hans: 亚洲/加尔各答
value: Asia/Kolkata
- label:
en_US: Asia/Seoul
ja_JP: Asia/Seoul
pt_BR: Asia/Seoul
zh_Hans: 亚洲/首尔
value: Asia/Seoul
- label:
en_US: Asia/Singapore
ja_JP: Asia/Singapore
pt_BR: Asia/Singapore
zh_Hans: 亚洲/新加坡
value: Asia/Singapore
- label:
en_US: Europe/London
ja_JP: Europe/London
pt_BR: Europe/London
zh_Hans: 欧洲/伦敦
value: Europe/London
- label:
en_US: Europe/Berlin
ja_JP: Europe/Berlin
pt_BR: Europe/Berlin
zh_Hans: 欧洲/柏林
value: Europe/Berlin
- label:
en_US: Europe/Moscow
ja_JP: Europe/Moscow
pt_BR: Europe/Moscow
zh_Hans: 欧洲/莫斯科
value: Europe/Moscow
- label:
en_US: Australia/Sydney
ja_JP: Australia/Sydney
pt_BR: Australia/Sydney
zh_Hans: 澳大利亚/悉尼
value: Australia/Sydney
- label:
en_US: Pacific/Auckland
ja_JP: Pacific/Auckland
pt_BR: Pacific/Auckland
zh_Hans: 太平洋/奥克兰
value: Pacific/Auckland
- label:
en_US: Africa/Cairo
ja_JP: Africa/Cairo
pt_BR: Africa/Cairo
zh_Hans: 非洲/开罗
value: Africa/Cairo
placeholder: null
precision: null
required: false
scope: null
template: null
type: select
settings:
format:
value: '%Y-%m-%d %H:%M:%S'
timezone:
value: UTC
tool_label: 获取当前时间
tool_name: current_time
type: builtin
- enabled: true
extra:
description: ''
parameters:
query:
auto: 1
value: null
provider_name: langgenius/duckduckgo/duckduckgo
schemas:
- auto_generate: null
default: null
form: llm
human_description:
en_US: The search query.
ja_JP: The search query.
pt_BR: The search query.
zh_Hans: 搜索查询语句。
label:
en_US: Query string
ja_JP: Query string
pt_BR: Query string
zh_Hans: 查询语句
llm_description: Key words for searching
max: null
min: null
name: query
options: []
placeholder: null
precision: null
required: true
scope: null
template: null
type: string
- auto_generate: null
default: 5
form: form
human_description:
en_US: The maximum number of results to return.
ja_JP: The maximum number of results to return.
pt_BR: The maximum number of results to return.
zh_Hans: 最大结果数量
label:
en_US: Max results
ja_JP: Max results
pt_BR: Max results
zh_Hans: 最大结果数量
llm_description: ''
max: null
min: null
name: max_results
options: []
placeholder: null
precision: null
required: true
scope: null
template: null
type: number
- auto_generate: null
default: 0
form: form
human_description:
en_US: Whether to pass the search results to llm for summarization.
ja_JP: Whether to pass the search results to llm for summarization.
pt_BR: Whether to pass the search results to llm for summarization.
zh_Hans: 是否需要将搜索结果传给大模型总结
label:
en_US: Require Summary
ja_JP: Require Summary
pt_BR: Require Summary
zh_Hans: 是否总结
llm_description: ''
max: null
min: null
name: require_summary
options: []
placeholder: null
precision: null
required: false
scope: null
template: null
type: boolean
settings:
max_results:
value: 5
require_summary:
value: 0
tool_label: DuckDuckGo 搜索
tool_name: ddgo_search
type: builtin
- enabled: false
extra:
description: ''
parameters:
city:
auto: 1
value: null
provider_name: langgenius/openweather/openweather
schemas:
- auto_generate: null
default: null
form: llm
human_description:
en_US: Target city for weather forecast query
ja_JP: Target city for weather forecast query
pt_BR: Cidade de destino para consulta de previsão do tempo
zh_Hans: 天气预报查询的目标城市
label:
en_US: city
ja_JP: city
pt_BR: cidade
zh_Hans: 城市
llm_description: If you don't know you can extract the city name from
the question or you can reply:Please tell me your city. You have
to extract the Chinese city name from the question.If the input
region is in Chinese characters for China, it should be replaced
with the corresponding English name, such as '北京' for correct input
is 'Beijing'
max: null
min: null
name: city
options: []
placeholder: null
precision: null
required: true
scope: null
template: null
type: string
- auto_generate: null
default: zh_cn
form: form
human_description:
en_US: language
ja_JP: language
pt_BR: language
zh_Hans: 语言
label:
en_US: language
ja_JP: language
pt_BR: language
zh_Hans: 语言
llm_description: ''
max: null
min: null
name: lang
options:
- label:
en_US: cn
ja_JP: cn
pt_BR: cn
zh_Hans: 中国
value: zh_cn
- label:
en_US: usa
ja_JP: usa
pt_BR: usa
zh_Hans: 美国
value: en_us
placeholder: null
precision: null
required: true
scope: null
template: null
type: select
- auto_generate: null
default: metric
form: form
human_description:
en_US: units for temperature
ja_JP: units for temperature
pt_BR: units for temperature
zh_Hans: 温度单位
label:
en_US: units
ja_JP: units
pt_BR: units
zh_Hans: 单位
llm_description: ''
max: null
min: null
name: units
options:
- label:
en_US: metric
ja_JP: metric
pt_BR: metric
zh_Hans: ℃
value: metric
- label:
en_US: imperial
ja_JP: imperial
pt_BR: imperial
zh_Hans: ℉
value: imperial
placeholder: null
precision: null
required: true
scope: null
template: null
type: select
settings:
lang:
value: zh_cn
units:
value: metric
tool_label: 天气查询
tool_name: weather
type: builtin
agent_strategy_label: FunctionCalling
agent_strategy_name: function_calling
agent_strategy_provider_name: langgenius/agent/agent
desc: ''
output_schema: null
plugin_unique_identifier: langgenius/agent:0.0.4@5eb03c08764cc37249f9ef18b89903a99493f6d02c4d5b8ffb40b9f7ef4e865c
selected: true
title: Agent
type: agent
height: 198
id: '1739781971571'
position:
x: 380
y: 282
positionAbsolute:
x: 380
y: 282
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1739781971571.text#}}'
desc: ''
selected: false
title: 直接回复
type: answer
variables: []
height: 103
id: answer
position:
x: 680
y: 282
positionAbsolute:
x: 680
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 4.833333333333201
y: -42.25
zoom: 0.8333333333333334
================================================
FILE: DSL/Artifact.yml
================================================
app:
description: Artifact
icon: 🤖
icon_background: '#FFEAD5'
mode: advanced-chat
name: Artifact
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/volcengine_maas:0.0.7@f8e44422cfa5b9a6ac1f2d3b43ef1069868efdad1e5cec2590de3f53ceac37b0
kind: app
version: 0.2.0
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: 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:
sourceType: start
targetType: llm
id: 1745404962666-llm
source: '1745404962666'
sourceHandle: source
target: llm
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: answer
id: llm-answer
source: llm
sourceHandle: source
target: answer
targetHandle: target
type: custom
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables: []
height: 52
id: '1745404962666'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: '{{#sys.query#}}'
role_prefix:
assistant: ''
user: ''
window:
enabled: true
size: 10
model:
completion_params: {}
mode: chat
name: deepseek-v3-250324
provider: langgenius/volcengine_maas/volcengine_maas
prompt_template:
- role: system
text: 你是一个小助手
selected: true
title: LLM
type: llm
variables: []
vision:
enabled: false
height: 88
id: llm
position:
x: 380
y: 282
positionAbsolute:
x: 380
y: 282
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#llm.text#}}'
desc: ''
selected: false
title: 直接回复
type: answer
variables: []
height: 103
id: answer
position:
x: 680
y: 282
positionAbsolute:
x: 680
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: 0
y: 0
zoom: 1
================================================
FILE: DSL/Claude3 Code Translation.yml
================================================
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: workflow
name: Claude3 Code Translation
use_icon_as_answer_icon: false
kind: app
version: 0.1.2
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
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:
isInIteration: false
sourceType: start
targetType: llm
id: 1720505581749-source-1720506191043-target
selected: false
source: '1720505581749'
sourceHandle: source
target: '1720506191043'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: iteration
id: 1720508367130-source-1720580108806-target
selected: false
source: '1720508367130'
sourceHandle: source
target: '1720580108806'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: code
id: 1720580108806-source-1720580885073-target
selected: false
source: '1720580108806'
sourceHandle: source
target: '1720580885073'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: end
id: 1720580885073-source-1720582990256-target
selected: false
source: '1720580885073'
sourceHandle: source
target: '1720582990256'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: tool
id: 1720506191043-source-1723619551968-target
source: '1720506191043'
sourceHandle: source
target: '1723619551968'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: code
id: 1723619551968-source-1720508367130-target
source: '1723619551968'
sourceHandle: source
target: '1720508367130'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1720580108806'
sourceType: iteration-start
targetType: llm
id: 1720580108806start0-source-1720580171037-target
source: 1720580108806start0
sourceHandle: source
target: '1720580171037'
targetHandle: target
type: custom
zIndex: 1002
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables:
- label: 需要翻译的代码文件内容
max_length: 33024
options: []
required: true
type: paragraph
variable: code_to_translate
- label: 相关依赖库的代码内容
max_length: 33024
options: []
required: false
type: paragraph
variable: related_files_content
- label: 待翻译文件的文件名
max_length: 256
options: []
required: true
type: text-input
variable: code_file_name
- label: 源代码语言(例如Python)
max_length: 48
options:
- python
- java
required: true
type: select
variable: src_lang
- label: 目标编程语言(例如Java)
max_length: 48
options:
- java
- python
required: true
type: select
variable: dest_lang
height: 194
id: '1720505581749'
position:
x: 30
y: 301.5
positionAbsolute:
x: 30
y: 301.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
stop:
- '```'
temperature: 0.1
mode: chat
name: anthropic.claude-3-5-sonnet-20240620-v1:0
provider: bedrock
prompt_template:
- id: 2e5e4e13-2974-440b-9ee5-c015d9aae4ba
role: system
text: "# Role\n你接下来cosplay一个专业的程序猿,精通python java go 等多种语言。\n\n# Task\n你的任务是帮助我将项目的编程语言从{{#1720505581749.src_lang#}}翻译到{{#1720505581749.dest_lang#}}。但是由于输出长度限制,你需要分两次回复来生成完整的代码。\n\
\n第一次回复的目的是生成代码主体结构,但对于中的类、函数,你只需要给出对应的签名即可,不要给出具体实现。\n注意分析相关代码文件,并据此帮你识别内置依赖库和自定义依赖,在你的回复中,不要遗漏import对应的库。\n\
\n# 相关代码文件\n如下是可能与原始代码有关的文件(可能为空)。\n{{#1720505581749.related_files_content#}}\n\
\n# 输出格式\n\n## 第一次输出\n输出采用YAML格式,其中`type`的取值及定义如下: \n- `import`表示依赖包引入代码\n\
- `class`表示类定义,注意java只允许有一个顶层类(通常是与文件同名的类)是public的,其余顶层类不可以使用public修饰。\n\
- `function`表示函数定义,每个函数都有自己的签名\n- `literal`表示不包含在任何函数或类中的代码行,如果存在,则需要给出完整目标语言的代码。main\
\ 函数中的内容不要放在这里。\n\n### 限制\n- `type`的顺序需要严格按照目标翻译代码的嵌套关系及顺序排列,`type` 不可以为其他值,输出必须要满足YAML格式的有效性。\n\
- 生成的代码必须要符合目标语言{{#1720505581749.dest_lang#}}的语法规则,不要放错函数的位置。如果类中属性需要在此类外使用,则要定义相关的属性访问器。\n\
- `cls_attr` 中的 `need_public_getter` 表示是否需要生成public的getter方法,如果此属性被跨类访问,则必须为true。\n\
### 第一次回复的结构示例\n```yaml\nout_file_name: <outfile.ext>\nthinking: | \n\
\ your thinking if any, better not exceeds 80 words.\n{dest_lang}:\n\
\ - type: import\n codes: |\n import java.util.ArrayList\n\
\ ...\n - type: literal\n codes: |\n int a = 0;\n\
\ ...\n - type: class\n name: Main\n signature: public\
\ static void main(String[] args) # 必须\n attributes: # 必须,除非此类不包含任何属性\n\
\ - type: cls_attr\n signature: private int a;\n \
\ need_public_getter: true | false\n - type: inst_attr\n \
\ signature: String str;\n - type: function\n name:\
\ incr\n signature: static int incr(int a, int b)\n -\
\ type: function\n name: main # this is required for the main\
\ class\n signature: public static void main(String[] args) \n\
\ - type: class\n name: Foo\n signature: public\
\ class Foo\n - ...\n - ...\n```\n\n注意,你不需要给出任何解释,只需要给出代码主体即可。\n\
\n### 第一次回复的示例(python -> java)\n输入:\n- 文件名: dog.py\n```python\nimport\
\ time\n\ncurrent_time = time.time()\n\ndef my_func(a):\n return a\
\ + 1\n\nclass Dog:\n species = \"Canis familiaris\"\n\n def __init__(self,\
\ name, age):\n self.name = name\n self.age = age\n\n \
\ def description(self):\n return self.name + \"is \" + self.age\
\ + \" years old\"\n\n def speak(self, sound):\n return self.name\
\ + \"says \" + sound\n\nmiles = Dog(\"Miles\", 4)\n\nprint(miles.description())\
\ # Output: Miles is 4 years old\n\nprint(\"Miles is a \" + miles.species)\
\ # Output: Miles is a Canis familiaris\n```\n\n输出:\n```yaml\nout_file_name:\
\ Dog.java\nthinking: | \n your thinking ...\njava:\n - type: import\n\
\ codes: |\n import java.time.Instant;\n\n - type: class\n\
\ name: Dog\n signature: public class Dog\n attributes:\n\
\ - type: cls_attr\n signature: static String species\
\ = \"Canis familiaris\";\n need_public_getter: false\n \
\ - type: inst_attr\n signature: String name;\n - type:\
\ inst_attr\n signature: Int age;\n - type: function\n\
\ name: Dog\n signature: Dog(String name, int age)\n\
\ - type: function\n name: description\n signature:\
\ String description()\n - type: function\n name: speak\n\
\ signature: String speak(String sound)\n - type: function\n\
\ name: main\n signature: public static void main(String[]\
\ args)\n```\n\n## 第二次输出\n在第二次输出中,我会让你输出一个或者多个特定的类或者函数的完整实现,直接给出代码即可,无需解释;且第一次生成结果中排在此类/函数之前的代码都已经生成了,你不要重复生成。\n\
你需要等到我的指令才能输出第二次响应。\n\n# 限制\n无论是第几次回复,你都要认真思考,不可以大意或者匆忙给出没有深思熟虑的代码。"
- id: 067b610f-6234-4f0d-bf20-9c7d86e7562d
role: user
text: '# 原始代码
- input_file_name: {{#1720505581749.code_file_name#}}
```{{#1720505581749.src_lang#}}
{{#1720505581749.code_to_translate#}}
```'
- id: e6ece9cd-4b04-42d6-870a-350a9cfcdcf6
role: assistant
text: '```yaml'
selected: false
title: LLM-生成目标代码签名
type: llm
variables: []
vision:
configs:
detail: high
enabled: false
height: 98
id: '1720506191043'
position:
x: 334
y: 301.5
positionAbsolute:
x: 334
y: 301.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "import json\n\ndef extract_fn_cls(text: str, dest_lang:str) -> dict:\n\
\ resp = json.loads(text)['json']\n out_file_name = resp['out_file_name']\n\
\ signatures = [\n item['signature'] for item in resp[dest_lang]\
\ if item['type'] in ['function', 'class']\n ]\n return {\n \
\ # \"out_file_name\": out_file_name,\n \"resp\": resp,\n \
\ \"signatures\": signatures,\n }\n\ndef main(text:str, dest_lang:str):\n\
\ return extract_fn_cls(text, dest_lang)"
code_language: python3
desc: ''
outputs:
resp:
children: null
type: object
signatures:
children: null
type: array[string]
selected: false
title: Code - 抽取类/函数签名
type: code
variables:
- value_selector:
- '1723619551968'
- text
variable: text
- value_selector:
- '1720505581749'
- dest_lang
variable: dest_lang
height: 54
id: '1720508367130'
position:
x: 323.4908161111016
y: 530.2430558421229
positionAbsolute:
x: 323.4908161111016
y: 530.2430558421229
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
height: 203
iterator_selector:
- '1720508367130'
- signatures
output_selector:
- '1720580171037'
- text
output_type: array[string]
selected: false
startNodeType: llm
start_node_id: 1720580108806start0
title: Iteration - 生成每个函数/类的代码
type: iteration
width: 377
height: 203
id: '1720580108806'
position:
x: 273.57725260247616
y: 674.0749639522259
positionAbsolute:
x: 273.57725260247616
y: 674.0749639522259
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 377
zIndex: 1
- data:
context:
enabled: false
variable_selector: []
desc: ''
isInIteration: true
isIterationStart: true
iteration_id: '1720580108806'
model:
completion_params:
stop:
- '```'
temperature: 0.7
mode: chat
name: anthropic.claude-3-sonnet-20240229-v1:0
provider: bedrock
prompt_template:
- id: 4741625b-505f-462d-b851-9aef4eab5fcd
role: system
text: "# Role\n你接下来cosplay一个专业的程序猿,精通python java go 等多种语言。\n\n# Task\n你的任务是帮助我将项目的编程语言从{{#1720505581749.src_lang#}}翻译到{{#1720505581749.dest_lang#}}。但是由于输出长度限制,你需要分两次回复来生成完整的代码。\n\
\n第一次回复的目的是生成代码主体结构,但对于中的类、函数,你只需要给出对应的签名即可,不要给出具体实现。\n注意分析相关代码文件,并据此帮你识别内置依赖库和自定义依赖,在你的回复中,不要遗漏import对应的库。\n\
\n# 相关代码文件\n如下是可能与原始代码有关的文件(可能为空)。\n{{#1720505581749.related_files_content#}}\n\
\n# 输出格式\n\n## 第一次输出\n输出采用YAML格式,其中`type`的取值及定义如下: \n- `import`表示依赖包引入代码\n\
- `class`表示类定义,注意java只允许有一个顶层类(通常是与文件同名的类)是public的,其余顶层类不可以使用public修饰。\n\
- `function`表示函数定义,每个函数都有自己的签名\n- `literal`表示不包含在任何函数或类中的代码行,如果存在,则需要给出完整目标语言的代码。main\
\ 函数中的内容不要放在这里。\n\n### 限制\n- `type`的顺序需要严格按照目标翻译代码的嵌套关系及顺序排列,`type` 不可以为其他值,输出必须要满足YAML格式的有效性。\n\
- 生成的代码必须要符合目标语言{{#1720505581749.dest_lang#}}的语法规则,不要放错函数的位置。如果类中属性需要在此类外使用,则要定义相关的属性访问器。\n\
- `cls_attr` 中的 `need_public_getter` 表示是否需要生成public的getter方法,如果此属性被跨类访问,则必须为true。\n\
### 第一次回复的结构示例\n```yaml\nout_file_name: <outfile.ext>\nthinking: | \n\
\ your thinking if any, better not exceeds 80 words.\n{dest_lang}:\n\
\ - type: import\n codes: |\n import java.util.ArrayList\n\
\ ...\n - type: literal\n codes: |\n int a = 0;\n\
\ ...\n - type: class\n name: Main\n signature: public\
\ static void main(String[] args) # 必须\n attributes: # 必须,除非此类不包含任何属性\n\
\ - type: cls_attr\n signature: private int a;\n \
\ need_public_getter: true | false\n - type: inst_attr\n \
\ signature: String str;\n - type: function\n name:\
\ incr\n signature: static int incr(int a, int b)\n -\
\ type: function\n name: main # this is required for the main\
\ class\n signature: public static void main(String[] args) \n\
\ - type: class\n name: Foo\n signature: public\
\ class Foo\n - ...\n - ...\n```\n\n注意,你不需要给出任何解释,只需要给出代码主体即可。\n\
\n### 第一次回复的示例(python -> java)\n输入:\n- 文件名: dog.py\n```python\nimport\
\ time\n\ncurrent_time = time.time()\n\ndef my_func(a):\n return a\
\ + 1\n\nclass Dog:\n species = \"Canis familiaris\"\n\n def __init__(self,\
\ name, age):\n self.name = name\n self.age = age\n\n \
\ def description(self):\n return self.name + \"is \" + self.age\
\ + \" years old\"\n\n def speak(self, sound):\n return self.name\
\ + \"says \" + sound\n\nmiles = Dog(\"Miles\", 4)\n\nprint(miles.description())\
\ # Output: Miles is 4 years old\n\nprint(\"Miles is a \" + miles.species)\
\ # Output: Miles is a Canis familiaris\n```\n\n输出:\n```yaml\nout_file_name:\
\ Dog.java\nthinking: | \n your thinking ...\njava:\n - type: import\n\
\ codes: |\n import java.time.Instant;\n\n - type: class\n\
\ name: Dog\n signature: public class Dog\n attributes:\n\
\ - type: cls_attr\n signature: static String species\
\ = \"Canis familiaris\";\n need_public_getter: false\n \
\ - type: inst_attr\n signature: String name;\n - type:\
\ inst_attr\n signature: Int age;\n - type: function\n\
\ name: Dog\n signature: Dog(String name, int age)\n\
\ - type: function\n name: description\n signature:\
\ String description()\n - type: function\n name: speak\n\
\ signature: String speak(String sound)\n - type: function\n\
\ name: main\n signature: public static void main(String[]\
\ args)\n```\n\n## 第二次输出\n在第二次输出中,我会让你输出一个或者多个特定的类或者函数的完整实现,直接给出代码即可,无需解释;且第一次生成结果中排在此类/函数之前的代码都已经生成了,你不要重复生成。\n\
你需要等到我的指令才能输出第二次响应。\n\n# 限制\n无论是第几次回复,你都要认真思考,不可以大意或者匆忙给出没有深思熟虑的代码。"
- id: d4bc0226-67ce-411e-a44d-d7154ed15ef2
role: user
text: '# 原始代码
- input_file_name: {{#1720505581749.code_file_name#}}
```{{#1720505581749.src_lang#}}
{{#1720505581749.code_to_translate#}}
```'
- id: e2e530d6-35f9-4588-b448-772cae738195
role: assistant
text: '```yaml
{{#1720506191043.text#}}
```'
- id: 7c3b0f56-47cb-4bef-8e8b-abe44638fc83
role: user
text: 只需给出 {{#1720580108806.item#}} 的完整代码,不要重复引入依赖。直接给出代码内容,不要解释。
- id: 59bbf386-14a1-420b-98b4-c04e6bde9a23
role: assistant
text: '```{{#1720505581749.dest_lang#}}'
selected: false
title: LLM - 生成函数/类的代码
type: llm
variables: []
vision:
configs:
detail: high
enabled: true
extent: parent
height: 98
id: '1720580171037'
parentId: '1720580108806'
position:
x: 117
y: 85
positionAbsolute:
x: 390.57725260247616
y: 759.0749639522259
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1001
- data:
code: "\ndef main(resp:dict, sig_impl: list[str], dest_lang:str) -> dict:\n\
\ sig_impl_idx = 0\n for item in resp[dest_lang]:\n _type =\
\ item['type']\n if _type in ['function', 'class']:\n \
\ item['codes'] = sig_impl[sig_impl_idx]\n sig_impl_idx += 1\n\
\n final_code = '\\n'.join([item['codes'] for item in resp[dest_lang]])\n\
\n return {\n \"final_code\": final_code,\n \"resp\": resp,\n\
\ }\n"
code_language: python3
desc: ''
outputs:
final_code:
children: null
type: string
resp:
children: null
type: object
selected: false
title: Code - 合并翻译结果
type: code
variables:
- value_selector:
- '1720580108806'
- output
variable: sig_impl
- value_selector:
- '1720508367130'
- resp
variable: resp
- value_selector:
- '1720505581749'
- dest_lang
variable: dest_lang
height: 54
id: '1720580885073'
position:
x: 721.3762323479173
y: 653.6439149148473
positionAbsolute:
x: 721.3762323479173
y: 653.6439149148473
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: 输出翻译结果
outputs:
- value_selector:
- '1720580885073'
- final_code
variable: final_code
selected: false
title: End
type: end
height: 118
id: '1720582990256'
position:
x: 1032.9006749743028
y: 643.1096952379073
positionAbsolute:
x: 1032.9006749743028
y: 643.1096952379073
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
author: ybalbert
desc: ''
height: 714
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"示例参数:需要翻译的代码文件内容","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":1},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"import
requests","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"from
utils import Food","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"def
send_request():","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" response
= requests.get(\"https://www.example.com\")","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(response.status_code)","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"def
foo():","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(\"This
is foo\")","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" x
= 42","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" return
x","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"class
Bar:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" def
__init__(self):","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" self.value
= 0","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" def
increment(self):","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" self.value
+= 1","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"def
main():","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" f
= foo()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(f)","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" b
= Bar()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" b.increment()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(b.value)","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" send_request()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" Food().eat()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"if
__name__ == \"__main__\":","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" main()","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 288
height: 714
id: '1720587427200'
position:
x: -549.7499726708537
y: 18.858251348773365
positionAbsolute:
x: -549.7499726708537
y: 18.858251348773365
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 288
- data:
author: ybalbert
desc: ''
height: 263
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"示例参数:相关依赖库代码内容","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":1},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"utils.py:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"```","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"class
Food:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" def
__init__(self) -> None:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" pass","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" def
eat(self):","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(''eat'')","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" def
drink(self):","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":" print(''drink'')","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"```","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ' (1)'
type: ''
width: 252
height: 263
id: '17205874960550'
position:
x: -256.9200850883209
y: 18.858251348773365
positionAbsolute:
x: -256.9200850883209
y: 18.858251348773365
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 252
- data:
author: ybalbert
desc: ''
height: 133
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"示例参数:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"-
待翻译文件名: main.py","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"-
源代码语言: python","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"-
目标编程语言: java","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ' (2)'
type: ''
width: 258
height: 133
id: '17205875187340'
position:
x: -256.9200850883209
y: 292.1662801639156
positionAbsolute:
x: -256.9200850883209
y: 292.1662801639156
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 258
- data:
desc: ''
provider_id: aws
provider_name: aws
provider_type: builtin
selected: false
title: LambdaYamlToJson
tool_configurations:
aws_region: us-east-1
lambda_name: yaml_to_json
tool_label: LambdaYamlToJson
tool_name: lambda_yaml_to_json
tool_parameters:
yaml_content:
type: mixed
value: '{{#1720506191043.text#}}'
type: tool
height: 116
id: '1723619551968'
position:
x: 638.79375274346
y: 292.1662801639156
positionAbsolute:
x: 638.79375274346
y: 292.1662801639156
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1720580108806start0
parentId: '1720580108806'
position:
x: 24
y: 68
positionAbsolute:
x: 297.57725260247616
y: 742.0749639522259
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
viewport:
x: 518.0790142143585
y: 86.2896440650544
zoom: 0.78454243015184
================================================
FILE: DSL/Deep Researcher On Dify .yml
================================================
app:
description: ''
icon: exploding_head
icon_background: '#D1E0FF'
mode: advanced-chat
name: Deep Researcher On Dify
use_icon_as_answer_icon: false
kind: app
version: 0.1.5
workflow:
conversation_variables:
- description: ''
id: 46b6620c-ea24-40e6-8389-49ea02b5cdef
name: f4
selector:
- conversation
- f4
value: ''
value_type: string
- description: ''
id: 96b85891-ba39-40e4-9a16-fe2fb2b8ba18
name: f3
selector:
- conversation
- f3
value: ''
value_type: string
- description: ''
id: a389f50b-432c-47de-9974-d4e2183f260a
name: f2
selector:
- conversation
- f2
value: ''
value_type: string
- description: ''
id: 8a7ddf74-3589-43cb-9766-6a626e149065
name: f1
selector:
- conversation
- f1
value: ''
value_type: string
- description: ''
id: 70e26a5d-b2e4-4bfc-94b2-dc39cf2a77ad
name: research_theme
selector:
- conversation
- research_theme
value: ''
value_type: string
- description: '用户的第四个回答
'
id: 58a7d621-f2fb-4504-81b8-813c4f4636b3
name: query4
selector:
- conversation
- query4
value: ''
value_type: string
- description: 用户的第三个回答
id: d70a0dbb-d58d-4b1b-8b22-22a62b916d50
name: query3
selector:
- conversation
- query3
value: ''
value_type: string
- description: '第一个问题
'
id: 86a6d760-4e15-440c-a828-eac6eac6b398
name: q1
selector:
- conversation
- q1
value: ''
value_type: string
- description: 用户的第二个回答
id: 7dee338f-8501-4e17-8781-dab802da8d0d
name: query2
selector:
- conversation
- query2
value: ''
value_type: string
- description: 用户的第一个回答
id: 7bf3e19f-32e8-44c8-8a14-65384fc987b4
name: query1
selector:
- conversation
- query1
value: ''
value_type: string
- description: 第四个问题
id: a89a9fa2-35dd-46ae-94a7-3014bca207eb
name: q4
selector:
- conversation
- q4
value: ''
value_type: string
- description: 第三个问题
id: 417017f2-099f-46b7-a9d6-9a3eb1264f6a
name: q3
selector:
- conversation
- q3
value: ''
value_type: string
- description: 第二个问题
id: f5a9daae-89ea-440b-9a09-2b60fdc6d297
name: q2
selector:
- conversation
- q2
value: ''
value_type: string
- description: 对话阶段
id: 946fbd2a-8f5d-4230-83c7-d50d1f954c86
name: Chat_Stage
selector:
- conversation
- Chat_Stage
value: Asking
value_type: string
- description: 语言选择
id: 61cc973b-2169-4e7e-a9d6-a31b32901024
name: Language
selector:
- conversation
- Language
value: ''
value_type: string
environment_variables:
- description: ''
id: d6bef390-1173-413a-8f94-17e87e7095dc
name: Generate
selector:
- env
- Generate
value: Generate
value_type: string
- description: ''
id: be3102af-51af-4a6d-901f-0c7c0d7bf0e3
name: REASK
selector:
- env
- REASK
value: REASK
value_type: string
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: true
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions:
- 中文
- English
- 日本语
- Deutsch
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739087643444-91eeee38-2f3d-41fe-aada-fbb552f38d09-1739087688715-target
selected: false
source: '1739087643444'
sourceHandle: 91eeee38-2f3d-41fe-aada-fbb552f38d09
target: '1739087688715'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: assigner
id: 1739087643444-true-1739088656029-target
selected: false
source: '1739087643444'
sourceHandle: 'true'
target: '1739088656029'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: assigner
targetType: llm
id: 1739088656029-source-1739088190247-target
selected: false
source: '1739088656029'
sourceHandle: source
target: '1739088190247'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: parameter-extractor
id: 1739088190247-source-1739089738469-target
selected: false
source: '1739088190247'
sourceHandle: source
target: '1739089738469'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: answer
id: 1739089738469-source-1739089894656-target
selected: false
source: '1739089738469'
sourceHandle: source
target: '1739089894656'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739087643444-ec873050-26b5-4519-ad2d-318d9c8507b4-1739090734936-target
selected: false
source: '1739087643444'
sourceHandle: ec873050-26b5-4519-ad2d-318d9c8507b4
target: '1739090734936'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739087643444-252919df-4a7b-45e9-b845-bcbc14277530-answer-target
selected: false
source: '1739087643444'
sourceHandle: 252919df-4a7b-45e9-b845-bcbc14277530
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: parameter-extractor
id: 1739111839440-source-1739112773493-target
selected: false
source: '1739111839440'
sourceHandle: source
target: '1739112773493'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: assigner
id: 1739113013426-source-1739091496446-target
selected: false
source: '1739113013426'
sourceHandle: source
target: '1739091496446'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: assigner
id: 17391132110940-source-1739092875078-target
selected: false
source: '17391132110940'
sourceHandle: source
target: '1739092875078'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: assigner
id: 17391132088660-source-1739090270335-target
selected: false
source: '17391132088660'
sourceHandle: source
target: '1739090270335'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: assigner
id: 17391132061910-source-1739092110217-target
selected: false
source: '17391132061910'
sourceHandle: source
target: '1739092110217'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: assigner
id: 1739113887765-source-1739113831548-target
selected: false
source: '1739113887765'
sourceHandle: source
target: '1739113831548'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739087643444-fdc117e5-9c2d-4b3d-9fac-c1f030b8435d-1739111295209-target
selected: false
source: '1739087643444'
sourceHandle: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
target: '1739111295209'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1739087643444-fdc117e5-9c2d-4b3d-9fac-c1f030b8435d-1739113887765-target
selected: false
source: '1739087643444'
sourceHandle: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
target: '1739113887765'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: answer
targetType: assigner
id: 1739087688715-source-17391772546580-target
selected: false
source: '1739087688715'
sourceHandle: source
target: '17391772546580'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: answer
targetType: assigner
id: 1739090734936-source-1739177553097-target
selected: false
source: '1739090734936'
sourceHandle: source
target: '1739177553097'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: answer
targetType: assigner
id: answer-source-1739177564892-target
selected: false
source: answer
sourceHandle: source
target: '1739177564892'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: answer
targetType: assigner
id: 1739111295209-source-1739177578815-target
selected: false
source: '1739111295209'
sourceHandle: source
target: '1739177578815'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: assigner
targetType: answer
id: 1739113831548-source-1739178863421-target
selected: false
source: '1739113831548'
sourceHandle: source
target: '1739178863421'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: answer
id: 1739112773493-source-1739179029377-target
selected: false
source: '1739112773493'
sourceHandle: source
target: '1739179029377'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: start
targetType: if-else
id: 1739087621665-source-1739087643444-target
selected: false
source: '1739087621665'
sourceHandle: source
target: '1739087643444'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: parameter-extractor
id: 1739112773493-source-1739191349072-target
selected: false
source: '1739112773493'
sourceHandle: source
target: '1739191349072'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '17391916827400'
sourceType: iteration-start
targetType: tool
id: 1739191682740start-source-1739191682740017391916827400-target
selected: false
source: 1739191682740start
sourceHandle: source
target: '1739191682740017391916827400'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: assigner
id: 1739089738469-source-1739090682795-target
selected: false
source: '1739089738469'
sourceHandle: source
target: '1739090682795'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1739087643444-fdc117e5-9c2d-4b3d-9fac-c1f030b8435d-17391132061910-target
selected: false
source: '1739087643444'
sourceHandle: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
target: '17391132061910'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1739087643444-fdc117e5-9c2d-4b3d-9fac-c1f030b8435d-1739113013426-target
selected: false
source: '1739087643444'
sourceHandle: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
target: '1739113013426'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1739087643444-fdc117e5-9c2d-4b3d-9fac-c1f030b8435d-17391132110940-target
selected: false
source: '1739087643444'
sourceHandle: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
target: '17391132110940'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
iteration_id: '1739189441547'
sourceType: iteration-start
targetType: knowledge-retrieval
id: 1739189441547start-source-1739288338449-target
selected: false
source: 1739189441547start
sourceHandle: source
target: '1739288338449'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '17391916793430'
sourceType: iteration-start
targetType: knowledge-retrieval
id: 1739191679343start-source-1739288362314-target
selected: false
source: 1739191679343start
sourceHandle: source
target: '1739288362314'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
iteration_id: '17391916807390'
sourceType: iteration-start
targetType: knowledge-retrieval
id: 1739191680739start-source-1739288378358-target
selected: false
source: 1739191680739start
sourceHandle: source
target: '1739288378358'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: llm-source-17391136443240-target
selected: false
source: llm
sourceHandle: source
target: '17391136443240'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 17391136521390-source-1739193987241-target
selected: false
source: '17391136521390'
sourceHandle: source
target: '1739193987241'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 17391136443240-source-17391136486630-target
selected: false
source: '17391136443240'
sourceHandle: source
target: '17391136486630'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: 1739193987241-source-1739113756598-target
selected: false
source: '1739193987241'
sourceHandle: source
target: '1739113756598'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: iteration
id: 1739189441547-source-17391916793430-target
selected: false
source: '1739189441547'
sourceHandle: source
target: '17391916793430'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: iteration
id: 17391916793430-source-17391916807390-target
selected: false
source: '17391916793430'
sourceHandle: source
target: '17391916807390'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: parameter-extractor
id: 1739191349072-source-17391916626840-target
selected: false
source: '1739191349072'
sourceHandle: source
target: '17391916626840'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: parameter-extractor
id: 17391916638460-source-17391916650280-target
selected: false
source: '17391916638460'
sourceHandle: source
target: '17391916650280'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: iteration
id: 17391916626840-source-1739189441547-target
selected: false
source: '17391916626840'
sourceHandle: source
target: '1739189441547'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: iteration
id: 17391916650280-source-1739189441547-target
selected: false
source: '17391916650280'
sourceHandle: source
target: '1739189441547'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: parameter-extractor
id: 1739112773493-source-17391916638460-target
selected: false
source: '1739112773493'
sourceHandle: source
target: '17391916638460'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: iteration
id: 17391916807390-source-17391916827400-target
selected: false
source: '17391916807390'
sourceHandle: source
target: '17391916827400'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 17391136486630-source-17391136521390-target
selected: false
source: '17391136486630'
sourceHandle: source
target: '17391136521390'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: if-else
id: 1739113756598-source-1739292584847-target
selected: false
source: '1739113756598'
sourceHandle: source
target: '1739292584847'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739292584847-true-1739091083891-target
selected: false
source: '1739292584847'
sourceHandle: 'true'
target: '1739091083891'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: iteration
targetType: llm
id: 17391916827400-source-1739192479032-target
selected: false
source: '17391916827400'
sourceHandle: source
target: '1739192479032'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1739192479032-source-llm-target
selected: false
source: '1739192479032'
sourceHandle: source
target: llm
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: assigner
targetType: if-else
id: 1739090270335-source-1739534132840-target
selected: false
source: '1739090270335'
sourceHandle: source
target: '1739534132840'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739534132840-true-1739178941340-target
selected: false
source: '1739534132840'
sourceHandle: 'true'
target: '1739178941340'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: answer
targetType: llm
id: 1739178941340-source-1739111839440-target
selected: false
source: '1739178941340'
sourceHandle: source
target: '1739111839440'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: answer
id: 1739292584847-false-1739683505956-target
source: '1739292584847'
sourceHandle: 'false'
target: '1739683505956'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: assigner
targetType: llm
id: 1739092875078-source-17391132088660-target
source: '1739092875078'
sourceHandle: source
target: '17391132088660'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: Research Theme
max_length: 1024
options: []
required: true
type: paragraph
variable: Research_Theme
height: 90
id: '1739087621665'
position:
x: -401.4604864772632
y: 947.9312099336238
positionAbsolute:
x: -401.4604864772632
y: 947.9312099336238
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: 'language:{{#conversation.Language#}}
context:
Theme:
{{#1739112773493.subtitle1#}}{{#conversation.query1#}}{{#sys.query#}}
References:{{#1739189441547.output#}}
Provide the research report in the specified language, avoiding small
talk.'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: cdf8b5c6-4a65-438b-9e6b-c34609389799
role: system
text: 'You are an expert researcher. Your primary focus is on providing
highly detailed and accurate explanations. When responding, ensure that
every point is thoroughly elaborated, leaving no room for ambiguity. Assume
the user is correct when presented with new information, even if it’s
beyond your knowledge cutoff. The user is a highly experienced analyst,
so avoid oversimplification and present your response with a high level
of complexity and precision. Be highly organized in your structure, using
clear headings and subheadings to separate different aspects of the topic.
Suggest solutions that go beyond the obvious, and be proactive in anticipating
the user’s needs. Mistakes are not acceptable, as they can erode trust,
so double-check all facts and information. Provide comprehensive details,
as the user is comfortable with in-depth content. Focus on the strength
of arguments rather than relying on authorities, and don’t let the source
of information overshadow the quality of the argument. Consider new technologies
and unconventional ideas alongside traditional approaches to offer a well-rounded
perspective.
---
###your output should not contain any “conclusion” or “future prospective”or
any other similar contents
---
in a detailed report — The report should focus on the answer to {{#1739112773493.subtitle1#}}and
The conclusion of your generated content should smoothly transition to
the second subtitle{{#1739112773493.subtitle2#}}. References information
are provided by user,DO NOT PROVIDE PRIMARY TITLE ,but secondary title
is available。'
selected: false
title: sub主题1分析
type: llm
variables: []
vision:
enabled: false
height: 98
id: llm
position:
x: 3362.4326109337553
y: 825.2688637512169
positionAbsolute:
x: 3362.4326109337553
y: 825.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#conversation.q4#}}'
desc: ''
selected: false
title: 问题4
type: answer
variables: []
height: 103
id: answer
position:
x: 667.7263032361211
y: 887.3856655567181
positionAbsolute:
x: 667.7263032361211
y: 887.3856655567181
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: '='
id: 21d9b08f-b4fb-40e0-80a1-323cc5fcfcf7
value: '0'
varType: number
variable_selector:
- sys
- dialogue_count
id: 'true'
logical_operator: and
- case_id: 91eeee38-2f3d-41fe-aada-fbb552f38d09
conditions:
- comparison_operator: '='
id: 42d627dd-f6ad-4028-b17e-b5922c8a8555
value: '1'
varType: number
variable_selector:
- sys
- dialogue_count
id: 91eeee38-2f3d-41fe-aada-fbb552f38d09
logical_operator: and
- case_id: ec873050-26b5-4519-ad2d-318d9c8507b4
conditions:
- comparison_operator: '='
id: 6e5199ca-f644-44e4-876c-6581f14ec964
value: '2'
varType: number
variable_selector:
- sys
- dialogue_count
id: ec873050-26b5-4519-ad2d-318d9c8507b4
logical_operator: and
- case_id: 252919df-4a7b-45e9-b845-bcbc14277530
conditions:
- comparison_operator: '='
id: 93beb1fd-6a9d-4d8c-a308-4d149f2a5813
value: '3'
varType: number
variable_selector:
- sys
- dialogue_count
id: 252919df-4a7b-45e9-b845-bcbc14277530
logical_operator: and
- case_id: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
conditions:
- comparison_operator: '='
id: 600fc8f9-83ec-4656-b256-65bbc11bb814
value: '4'
varType: number
variable_selector:
- sys
- dialogue_count
id: fdc117e5-9c2d-4b3d-9fac-c1f030b8435d
logical_operator: or
desc: ''
selected: false
title: 条件分支
type: if-else
height: 318
id: '1739087643444'
position:
x: 65.46491577191637
y: 887.3856655567181
positionAbsolute:
x: 65.46491577191637
y: 887.3856655567181
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#conversation.q2#}}'
desc: ''
selected: false
title: 问题2
type: answer
variables: []
height: 103
id: '1739087688715'
position:
x: 667.7263032361211
y: 599.4593566990166
positionAbsolute:
x: 667.7263032361211
y: 599.4593566990166
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: true
variable_selector:
- '1739087621665'
- Research_Theme
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: 4f9462cb-d339-4235-acce-3ea44e317d39
role: system
text: 'Given the following query from the user, ask some question about
topics may cause theme mislead。 follow up questions to clarify the research
direction. Return 4 independent questions, but feel free to return less
if the original query is clear: <query>{{#1739087621665.Research_Theme#}}</query>,ONLY
OUTPUT THE QUESTIONS ,no need for any other content,questions shall be
output in {{#conversation.Language#}}'
- role: user
text: '{{#1739087621665.Research_Theme#}}'
selected: false
title: 问题分解
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739088190247'
position:
x: 947.9076845481827
y: 455.7348090507137
positionAbsolute:
x: 947.9076845481827
y: 455.7348090507137
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- Language
write_mode: over-write
selected: false
title: 变量赋值
type: assigner
version: '2'
height: 88
id: '1739088656029'
position:
x: 670.205223622014
y: 455.7348090507137
positionAbsolute:
x: 670.205223622014
y: 455.7348090507137
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
instruction: Extract the return value in the output value as four independent
parameters.Avoids redundancy by tracking previously written content
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: First question provided by previous LLM
name: Question1
required: false
type: string
- description: Second question provided by previous LLM
name: Question2
required: false
type: string
- description: Third question provided by previous LLM
name: Question3
required: false
type: string
- description: Fourth question provided by previous LLM
name: Question4
required: false
type: string
- description: 分组输出所有问题内容
name: Questions
required: false
type: array[string]
query:
- '1739088190247'
- text
reasoning_mode: prompt
selected: false
title: 问题参数提取
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '1739089738469'
position:
x: 1278.205223622014
y: 455.7348090507137
positionAbsolute:
x: 1278.205223622014
y: 455.7348090507137
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '为了更好的回答这个问题,我希望先了解一些内容:
{{#1739089738469.Question1#}}'
desc: ''
selected: false
title: 第一次回复&问题1
type: answer
variables: []
height: 135
id: '1739089894656'
position:
x: 1592.4387458428032
y: 301.8019869286369
positionAbsolute:
x: 1592.4387458428032
y: 301.8019869286369
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '17391132088660'
- text
variable_selector:
- conversation
- query4
write_mode: over-write
selected: false
title: '上下文变量赋值 '
type: assigner
version: '2'
height: 88
id: '1739090270335'
position:
x: 943.1876788138126
y: 1706.9053326666053
positionAbsolute:
x: 943.1876788138126
y: 1706.9053326666053
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '1739089738469'
- Question2
variable_selector:
- conversation
- q2
write_mode: over-write
- input_type: variable
operation: over-write
value:
- '1739089738469'
- Question3
variable_selector:
- conversation
- q3
write_mode: over-write
- input_type: variable
operation: over-write
value:
- '1739089738469'
- Question4
variable_selector:
- conversation
- q4
write_mode: over-write
- input_type: variable
operation: over-write
value:
- '1739089738469'
- Question1
variable_selector:
- conversation
- q1
write_mode: over-write
selected: false
title: 问题变量赋值
type: assigner
version: '2'
height: 172
id: '1739090682795'
position:
x: 1592.4387458428032
y: 568.2569055309016
positionAbsolute:
x: 1592.4387458428032
y: 568.2569055309016
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#conversation.q3#}}'
desc: ''
selected: false
title: 问题3
type: answer
variables: []
height: 103
id: '1739090734936'
position:
x: 667.7263032361211
y: 736.135874004081
positionAbsolute:
x: 667.7263032361211
y: 736.135874004081
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '|
报告已生成:
---
{{#1739113756598.output#}}'
desc: ''
selected: false
title: 最终回复
type: answer
variables: []
height: 119
id: '1739091083891'
position:
x: 4305.939971577466
y: 1059.7064421013074
positionAbsolute:
x: 4305.939971577466
y: 1059.7064421013074
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '1739113013426'
- text
variable_selector:
- conversation
- query2
write_mode: over-write
selected: false
title: '上下文变量赋值 '
type: assigner
version: '2'
height: 88
id: '1739091496446'
position:
x: 943.1876788138126
y: 1443.9714391735783
positionAbsolute:
x: 943.1876788138126
y: 1443.9714391735783
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '17391132061910'
- text
variable_selector:
- conversation
- query1
write_mode: over-write
selected: false
title: 上下文变量赋值
type: assigner
version: '2'
height: 88
id: '1739092110217'
position:
x: 943.1876788138126
y: 1294.6031523212616
positionAbsolute:
x: 943.1876788138126
y: 1294.6031523212616
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '17391132110940'
- text
variable_selector:
- conversation
- query3
write_mode: over-write
selected: false
title: 上下文变量赋值
type: assigner
version: '2'
height: 88
id: '1739092875078'
position:
x: 943.1876788138126
y: 1579.4318741274828
positionAbsolute:
x: 943.1876788138126
y: 1579.4318741274828
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '正在分析研究主题...
'
desc: ''
selected: false
title: 输出:正在生成最终回答
type: answer
variables: []
height: 100
id: '1739111295209'
position:
x: 667.7263032361211
y: 1028.978486275042
positionAbsolute:
x: 667.7263032361211
y: 1028.978486275042
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: 90d59c0f-2542-42ed-a853-5a2ad135af3b
role: system
text: 'according to the original theme{{#1739087621665.Research_Theme#}}
,and tuned theme{{#conversation.research_theme#}}Generate 3 to 5 sub-titles.
<instructions>
Please generate 4 subheadings for the main title following these steps:
Carefully read the provided main title and related content
Analyze the core theme and key information points of the main title
Ensure the generated subheadings maintain consistency and relevance with
the main title
Each subheading should:
Be concise and appropriate in length
Highlight a unique angle or key point
Capture readers'' interest
Match the overall style and tone of the article
Between subheadings:
Content should not overlap
Logical order should be maintained
Should collectively support the main title
Use numerical sequence (1, 2, 3...) to mark each subheading
Output format requirements:
Each subheading on a separate line
No XML tags included
Output subheadings content only
</instructions>'
- id: f100f739-f99f-4fe8-88f0-304e2dab304f
role: user
text: 'original theme{{#1739087621665.Research_Theme#}} ,and tuned theme{{#conversation.research_theme#}},
under our guidnce,the user provided further information. Query listed
as:{{#conversation.query1#}}{{#conversation.query2#}}{{#conversation.query3#}}{{#conversation.query4#}} '
selected: false
title: sub主题提取
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739111839440'
position:
x: 1616.6240944909441
y: 1066.3563453333902
positionAbsolute:
x: 1616.6240944909441
y: 1066.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: NO.1 sub title
name: subtitle1
required: false
type: string
- description: NO.2 sub title
name: subtitle2
required: false
type: string
- description: NO.3 sub title
name: subtitle3
required: false
type: string
- description: NO.4 sub title
name: subtitle4
required: false
type: string
query:
- '1739111839440'
- text
reasoning_mode: prompt
selected: false
title: sub主题提取
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '1739112773493'
position:
x: 1940.9838149758243
y: 845.4397155394867
positionAbsolute:
x: 1940.9838149758243
y: 845.4397155394867
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: b97092f7-06bf-4548-8dc4-497fd2c9bd63
role: system
text: "<instructions>\n1. 首先,分析输入中的{{#conversation.q2#}}问题及其{{#conversation.f2#}}回答,找出其中可以扩展的关键点或信息。\n\
2. 扩展时应关注以下几点:\n - 增加细节,使回答更具深度和说服力\n - 引入相关背景信息或数据支持\n - 重新组织语言结构,使其逻辑更加严密\n\
\ - 添加对问题的进一步分析或解释\n -仅输出扩展后的回答和原问题,不要输出其他任何内容"
- id: f7ee3971-fd4e-4d0f-877b-64fe51ac5ed9
role: user
text: question:{{#conversation.q2#}}answer:{{#conversation.f2#}}
selected: false
title: 回答优化
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739113013426'
position:
x: 655.6742394689389
y: 1443.9714391735783
positionAbsolute:
x: 655.6742394689389
y: 1443.9714391735783
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: b97092f7-06bf-4548-8dc4-497fd2c9bd63
role: system
text: "<instructions>\n1. 首先,分析输入中的{{#conversation.q1#}}问题及其{{#conversation.f1#}}回答,找出其中可以扩展的关键点或信息。\n\
2. 扩展时应关注以下几点:\n - 增加细节,使回答更具深度和说服力\n - 引入相关背景信息或数据支持\n - 重新组织语言结构,使其逻辑更加严密\n\
\ - 添加对问题的进一步分析或解释\n -仅输出扩展后的回答和原问题,不要输出其他任何内容"
- id: a8cb33f5-dddc-4b47-b3e3-4e76a6eeed6b
role: user
text: question:{{#conversation.q1#}}answer:{{#conversation.f1#}}
selected: false
title: 回答优化
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391132061910'
position:
x: 655.6742394689389
y: 1294.6031523212616
positionAbsolute:
x: 655.6742394689389
y: 1294.6031523212616
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: b97092f7-06bf-4548-8dc4-497fd2c9bd63
role: system
text: "<instructions>\n1. 首先,分析输入中的{{#conversation.q4#}}问题及其{{#conversation.f4#}}回答,找出其中可以扩展的关键点或信息。\n\
2. 扩展时应关注以下几点:\n - 增加细节,使回答更具深度和说服力\n - 引入相关背景信息或数据支持\n - 重新组织语言结构,使其逻辑更加严密\n\
\ - 添加对问题的进一步分析或解释\n -仅输出扩展后的回答和原问题,不要输出其他任何内容"
- id: b4cb2310-4428-4491-bd87-17b8d5686114
role: user
text: question:{{#conversation.q4#}}answer:{{#conversation.f4#}}
selected: false
title: 回答优化
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391132088660'
position:
x: 655.6742394689389
y: 1706.9053326666053
positionAbsolute:
x: 655.6742394689389
y: 1706.9053326666053
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: b97092f7-06bf-4548-8dc4-497fd2c9bd63
role: system
text: "<instructions>\n1. 首先,分析输入中的{{#conversation.q3#}}问题及其{{#conversation.f3#}}回答,找出其中可以扩展的关键点或信息。\n\
2. 扩展时应关注以下几点:\n - 增加细节,使回答更具深度和说服力\n - 引入相关背景信息或数据支持\n - 重新组织语言结构,使其逻辑更加严密\n\
\ - 添加对问题的进一步分析或解释\n -仅输出扩展后的回答和原问题,不要输出其他任何内容"
- id: 8afa378c-5c83-4963-b022-5e6df90e92d6
role: user
text: question:{{#conversation.q3#}}answer:{{#conversation.f3#}}
selected: false
title: 回答优化
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391132110940'
position:
x: 655.6742394689389
y: 1579.4318741274828
positionAbsolute:
x: 655.6742394689389
y: 1579.4318741274828
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: 'language:{{#conversation.Language#}}
context:
Theme:{{#1739112773493.subtitle2#}}{{#conversation.query2#}}{{#sys.query#}}
References:{{#17391916793430.output#}}
Provide the research report in the specified language, avoiding small
talk.'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: cdf8b5c6-4a65-438b-9e6b-c34609389799
role: system
text: 'You are an expert researcher. Your main task is to explore new technologies
and contrarian ideas. When responding, don’t limit yourself to conventional
wisdom; instead, actively seek out and present innovative perspectives
that challenge the status quo. Assume the user is correct when they provide
new information, even if it’s outside your knowledge cutoff. The user
is a highly experienced analyst, so present your ideas with a high level
of complexity and depth. Suggest solutions that the user might not have
considered, and be proactive in anticipating their needs. Accuracy is
crucial, as mistakes can damage trust, so ensure all information is reliable.
Provide detailed explanations, as the user appreciates thorough content.
Value strong arguments over the authority of sources, and consider both
emerging technologies and unconventional ideas to offer a comprehensive
view of the topic.
---
###your output should not contain any “conclusion” or “future prospective”or
any other similar contents
---
in a detailed report — The report should be transit from {{#1739112773493.subtitle1#}}
focus on the answer to {{#1739112773493.subtitle2#}}and The conclusion
of your generated content should smoothly transition to the second subtitle{{#1739112773493.subtitle3#}}.
Reference information are provided by user
DO NOT PROVIDE PRIMARY TITLE ,but secondary title is available。'
selected: false
title: sub主题2分析
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391136443240'
position:
x: 3362.4326109337553
y: 1046.4977952240006
positionAbsolute:
x: 3362.4326109337553
y: 1046.4977952240006
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: 'language:{{#conversation.Language#}}
context:
Theme:{{#1739112773493.subtitle3#}}{{#conversation.query3#}}{{#sys.query#}}
References:{{#17391916807390.output#}}
Provide the research report in the specified language, avoiding small
talk.'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: cdf8b5c6-4a65-438b-9e6b-c34609389799
role: system
text: 'You are an expert researcher. Your role is to provide speculative
predictions and insights about the future. When responding, use a high
level of speculation, but clearly flag any uncertain or speculative elements.
Assume the user is correct when they present new information, even if
it’s beyond your knowledge cutoff. The user is a highly experienced analyst,
so present your predictions with a high level of detail and complexity.
Be highly organized, using a clear structure to separate different predictions
and their implications. Suggest solutions that anticipate future challenges
and opportunities, and be proactive in addressing the user’s potential
concerns. Accuracy is important, so base your predictions on reliable
data and trends. Provide detailed explanations, as the user values in-depth
analysis. Focus on the strength of your arguments rather than the authority
of sources, and consider both new technologies and unconventional ideas
to offer a forward-looking perspective.
---
###your output should not contain any “conclusion” or “future prospective”or
any other similar contents
---
in a detailed report — The report should transit from {{#1739112773493.subtitle2#}}
focus on the answer to {{#1739112773493.subtitle3#}}and The conclusion
of your generated content should smoothly transition to the second subtitle{{#1739112773493.subtitle4#}}.
Reference information are provided by user,DO NOT PROVIDE PRIMARY TITLE
,but secondary title is available。'
selected: false
title: sub主题3分析
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391136486630'
position:
x: 3362.4326109337553
y: 1287.9608733054972
positionAbsolute:
x: 3362.4326109337553
y: 1287.9608733054972
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
query_prompt_template: 'language:{{#conversation.Language#}}
context:
Theme:{{#conversation.query4#}}{{#sys.query#}}{{#1739112773493.subtitle4#}}
References:{{#17391916827400.output#}}
Provide the research report in the specified language, avoiding small
talk.'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: cdf8b5c6-4a65-438b-9e6b-c34609389799
role: system
text: 'You are an expert researcher. Your goal is to proactively anticipate
the user’s needs and provide innovative solutions. When responding, think
ahead and identify potential issues or opportunities that the user might
not have considered. Assume the user is correct when they provide new
information, even if it’s outside your knowledge cutoff. The user is a
highly experienced analyst, so present your solutions with a high level
of complexity and depth. Be highly organized, using a clear structure
to present your ideas. Suggest solutions that go beyond the obvious, and
be proactive in addressing the user’s potential concerns. Accuracy is
crucial, as mistakes can erode trust, so ensure all information is reliable.
Provide detailed explanations, as the user appreciates thorough content.
Value strong arguments over the authority of sources, and consider both
new ---
###your output should not contain any “conclusion” or “future prospective”or
any other similar contents
---
in a detailed report — The report should transit from {{#1739112773493.subtitle3#}}
focus on the answer to {{#1739112773493.subtitle4#}}and nothing else.
Reference information are provided by user .DO NOT PROVIDE PRIMARY TITLE
,but secondary title is available。'
selected: false
title: sub主题4分析
type: llm
variables: []
vision:
enabled: false
height: 98
id: '17391136521390'
position:
x: 3362.4326109337553
y: 1496.7273922088093
positionAbsolute:
x: 3362.4326109337553
y: 1496.7273922088093
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: "<h1>{{ arg0 }}</h1>\r\n\r\n<div>{{ arg10 }}</div>\r\n\r\n<h2>{{\
\ arg1}}</h2>\r\n<div>{{ arg5 }}</div>\r\n\r\n<h2>{{ arg2 }}</h2>\r\n<div>{{\
\ arg6 }}</div>\r\n\r\n<h2>{{ arg3 }}</h2>\r\n<div>{{ arg7 }}</div>\r\n\r\
\n<h2>{{ arg4 }}</h2>\r\n<div>{{ arg8 }}</div>\r\n\r\n<div>{{ arg11 }}</div>"
title: 总结文档
type: template-transform
variables:
- value_selector:
- '1739112773493'
- subtitle1
variable: arg1
- value_selector:
- '1739112773493'
- subtitle2
variable: arg2
- value_selector:
- '1739112773493'
- subtitle3
variable: arg3
- value_selector:
- '1739112773493'
- subtitle4
variable: arg4
- value_selector:
- llm
- text
variable: arg5
- value_selector:
- '17391136443240'
- text
variable: arg6
- value_selector:
- '17391136486630'
- text
variable: arg7
- value_selector:
- '17391136521390'
- text
variable: arg8
- value_selector:
- conversation
- research_theme
variable: arg0
- value_selector:
- '1739192479032'
- text
variable: arg10
- value_selector:
- '1739193987241'
- text
variable: arg11
height: 54
id: '1739113756598'
position:
x: 3700.2464824803046
y: 1066.3563453333902
positionAbsolute:
x: 3700.2464824803046
y: 1066.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- '1739113887765'
- text
variable_selector:
- conversation
- research_theme
write_mode: over-write
selected: false
title: '变量赋值 '
type: assigner
version: '2'
height: 88
id: '1739113831548'
position:
x: 947.9076845481827
y: 1164.655827734343
positionAbsolute:
x: 947.9076845481827
y: 1164.655827734343
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: 7d533919-08ca-4e43-bcba-86eae7d6f2ca
role: system
text: 关于用户给出的主题{{#1739087621665.Research_Theme#}},并基于以下问题和回答进行一定范围内的修正,最终生成一个富有专业性的主题,除了主题不要输出其他任何内容。
- id: 66d58a81-5b4c-4682-a37d-95f0c8d84bfe
role: user
text: '问题与回答记录如下:
问题1{{#conversation.q1#}}回答1{{#conversation.f1#}}
问题2{{#conversation.q2#}}回答2{{#conversation.f2#}}
问题3{{#conversation.q3#}}回答3{{#conversation.f3#}}
问题4{{#conversation.q4#}}回答4{{#conversation.f4#}}'
selected: false
title: 主题提取
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739113887765'
position:
x: 660.3942452033091
y: 1164.655827734343
positionAbsolute:
x: 660.3942452033091
y: 1164.655827734343
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- f1
write_mode: over-write
selected: false
title: 回答记录1
type: assigner
version: '2'
height: 88
id: '17391772546580'
position:
x: 947.9076845481827
y: 599.4593566990166
positionAbsolute:
x: 947.9076845481827
y: 599.4593566990166
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- f2
write_mode: over-write
selected: false
title: 回答记录2
type: assigner
version: '2'
height: 88
id: '1739177553097'
position:
x: 947.9076845481827
y: 736.135874004081
positionAbsolute:
x: 947.9076845481827
y: 736.135874004081
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- f3
write_mode: over-write
selected: false
title: 回答记录3
type: assigner
version: '2'
height: 88
id: '1739177564892'
position:
x: 947.9076845481827
y: 887.3856655567181
positionAbsolute:
x: 947.9076845481827
y: 887.3856655567181
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
items:
- input_type: variable
operation: over-write
value:
- sys
- query
variable_selector:
- conversation
- f4
write_mode: over-write
selected: false
title: 回答记录4
type: assigner
version: '2'
height: 88
id: '1739177578815'
position:
x: 947.9076845481827
y: 1028.978486275042
positionAbsolute:
x: 947.9076845481827
y: 1028.978486275042
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '|
研究主题已确定。
|
正在理解用户的回答...
'
desc: ''
selected: false
title: 输出:研究主题
type: answer
variables: []
height: 116
id: '1739178863421'
position:
x: 1251.6361955246539
y: 1164.655827734343
positionAbsolute:
x: 1251.6361955246539
y: 1164.655827734343
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '|
好的,依据用户给出的回答,我将构建多个研究角度。
'
desc: ''
selected: false
title: 输出:构建研究角度
type: answer
variables: []
height: 116
id: '1739178941340'
position:
x: 1616.6240944909441
y: 1373.415771862262
positionAbsolute:
x: 1616.6240944909441
y: 1373.415771862262
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '|
我将从以下4个角度进行分析:
**{{#1739112773493.subtitle1#}}**
**{{#1739112773493.subtitle2#}}**
**{{#1739112773493.subtitle3#}}**
**{{#1739112773493.subtitle4#}}**
正在生成研究报告...请稍候...
'
desc: ''
selected: false
title: 输出:研究角度
type: answer
variables: []
height: 192
id: '1739179029377'
position:
x: 2306.660157439413
y: 574.7241013562154
positionAbsolute:
x: 2306.660157439413
y: 574.7241013562154
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
error_handle_mode: remove-abnormal-output
height: 186
is_parallel: false
iterator_selector:
- '1739191349072'
- Keyword1
output_selector:
- '1739288338449'
- result
output_type: array[object]
parallel_nums: 10
selected: false
start_node_id: 1739189441547start
title: 迭代搜索1
type: iteration
width: 392
height: 186
id: '1739189441547'
position:
x: 2704.8146685653146
y: 825.2688637512169
positionAbsolute:
x: 2704.8146685653146
y: 825.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 392
zIndex: 1
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1739189441547start
parentId: '1739189441547'
position:
x: 24
y: 68
positionAbsolute:
x: 2728.8146685653146
y: 893.2688637512169
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
desc: ''
instruction: 提取{{#1739112773493.subtitle1#}}中的2~6个关键词
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: 提取语段中值得查询的2~6个关键词
name: Keyword1
required: false
type: array[string]
query:
- '1739112773493'
- subtitle1
reasoning_mode: prompt
selected: false
title: sub关键词提取1
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '1739191349072'
position:
x: 2306.660157439413
y: 825.2688637512169
positionAbsolute:
x: 2306.660157439413
y: 825.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
instruction: 提取{{#1739112773493.subtitle2#}}中的2~6个关键词
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: 提取语段中值得查询的2~6个关键词
name: Keyword2
required: false
type: array[string]
query:
- '1739112773493'
- subtitle2
reasoning_mode: prompt
selected: false
title: sub关键词提取2
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '17391916626840'
position:
x: 2306.660157439413
y: 1066.3563453333902
positionAbsolute:
x: 2306.660157439413
y: 1066.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
instruction: 提取{{#1739112773493.subtitle3#}}中的2~6个关键词
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: 提取语段中值得查询的2~6个关键词
name: Keyword3
required: false
type: array[string]
query:
- '1739112773493'
- subtitle3
reasoning_mode: prompt
selected: false
title: sub关键词提取3
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '17391916638460'
position:
x: 2301.062707750523
y: 1287.9608733054972
positionAbsolute:
x: 2301.062707750523
y: 1287.9608733054972
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
instruction: 提取{{#1739112773493.subtitle4#}}中的2~6个关键词
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-2.0-flash-exp
provider: google
parameters:
- description: 提取语段中值得查询的2~6个关键词
name: Keyword4
required: false
type: array[string]
query:
- '1739112773493'
- subtitle4
reasoning_mode: prompt
selected: false
title: sub关键词提取4
type: parameter-extractor
variables: []
vision:
enabled: false
height: 98
id: '17391916650280'
position:
x: 2301.062707750523
y: 1494.238365559005
positionAbsolute:
x: 2301.062707750523
y: 1494.238365559005
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
error_handle_mode: remove-abnormal-output
height: 182
is_parallel: false
iterator_selector:
- '17391916626840'
- Keyword2
output_selector:
- '1739288362314'
- result
output_type: array[object]
parallel_nums: 10
selected: false
start_node_id: 1739191679343start
title: 迭代搜索2
type: iteration
width: 388
height: 182
id: '17391916793430'
position:
x: 2704.8146685653146
y: 1066.3563453333902
positionAbsolute:
x: 2704.8146685653146
y: 1066.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 388
zIndex: 1
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1739191679343start
parentId: '17391916793430'
position:
x: 24
y: 68
positionAbsolute:
x: 2728.8146685653146
y: 1134.3563453333902
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
desc: ''
error_handle_mode: remove-abnormal-output
height: 185
is_parallel: false
iterator_selector:
- '17391916638460'
- Keyword3
output_selector:
- '1739288378358'
- result
output_type: array[object]
parallel_nums: 10
selected: false
start_node_id: 1739191680739start
title: 迭代搜索3
type: iteration
width: 372
height: 185
id: '17391916807390'
position:
x: 2704.8146685653146
y: 1287.9608733054972
positionAbsolute:
x: 2704.8146685653146
y: 1287.9608733054972
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 372
zIndex: 1
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1739191680739start
parentId: '17391916807390'
position:
x: 24
y: 68
positionAbsolute:
x: 2728.8146685653146
y: 1355.9608733054972
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
desc: ''
error_handle_mode: remove-abnormal-output
height: 185
is_parallel: false
iterator_selector:
- '17391916650280'
- Keyword4
output_selector:
- '1739191682740017391916827400'
- text
output_type: array[string]
parallel_nums: 10
selected: false
start_node_id: 1739191682740start
title: 迭代搜索4
type: iteration
width: 372
height: 185
id: '17391916827400'
position:
x: 2714.7895234134385
y: 1532.47530914348
positionAbsolute:
x: 2714.7895234134385
y: 1532.47530914348
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 372
zIndex: 1
- data:
desc: ''
isInIteration: true
iteration_id: '17391916827400'
provider_id: wikipedia
provider_name: wikipedia
provider_type: builtin
selected: false
title: 维基百科搜索
tool_configurations: {}
tool_label: 维基百科搜索
tool_name: wikipedia_search
tool_parameters:
language:
type: mixed
value: English
query:
type: mixed
value: '{{#17391916827400.item#}}'
type: tool
height: 54
id: '1739191682740017391916827400'
parentId: '17391916827400'
position:
x: 112
y: 65
positionAbsolute:
x: 2826.7895234134385
y: 1597.47530914348
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1739191682740start
parentId: '17391916827400'
position:
x: 24
y: 68
positionAbsolute:
x: 2738.7895234134385
y: 1600.47530914348
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: deepseek-r1-distill-llama-8b
provider: openai_api_compatible
prompt_template:
- id: c7891c1a-75ac-44c5-9a29-48146c83ba5d
role: system
text: 你的任务是为一份完整的报告写一个开始段,报告的主题是{{#1739087621665.Research_Theme#}},具体是{{#conversation.research_theme#}}主要包含的subtitle包括{{#1739111839440.text#}},在你输出的内容之后接下来是报告的正文内容,所以不要输出任何正文相关内容,只要做好总结起始段,并且合理流畅地承上启下第一段内容。
- id: 40b0b372-d058-4237-a87d-3e7cc5ac054d
role: user
text: 第一段的主题是{{#1739111839440.text#}}的第一句
selected: false
title: 起始段
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739192479032'
position:
x: 3362.4326109337553
y: 599.4593566990166
positionAbsolute:
x: 3362.4326109337553
y: 599.4593566990166
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: gemini-2.0-flash-exp
provider: google
prompt_template:
- id: 1117aed5-cd75-42e5-a2d2-7598d43e4d86
role: system
text: 你的任务是为一份完整的学术报告撰写结尾段,该报告的主题是 {{#1739087621665.Research_Theme#}},具体是{{#conversation.research_theme#}},其主要包含的
subtitle 为 {{#1739111839440.text#}}。需注意,在你输出的内容之前,正文内容已完整呈现,所以你无需输出任何正文相关的信息,只需精准做好总结工作。
- id: ecd2d056-c330-400d-b1b1-bb17c66cbbcd
role: user
text: '前文的所有内容如下:
起始段:{{#1739192479032.text#}}
第一小节:{{#llm.text#}}
第二小节:{{#17391136443240.text#}}
第三小节:{{#17391136486630.text#}}
第四小节:{{#17391136521390.text#}}
'
selected: false
title: 结尾段
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1739193987241'
position:
x: 3362.4326109337553
y: 1711.4354414471861
positionAbsolute:
x: 3362.4326109337553
y: 1711.4354414471861
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
dataset_ids:
- 70c17aae-fb0b-4e4d-9ae0-24def4b85670
desc: ''
isInIteration: true
iteration_id: '1739189441547'
multiple_retrieval_config:
reranking_enable: true
reranking_mode: weighted_score
reranking_model:
model: ''
provider: ''
score_threshold: null
top_k: 6
weights:
keyword_setting:
keyword_weight: 0.3
vector_setting:
embedding_model_name: text-embedding-bge-m3
embedding_provider_name: openai_api_compatible
vector_weight: 0.7
query_variable_selector:
- '1739189441547'
- item
retrieval_mode: multiple
selected: false
title: 知识检索
type: knowledge-retrieval
height: 92
id: '1739288338449'
parentId: '1739189441547'
position:
x: 116.41042494045269
y: 65
positionAbsolute:
x: 2821.2250935057673
y: 890.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
dataset_ids:
- 70c17aae-fb0b-4e4d-9ae0-24def4b85670
desc: ''
isInIteration: true
iteration_id: '17391916793430'
multiple_retrieval_config:
reranking_enable: true
reranking_mode: weighted_score
reranking_model:
model: ''
provider: ''
score_threshold: null
top_k: 6
weights:
keyword_setting:
keyword_weight: 0.3
vector_setting:
embedding_model_name: text-embedding-bge-m3
embedding_provider_name: openai_api_compatible
vector_weight: 0.7
query_variable_selector:
- '17391916793430'
- item
retrieval_mode: multiple
selected: false
title: 知识检索 2
type: knowledge-retrieval
height: 92
id: '1739288362314'
parentId: '17391916793430'
position:
x: 121.5666751952208
y: 65
positionAbsolute:
x: 2826.3813437605354
y: 1131.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
dataset_ids:
- 70c17aae-fb0b-4e4d-9ae0-24def4b85670
desc: ''
isInIteration: true
iteration_id: '17391916807390'
multiple_retrieval_config:
reranking_enable: true
reranking_mode: weighted_score
reranking_model:
model: ''
provider: ''
score_threshold: null
top_k: 6
weights:
keyword_setting:
keyword_weight: 0.3
vector_setting:
embedding_model_name: text-embedding-bge-m3
embedding_provider_name: openai_api_compatible
vector_weight: 0.7
query_variable_selector:
- '17391916807390'
- item
retrieval_mode: multiple
selected: false
title: 知识检索 3
type: knowledge-retrieval
height: 92
id: '1739288378358'
parentId: '17391916807390'
position:
x: 112
y: 65
positionAbsolute:
x: 2816.8146685653146
y: 1352.9608733054972
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
author: Adam Platin
desc: ''
height: 99
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"单线处理降低处理压力,同时报告之间相互引用,可使报告生成效果更好","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 99
id: '1739290423832'
position:
x: 3712.2910435983085
y: 1353.06504499246
positionAbsolute:
x: 3712.2910435983085
y: 1353.06504499246
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: not empty
id: e6f6a4e7-53f7-4f8e-95a3-c3ac21ef12b9
value: ''
varType: string
variable_selector:
- '17391136443240'
- text
- comparison_operator: not empty
id: d5dfab69-20e8-45b8-b727-3445e6afb98b
value: ''
varType: string
variable_selector:
- '17391136486630'
- text
- comparison_operator: not empty
id: deb174c0-8f96-43e6-b69c-a4d63a883437
value: ''
varType: string
variable_selector:
- '17391136521390'
- text
- comparison_operator: not empty
id: 3f5e218a-9d0c-4a3c-8434-e74238794536
value: ''
varType: string
variable_selector:
- llm
- text
- comparison_operator: not empty
id: 1a374e14-e3d5-4ff0-8c69-5c0b347ed0f6
value: ''
varType: string
variable_selector:
- '1739192479032'
- text
- comparison_operator: not empty
id: 2ee36e47-85cd-4e1d-88f3-2cd65a448407
value: ''
varType: string
variable_selector:
- '1739193987241'
- text
id: 'true'
logical_operator: and
desc: ''
selected: false
title: 条件分支 2
type: if-else
height: 256
id: '1739292584847'
position:
x: 3994.346690998074
y: 1066.3563453333902
positionAbsolute:
x: 3994.346690998074
y: 1066.3563453333902
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
author: Adam Platin
desc: ''
height: 125
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"本地模型运行时可能出现超时报错,解决方法:更换线上高性能模型或放弃使用思考模型","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 125
id: '1739455523841'
position:
x: 3700.2464824803046
y: 825.2688637512169
positionAbsolute:
x: 3700.2464824803046
y: 825.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 96
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"判断内容有无缺失,避免提前生成最终回复","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 96
id: '1739455609222'
position:
x: 3994.346690998074
y: 963.6608061124673
positionAbsolute:
x: 3994.346690998074
y: 963.6608061124673
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 108
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"支持本地搜索与联网搜索","type":"text","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"本地搜索前验证知识库模型参数","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 265
height: 108
id: '1739455696170'
position:
x: 2767.416729890918
y: 673.4282014507488
positionAbsolute:
x: 2767.416729890918
y: 673.4282014507488
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 265
- data:
author: Adam Platin
desc: ''
height: 112
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"尽可能获取反应速度与请求压力之间的平衡","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 112
id: '1739455754515'
position:
x: 2301.062707750523
y: 1621.9318987112752
positionAbsolute:
x: 2301.062707750523
y: 1621.9318987112752
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 116
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"这里用一个本地模型的原因是谷歌free请求为15RPM,为限制平均请求速度故在这里限时","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 116
id: '1739455772612'
position:
x: 3362.4326109337553
y: 430.0953336910093
positionAbsolute:
x: 3362.4326109337553
y: 430.0953336910093
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 88
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"在这里存储有利于下面快速反应","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 88
id: '1739455921823'
position:
x: 1841.6236802804503
y: 604.6331133592676
positionAbsolute:
x: 1841.6236802804503
y: 604.6331133592676
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 200
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"利用2>1来控制输出节奏,这一路有2个大模型节点进行减速,防止后面sub主题提取报错","type":"text","version":1},{"type":"linebreak","version":1},{"detail":0,"format":4,"mode":"normal","style":"","text":"25.2.14尝试使用条件分支完成","type":"text","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"25.2.16证实不可用,暂时恢复先前方案","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 242
height: 200
id: '1739456016685'
position:
x: 943.1876788138126
y: 1831.9108200678968
positionAbsolute:
x: 943.1876788138126
y: 1831.9108200678968
selected: true
sourcePosition: right
targetPosition: left
type: custom-note
width: 242
- data:
author: Adam Platin
desc: ''
height: 88
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"避开大模型处理,设计快速问答,方便用户使用,避免等待","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 88
id: '1739456609793'
position:
x: 1264.04671514597
y: 736.135874004081
positionAbsolute:
x: 1264.04671514597
y: 736.135874004081
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 98
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"基于用户问题query进行详细分析,输出报告","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 98
id: '1739533900527'
position:
x: 3118.343443893699
y: 825.2688637512169
positionAbsolute:
x: 3118.343443893699
y: 825.2688637512169
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: not empty
id: c6522221-60b5-4ed4-ac95-9fba1219de4a
value: ''
varType: string
variable_selector:
- conversation
- query1
- comparison_operator: not empty
id: 90672f46-9537-4ebc-8872-0b8c019af081
value: ''
varType: string
variable_selector:
- conversation
- query2
- comparison_operator: not empty
id: 735b492b-c7ef-4606-9dec-ed9d50110ce5
value: ''
varType: string
variable_selector:
- conversation
- query3
- comparison_operator: not empty
id: 8fc10afe-c57d-4528-b727-93c768009959
value: ''
varType: string
variable_selector:
- conversation
- query4
id: 'true'
logical_operator: and
desc: ''
selected: false
title: 条件分支 3
type: if-else
height: 204
id: '1739534132840'
position:
x: 1610.1746681847733
y: 1706.9053326666053
positionAbsolute:
x: 1610.1746681847733
y: 1706.9053326666053
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
author: Adam Platin
desc: ''
height: 88
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"使用对话轮次标记自然推进对话进程","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 88
id: '1739534513721'
position:
x: 65.46491577191637
y: 1234.4374329134607
positionAbsolute:
x: 65.46491577191637
y: 1234.4374329134607
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 120
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"本地模型服务器为LM
Studio ,使用Docker Desktop搭建时导入API节点一般需修改为http://","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"host.docker.internal","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":":1234/v1","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 120
id: '1739534846498'
position:
x: 3625.529838705924
y: 430.0953336910093
positionAbsolute:
x: 3625.529838705924
y: 430.0953336910093
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 121
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"维基百科科学上网后可以直接使用","type":"text","version":1},{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"同理也可以换成google和bing的API进行搜索","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 121
id: '1739678721867'
position:
x: 2767.416729890918
y: 1753.2360898550216
positionAbsolute:
x: 2767.416729890918
y: 1753.2360898550216
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
author: Adam Platin
desc: ''
height: 101
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"多个迭代搜索单元方便配置,实测延迟没有明显增加","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 101
id: '1739683031164'
position:
x: 2769.991221428777
y: 1886.7536753229351
positionAbsolute:
x: 2769.991221428777
y: 1886.7536753229351
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
answer: 报告生成发生错误,请重试
desc: ''
selected: false
title: 直接回复 10
type: answer
variables: []
height: 100
id: '1739683505956'
position:
x: 4305.939971577466
y: 1278.3341960669402
positionAbsolute:
x: 4305.939971577466
y: 1278.3341960669402
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 30.160531594006443
y: -101.62290507873479
zoom: 0.30069748205686647
================================================
FILE: DSL/Demo-tod_agent.yml
================================================
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: advanced-chat
name: Demo-tod_agent
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:0.0.12@604c1a752a92633a354dc7eea717248314f23bab66a9ce48d33b1c57a0f9463e
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: 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:
isInLoop: false
sourceType: start
targetType: agent
id: 1742523552659-source-1742523567258-target
source: '1742523552659'
sourceHandle: source
target: '1742523567258'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: agent
targetType: if-else
id: 1742523567258-source-1742523610643-target
source: '1742523567258'
sourceHandle: source
target: '1742523610643'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: answer
id: 1742523610643-false-answer-target
source: '1742523610643'
sourceHandle: 'false'
target: answer
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: llm
id: 1742523610643-true-1742523618478-target
source: '1742523610643'
sourceHandle: 'true'
target: '1742523618478'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: answer
id: 1742523618478-source-1742523717912-target
source: '1742523618478'
sourceHandle: source
target: '1742523717912'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables: []
height: 54
id: '1742523552659'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
agent_parameters:
information_schema:
type: constant
value: " {\n \"fields\": [\n {\n \"name\": \"destination\",\n\
\ \"question\": \"请问您想去哪里旅行?\",\n \"required\": true\n \
\ },\n {\n \"name\": \"duration\",\n \"question\": \"您计划旅行多长时间?\"\
,\n \"required\": true\n },\n {\n \"name\": \"budget\"\
,\n \"question\": \"您的预算大约是多少?\",\n \"required\": true\n \
\ }\n ]\n}"
model:
type: constant
value:
completion_params: {}
mode: chat
model: o1-mini
model_type: llm
provider: langgenius/openai/openai
type: model-selector
query:
type: constant
value: '{{#sys.query#}}'
storage_key:
type: constant
value: '{{#sys.conversation_id#}}'
agent_strategy_label: 信息收集
agent_strategy_name: TOD
agent_strategy_provider_name: svcvit/agent/agent
desc: ''
output_schema: null
plugin_unique_identifier: svcvit/agent:0.0.2@549846d9310c894b4879c475856b48cd224f35c078e3bd54dfceaefefb2f5c59
selected: false
title: Agent
type: agent
height: 146
id: '1742523567258'
position:
x: 380
y: 282
positionAbsolute:
x: 380
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1742523567258.text#}}'
desc: ''
selected: false
title: 直接回复
type: answer
variables: []
height: 105
id: answer
position:
x: 1006
y: 483
positionAbsolute:
x: 1006
y: 483
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: contains
id: bc8f6624-b1b9-4432-a9e0-777c00df126a
value: InformationCollectionCompleted
varType: string
variable_selector:
- '1742523567258'
- text
id: 'true'
logical_operator: and
desc: ''
selected: false
title: 条件分支
type: if-else
height: 126
id: '1742523610643'
position:
x: 683
y: 282
positionAbsolute:
x: 683
y: 282
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: o1-mini
provider: langgenius/openai/openai
prompt_template:
- id: a6bad59f-9d54-4e83-bd88-ca39bbfdded3
role: system
text: '你是一个旅行规划大师,请根据下面的信息,安排用户的行程。
'
- id: 6dd2efbc-296b-48e7-ba74-f8ddb52ee829
role: user
text: '这是我的行程信息:
{{#1742523567258.text#}}'
selected: false
title: LLM
type: llm
variables: []
vision:
enabled: false
height: 90
id: '1742523618478'
position:
x: 1006
y: 243
positionAbsolute:
x: 1006
y: 243
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
answer: '{{#1742523618478.text#}}'
desc: ''
selected: false
title: 直接回复 2
type: answer
variables: []
height: 105
id: '1742523717912'
position:
x: 1310
y: 243
positionAbsolute:
x: 1310
y: 243
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: -396
y: -79.5
zoom: 1
================================================
FILE: DSL/Dify 运营一条龙.yml
================================================
app:
description: ''
icon: laughing
icon_background: '#FEF7C3'
mode: workflow
name: "\u8FD0\u8425\u4E00\u6761\u9F99"
workflow:
features:
file_upload:
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
opening_statement: ''
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: template-transform
targetType: template-transform
id: 1721652076777-source-1721652199770-target
selected: false
source: '1721652076777'
sourceHandle: source
target: '1721652199770'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721652404241-source-1721652505347-target
selected: false
source: '1721652404241'
sourceHandle: source
target: '1721652505347'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: http-request
id: 1721652505347-source-1721651094996-target
selected: false
source: '1721652505347'
sourceHandle: source
target: '1721651094996'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721652199770-source-1721652331948-target
selected: false
source: '1721652199770'
sourceHandle: source
target: '1721652331948'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721652331948-source-1721652404241-target
selected: false
source: '1721652331948'
sourceHandle: source
target: '1721652404241'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1721651094996-source-1721662209718-target
selected: false
source: '1721651094996'
sourceHandle: source
target: '1721662209718'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: template-transform
id: 1721662209718-source-1721662079362-target
selected: false
source: '1721662209718'
sourceHandle: source
target: '1721662079362'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721662105551-source-1721662828166-target
selected: false
source: '1721662105551'
sourceHandle: source
target: '1721662828166'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1721662929596-source-1721663585779-target
selected: false
source: '1721662929596'
sourceHandle: source
target: '1721663585779'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721690415426-source-1721690435497-target
selected: false
source: '1721690415426'
sourceHandle: source
target: '1721690435497'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721690435497-source-1721690524892-target
selected: false
source: '1721690435497'
sourceHandle: source
target: '1721690524892'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721690653676-source-1721690415426-target
selected: false
source: '1721690653676'
sourceHandle: source
target: '1721690415426'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721662079362-source-1721694335783-target
selected: false
source: '1721662079362'
sourceHandle: source
target: '1721694335783'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721694335783-source-1721662105551-target
selected: false
source: '1721694335783'
sourceHandle: source
target: '1721662105551'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: http-request
id: 1721662828166-source-1721662929596-target
selected: false
source: '1721662828166'
sourceHandle: source
target: '1721662929596'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721690524892-source-1721696219141-target
selected: false
source: '1721690524892'
sourceHandle: source
target: '1721696219141'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721696219141-source-1721696385127-target
selected: false
source: '1721696219141'
sourceHandle: source
target: '1721696385127'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721696385127-source-1721696847822-target
selected: false
source: '1721696385127'
sourceHandle: source
target: '1721696847822'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721655646977-source-1721697843763-target
selected: false
source: '1721655646977'
sourceHandle: source
target: '1721697843763'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721696847822-source-1721698170033-target
selected: false
source: '1721696847822'
sourceHandle: source
target: '1721698170033'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: llm
id: 1721698170033-source-1721655646977-target
selected: false
source: '1721698170033'
sourceHandle: source
target: '1721655646977'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721651840885-source-1721652076777-target
selected: false
source: '1721651840885'
sourceHandle: source
target: '1721652076777'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721697843763-source-1721701419863-target
selected: false
source: '1721697843763'
sourceHandle: source
target: '1721701419863'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721701419863-source-1721701644071-target
selected: false
source: '1721701419863'
sourceHandle: source
target: '1721701644071'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: start
targetType: template-transform
id: 1721651035904-source-1721707099211-target
source: '1721651035904'
sourceHandle: source
target: '1721707099211'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721707099211-source-1721690653676-target
source: '1721707099211'
sourceHandle: source
target: '1721690653676'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721701644071-source-1721712145556-target
source: '1721701644071'
sourceHandle: source
target: '1721712145556'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721712145556-source-1721714505836-target
source: '1721712145556'
sourceHandle: source
target: '1721714505836'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721714505836-source-1721714550947-target
source: '1721714505836'
sourceHandle: source
target: '1721714550947'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721714550947-source-1721715546153-target
source: '1721714550947'
sourceHandle: source
target: '1721715546153'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721651774843-source-1721651840885-target
selected: false
source: '1721651774843'
sourceHandle: source
target: '1721651840885'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721715546153-source-1721718701926-target
source: '1721715546153'
sourceHandle: source
target: '1721718701926'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1721718701926-source-1721719115405-target
source: '1721718701926'
sourceHandle: source
target: '1721719115405'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: 1721719115405-source-1721651774843-target
selected: false
source: '1721719115405'
sourceHandle: source
target: '1721651774843'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725359431-source-1721725416818-target
source: '1721725359431'
sourceHandle: source
target: '1721725416818'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: template-transform
id: 1721663585779-source-1721725359431-target
source: '1721663585779'
sourceHandle: source
target: '1721725359431'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725416818-source-1721725710609-target
source: '1721725416818'
sourceHandle: source
target: '1721725710609'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725710609-source-1721725911399-target
source: '1721725710609'
sourceHandle: source
target: '1721725911399'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725911399-source-1721725922438-target
source: '1721725911399'
sourceHandle: source
target: '1721725922438'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725922438-source-1721725937530-target
source: '1721725922438'
sourceHandle: source
target: '1721725937530'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721725937530-source-1721726015646-target
source: '1721725937530'
sourceHandle: source
target: '1721726015646'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: http-request
id: 1721726015646-source-1721726214091-target
source: '1721726015646'
sourceHandle: source
target: '1721726214091'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1721726214091-source-1721726279422-target
source: '1721726214091'
sourceHandle: source
target: '1721726279422'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: template-transform
id: 1721726279422-source-1721726329343-target
source: '1721726279422'
sourceHandle: source
target: '1721726329343'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721726329343-source-1721726352414-target
source: '1721726329343'
sourceHandle: source
target: '1721726352414'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721726352414-source-1721726534849-target
source: '1721726352414'
sourceHandle: source
target: '1721726534849'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: template-transform
id: 1721726534849-source-1721726637683-target
source: '1721726534849'
sourceHandle: source
target: '1721726637683'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: http-request
id: 1721726637683-source-1721726752002-target
source: '1721726637683'
sourceHandle: source
target: '1721726752002'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1721726752002-source-1721726788584-target
source: '1721726752002'
sourceHandle: source
target: '1721726788584'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: end
id: 1721726788584-source-1721693244971-target
source: '1721726788584'
sourceHandle: source
target: '1721693244971'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables:
- label: "\u261D\uFE0F \u7B80\u5355\u8BF4\u8BF4\u57FA\u672C\u8981\u6C42"
max_length: 33024
options: []
required: true
type: paragraph
variable: basic_instruction
- label: "\u2728 \u53EF\u4EE5\u5728\u8FD9\u91CC\u5F3A\u8C03\u989D\u5916\u7684\
\u4E13\u7528\u672F\u8BED"
max_length: 33024
options: []
required: false
type: paragraph
variable: nouns
- label: "\U0001F4DD \u8BF7\u8865\u5145\u5FC5\u8981\u7684\u80CC\u666F\u4FE1\
\u606F\uFF0C\u5E2E\u52A9 AI \u63A8\u7406"
max_length: 33024
options: []
required: false
type: paragraph
variable: background_detail
- label: "\U0001F3A8 \u6B63\u6587\u98CE\u683C\u5F3A\u8C03"
max_length: 33024
options: []
required: false
type: paragraph
variable: style
height: 168
id: '1721651035904'
position:
x: -166.5745304500681
y: 282
positionAbsolute:
x: -166.5745304500681
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
authorization:
config:
api_key: 282608591251313024.AiqxcmC7VkwpDCipBRSE0YOtXWFIoCqq
header: X-API-Key
type: custom
type: api-key
body:
data: '{{#1721652505347.output#}}'
type: json
desc: ''
headers: Content-Type:application/json
method: post
params: ''
selected: false
timeout:
max_connect_timeout: 0
max_read_timeout: 0
max_write_timeout: 0
title: ImgRender - 1
type: http-request
url: https://api.imgrender.net/open/v1/pics
variables: []
height: 106
id: '1721651094996'
position:
x: 3838.5579612438532
y: 286.6105085101164
positionAbsolute:
x: 3838.5579612438532
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: "{\n \"width\": 1080,\n \"height\": 1440,\n \"backgroundColor\"\
: \"#ffffff\",\n \"borderColor\": \"#ffffff\",\n \"borderWidth\":\
\ 0,\n \"borderRadius\": 0,\n \"borderTopLeftRadius\": 0,\n \"\
borderTopRightRadius\": 0,\n \"borderBottomLeftRadius\": 0,\n \"borderBottomRightRadius\"\
: 0,\n"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u57FA\u672C\
\u8BBE\u7F6E"
type: template-transform
variables: []
height: 54
id: '1721651774843'
position:
x: 1742.110064053269
y: 286.6105085101164
positionAbsolute:
x: 1742.110064053269
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"texts\": [\n {\n \"x\": 80,\n \
\ \"y\": 120,\n \"text\": \"{{ content }}\",\n \"\
width\": 920,\n \"font\": \"Alibaba-PuHuiTi-Heavy\",\n \
\ \"fontSize\": \"{{ font_size|float }}\",\n \"lineHeight\": 24,\n\
\ \"lineSpacing\": 1.3,\n \"color\": \"{{ detail_color\
\ }}\",\n \"textAlign\": \"left\",\n \"zIndex\": 1\n\
\ },\n {\n \"x\": 540,\n \"y\": 1240,\n\
\ \"text\": \"{{ your_name }}\",\n \"width\": 800,\n\
\ \"font\": \"Alibaba-PuHuiTi-Heavy\",\n \"fontSize\"\
: 60,\n \"lineHeight\": 24,\n \"lineSpacing\": 1.3,\n\
\ \"color\": \"{{ name_color }}\",\n \"textAlign\"\
: \"center\",\n \"zIndex\": 1\n }\n ],\n"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u6587\u672C"
type: template-transform
variables:
- value_selector:
- '1721697843763'
- text
variable: content
- value_selector:
- '1721690415426'
- output
variable: your_name
- value_selector:
- '1721696385127'
- output
variable: detail_color
- value_selector:
- '1721696847822'
- output
variable: name_color
- value_selector:
- '1721698170033'
- output
variable: font_size
height: 54
id: '1721651840885'
position:
x: 2038.0951074918457
y: 286.6105085101164
positionAbsolute:
x: 2038.0951074918457
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"images\": [\n {\n \"x\": 0,\n \
\ \"y\": 0,\n \"width\": 1080,\n \"height\": 1440,\n\
\ \"url\": \"{{ background_image }}\",\n \"borderColor\"\
: \"#000000\",\n \"borderWidth\": 0,\n \"borderRadius\"\
: 0,\n \"borderTopLeftRadius\": 0,\n \"borderTopRightRadius\"\
: 0,\n \"borderBottomLeftRadius\": 0,\n \"borderBottomRightRadius\"\
: 0,\n \"zIndex\": 0\n },\n {\n \"x\"\
: 440,\n \"y\": 1020,\n \"width\": 200,\n \
\ \"height\": 200,\n \"url\": \"{{ avatar_url }}\",\n \
\ \"borderColor\": \"#000000\",\n \"borderWidth\": 0,\n\
\ \"borderRadius\": 100,\n \"borderTopLeftRadius\"\
: 0,\n \"borderTopRightRadius\": 0,\n \"borderBottomLeftRadius\"\
: 0,\n \"borderBottomRightRadius\": 0,\n \"zIndex\"\
: 1\n }\n ],\n"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u56FE\u7247"
type: template-transform
variables:
- value_selector:
- '1721690435497'
- output
variable: avatar_url
- value_selector:
- '1721690524892'
- output
variable: background_image
height: 54
id: '1721652076777'
position:
x: 2337.5737117998297
y: 286.6105085101164
positionAbsolute:
x: 2337.5737117998297
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"lines\": [\n {\n \"startX\": 30,\n \
\ \"startY\": 720,\n \"endX\": 1050,\n \"endY\"\
: 720,\n \"width\": 1,\n \"color\": \"#E1E1E1\",\n\
\ \"zIndex\": 1\n }\n ],\n"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u7EBF\u6761"
type: template-transform
variables: []
height: 54
id: '1721652199770'
position:
x: 2625.5591594697967
y: 286.6105085101164
positionAbsolute:
x: 2625.5591594697967
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"qrcodes\": [\n {\n \"x\": 440,\n \
\ \"y\": 726,\n \"size\": 200,\n \"content\"\
: \"https://catjourney.life\",\n \"foregroundColor\": \"#000000\"\
,\n \"backgroundColor\": \"#FFFFFF\",\n \"zIndex\"\
: 1\n }\n ],\n"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u4E8C\u7EF4\
\u7801"
type: template-transform
variables: []
height: 54
id: '1721652331948'
position:
x: 2914.877873101198
y: 286.6105085101164
positionAbsolute:
x: 2914.877873101198
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"blocks\": [\n {\n \"x\": 235,\n \
\ \"y\": 268,\n \"width\": 0,\n \"height\": 0,\n\
\ \"backgroundColor\": \"#FFFFFF\",\n \"borderColor\"\
: \"#FFFFFF\"\n }\n ]\n}"
title: "\u5C0F\u7EA2\u4E66 / \u5FAE\u535A\u5C01\u9762\u56FE\u7684\u77E9\u5F62\
\u4FEE\u9970"
type: template-transform
variables: []
height: 54
id: '1721652404241'
position:
x: 3204.5294753123662
y: 286.6105085101164
positionAbsolute:
x: 3204.5294753123662
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: '{{ basic_card }}
{{ text }}
{{ image }}
{# {{ line }} #}
{# {{ qrcode }} #}
{{ blocks }}'
title: "\u8BF7\u6C42\u4F53\u5408\u5E76 - 1"
type: template-transform
variables:
- value_selector:
- '1721651774843'
- output
variable: basic_card
- value_selector:
- '1721651840885'
- output
variable: text
- value_selector:
- '1721652076777'
- output
variable: image
- value_selector:
- '1721652199770'
- output
variable: line
- value_selector:
- '1721652331948'
- output
variable: qrcode
- value_selector:
- '1721652404241'
- output
variable: blocks
height: 54
id: '1721652505347'
position:
x: 3514.2791130527976
y: 286.6105085101164
positionAbsolute:
x: 3514.2791130527976
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
max_tokens: 40
temperature: 0.5
mode: chat
name: gpt-4o
provider: openai
prompt_template:
- id: a1b4be7e-8dbe-438b-b5e6-4271cfb5c354
role: system
text: "\u57FA\u7840\u4E13\u6709\u540D\u8BCD\u8868\uFF1A\n{{#1721690653676.output#}}\n\
---\n1. \u5E2E\u52A9\u7528\u6237\u751F\u6210\u4E00\u4E2A\u5438\u5F15\u4EBA\
\u773C\u7403\u7684\u6807\u9898\uFF0C\u8981\u90A3\u79CD\u793E\u4EA4\u5A92\
\u4F53\u5F88\u77ED\u5F88\u5438\u5F15\u4EBA\u7684\u6807\u9898\u3002\n2.\
\ \u53EA\u9700\u8981\u8F93\u51FA\u4E00\u4E2A\uFF0C\u4E0D\u8981\u89E3\u91CA\
\u4EFB\u4F55\u591A\u4F59\u7684\u5185\u5BB9\u3002\n3. \u82F1\u6587\u6216\
\u8005\u6570\u5B57\uFF0C\u4E0E\u4E2D\u6587\u4E4B\u95F4\u5E94\u8BE5\u6709\
\u4E00\u4E2A\u7A7A\u683C\u3002\n4. \u8BF7\u6CE8\u610F\u7528\u6237\u5F3A\
\u8C03\u7684\u4E13\u6709\u540D\u8BCD\u3002\n5. \u7528\u6237\u53EA\u662F\
\u7ED9\u4F60\u57FA\u7840\u4FE1\u606F\uFF0C\u4F60\u8981\u91CD\u65B0\u5199\
\u4E00\u4E2A\u5438\u5F15\u4EBA\u7684\u793E\u4EA4\u5A92\u4F53\u6807\u9898\
\uFF0C\u53EF\u4EE5\u8BED\u6C14\u5938\u5F20\u4E00\u70B9\u3002\n6. \u4E0D\
\u80FD\u6709 emoji\uFF0C\u4E0D\u8981\u4F7F\u7528 emoji\uFF0C\u4E0D\u8981\
\u7528 emoji\uFF01\n7. \u522B\u7528\u592A\u4FD7\u7684\u6BD4\u55BB\u548C\
\u7C7B\u6BD4\uFF0C\u5B81\u613F\u7528\u8BED\u6C14\u8BCD\u5938\u5F20\u4E00\
\u70B9\n8. \u5982\u679C\u9700\u8981\u6362\u884C\uFF0C\u5FC5\u987B\u4F7F\
\u7528\\n\uFF0C\u4E0D\u7528\u8F6C\u4E49\u3002\n9. \u4E0D\u8981\u5728\u53E5\
\u9996\u548C\u53E5\u672B\u6DFB\u52A0\u5F15\u53F7\u3002"
- id: d7161eba-c622-4b6d-a792-a713b7ba9695
role: user
text: "\u7528\u6237\u7684\u8F93\u5165\uFF1A{{#1721651035904.basic_instruction#}}\n\
\u7528\u6237\u5F3A\u8C03\u7684\u4E13\u6709\u540D\u8BCD\uFF1A{{#1721651035904.nouns#}}"
selected: false
title: "\u5C0F\u7EA2\u4E66 / \u6296\u97F3 / \u89C6\u9891\u53F7 / \u5FAE\u535A\
\uFF08\u5C01\u9762\u6807\u9898\uFF09"
type: llm
variables: []
vision:
configs:
detail: high
enabled: true
height: 98
id: '1721655646977'
position:
x: 468.46260080267564
y: 286.6105085101164
positionAbsolute:
x: 468.46260080267564
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: "{\n \"width\": 1080,\n \"height\": 1440,\n \"backgroundColor\"\
: \"#ffffff\",\n \"borderColor\": \"#ffffff\",\n \"borderWidth\":\
\ 0,\n \"borderRadius\": 0,\n \"borderTopLeftRadius\": 0,\n \"\
borderTopRightRadius\": 0,\n \"borderBottomLeftRadius\": 0,\n \"borderBottomRightRadius\"\
: 0,\n"
title: "\u5361\u7247\u5D4C\u5957 - \u6E10\u53D8\u80CC\u666F"
type: template-transform
variables: []
height: 54
id: '1721662079362'
position:
x: 4425.026780461602
y: 286.6105085101164
positionAbsolute:
x: 4425.026780461602
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: " \"images\": [\n {\n \"x\": 0,\n \
\ \"y\": 0,\n \"width\": 1080,\n \"height\": 1440,\n\
\ \"url\": \"{{ output }}\",\n \"borderColor\": \"\
#000000\",\n \"borderWidth\": 0,\n \"borderRadius\"\
: 0,\n \"borderTopLeftRadius\": 0,\n \"borderTopRightRadius\"\
: 0,\n \"borderBottomLeftRadius\": 0,\n \"borderBottomRightRadius\"\
: 0,\n \"zIndex\": 0\n },\n {\n \"x\"\
: 90,\n \"y\": 120,\n \"width\": 900,\n \
\ \"height\": 1200,\n \"url\": \"{{ card_image_url }}\",\n \
\ \"borderColor\": \"#000000\",\n \"borderWidth\":\
\ 16,\n \"borderRadius\": 24,\n \"borderTopLeftRadius\"\
: 0,\n \"borderTopRightRadius\": 0,\n \"borderBottomLeftRadius\"\
: 0,\n \"borderBottomRightRadius\": 0,\n \"zIndex\"\
: 2\n }\n ]\n}"
title: "\u6E10\u53D8\u80CC\u666F + \u5185\u5C42\u5361\u7247\u5D4C\u5957"
type: template-transform
variables:
- value_selector:
- '1721662209718'
- image_1_url
variable: card_image_url
- value_selector:
- '1721696219141'
- output
variable: output
height: 54
id: '1721662105551'
position:
x: 5016.400150167184
y: 286.6105085101164
positionAbsolute:
x: 5016.400150167184
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "import json\n\ndef main(arg1: str) -> dict:\n # Parse the JSON string\
\ (which is already the body content)\n data = json.loads(arg1)\n \
\ \n # Extract url from the parsed data\n url = data['data']['url']\n\
\ \n # Create and return the result dictionary\n return {\n \
\ \"image_1_url\": url\n }"
code_language: python3
desc: ''
outputs:
image_1_url:
children: null
type: string
selected: false
title: "\u57FA\u7840\u6E32\u67D3 url \u63D0\u53D6 - \u5C0F\u7EA2\u4E66"
type: code
variables:
- value_selector:
- '1721651094996'
- body
variable: arg1
height: 54
id: '1721662209718'
position:
x: 4132.007482318152
y: 286.6105085101164
positionAbsolute:
x: 4132.007482318152
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
selected: false
template: '{{ basic_card_2 }}
{{ block }}
{{ content }}'
title: "\u8BF7\u6C42\u4F53\u5408\u5E76 - 2"
type: template-transform
variables:
- value_selector:
- '1721662079362'
- output
variable: basic_card_2
- value_selector:
- '1721662105551'
- output
variable: content
- value_selector:
- '1721694335783'
- output
variable: block
height: 54
id: '1721662828166'
position:
x: 5307.667960494142
y: 286.6105085101164
positionAbsolute:
x: 5307.667960494142
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
authorization:
config:
api_key: 282608591251313024.AiqxcmC7VkwpDCipBRSE0YOtXWFIoCqq
header: X-API-Key
type: custom
type: api-key
body:
data: '{{#1721662828166.output#}}'
type: json
desc: ''
headers: Content-Type:application/json
method: post
params: ''
selected: false
timeout:
max_connect_timeout: 0
max_read_timeout: 0
max_write_timeout: 0
title: ImgRender - 2
type: http-request
url: https://api.imgrender.net/open/v1/pics
variables: []
height: 106
id: '1721662929596'
position:
x: 5599.067073592146
y: 286.6105085101164
positionAbsolute:
x: 5599.067073592146
y: 286.6105085101164
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "import json\n\ndef main(arg1: str) -> dict:\n # Parse the JSON string\
\ (which is already the body content)\n data = json.loads(arg1)\n \
\ \n # Extract url from the parsed data\n url = data['data']['url']\n\
\ \n # Create and return the result dictionary\n return {\n \
\ \"image_2_url\": url\n }"
code_language: python3
desc: ''
outputs:
image_2_url:
children: null
type: string
selected: false
title: "\u6E10\u53D8\u6E32\u67D3 url \u63D0\u53D6"
type: code
variables:
- value_selector:
- '1721662929596'
- body
variabl
gitextract__t742dxo/ ├── DSL/ │ ├── AgentFlow.yml │ ├── Agent工具调用.yml │ ├── Artifact.yml │ ├── Claude3 Code Translation.yml │ ├── Deep Researcher On Dify .yml │ ├── Demo-tod_agent.yml │ ├── Dify 运营一条龙.yml │ ├── Document_chat_template.yml │ ├── DuckDuckGo翻译+LLM二次翻译.yml │ ├── File_read.yml │ ├── Form表单聊天Demo.yml │ ├── Jina Reader Jinja.yml │ ├── LanguageConsistencyChecker.yml │ ├── MCP-amap.yml │ ├── MCP.yml │ ├── Python Coding Prompt.yml │ ├── SEO Slug Generator.yml │ ├── Text to Card Iteration.yml │ ├── chart_demo.yml │ ├── dify_course_demo.yml │ ├── jieba.yml │ ├── json-repair.yml │ ├── json_translate.yml │ ├── llm2o1.cn.yml │ ├── matplotlib.yml │ ├── runLLMCode.yml │ ├── simple-kimi.yml │ ├── translation_workflow.yml │ ├── 中译英.yml │ ├── 全书翻译.yml │ ├── 图文知识库/ │ │ ├── 图文知识库.yml │ │ └── 知识库内容/ │ │ ├── coffbox开启Gemini和Anthropic代理,chatwise连接方法.md │ │ └── 我是技术小白,如何用好DIFY.md │ ├── 完蛋!我被LLM包围了! .yml │ ├── 完蛋!我被LLM包围了!(战绩排行版).yml │ ├── 宝玉的英译中优化版.yml │ ├── 小支付-DEMO.yml │ ├── 思考助手.yml │ ├── 搜索大师.yml │ ├── 文章仿写-单图_多图自动搭配.yml │ ├── 旅行Demo.yml │ ├── 春联生成器 (“福”到了版本).yml │ ├── 春联生成器.yml │ ├── 标题党创作.yml │ ├── 根据用户的意图进行回复.yml │ ├── 瞎说新语v2.yml │ ├── 腾讯云SubtitleInfo.yml │ └── 记忆测试.yml ├── LICENSE ├── README.md ├── README_EN.md └── chat_history.md
Condensed preview — 52 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,028K chars).
[
{
"path": "DSL/AgentFlow.yml",
"chars": 4398,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: AgentFlow\n use_icon_as_answ"
},
{
"path": "DSL/Agent工具调用.yml",
"chars": 17028,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: Agent工具调用\n use_icon_as_answ"
},
{
"path": "DSL/Artifact.yml",
"chars": 3533,
"preview": "app:\n description: Artifact\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: Artifact\n use_icon_as"
},
{
"path": "DSL/Claude3 Code Translation.yml",
"chars": 33168,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: Claude3 Code Translation\n use_ic"
},
{
"path": "DSL/Deep Researcher On Dify .yml",
"chars": 96630,
"preview": "app:\n description: ''\n icon: exploding_head\n icon_background: '#D1E0FF'\n mode: advanced-chat\n name: Deep Researcher"
},
{
"path": "DSL/Demo-tod_agent.yml",
"chars": 7436,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: Demo-tod_agent\n use_icon_as"
},
{
"path": "DSL/Dify 运营一条龙.yml",
"chars": 104936,
"preview": "app:\n description: ''\n icon: laughing\n icon_background: '#FEF7C3'\n mode: workflow\n name: \"\\u8FD0\\u8425\\u4E00\\u6761\\"
},
{
"path": "DSL/Document_chat_template.yml",
"chars": 30385,
"preview": "app:\n description: ''\n icon: \"\\U0001F4D6\"\n icon_background: '#EFF1F5'\n mode: workflow\n name: document chat\nkind: ap"
},
{
"path": "DSL/DuckDuckGo翻译+LLM二次翻译.yml",
"chars": 7449,
"preview": "app:\n description: \"\\u4E2D\\u8BD1\\u82F1\\uFF0C\\u52062\\u6B65\\u8FDB\\u884C\\u7FFB\\u8BD1\\u3002\\\n 1\\u3001\\u4F20\\u7EDF\\u7684\\"
},
{
"path": "DSL/File_read.yml",
"chars": 7235,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: File_read\n use_icon_as_answer_ic"
},
{
"path": "DSL/Form表单聊天Demo.yml",
"chars": 10838,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: Form表单聊天Demo\n use_icon_as_a"
},
{
"path": "DSL/Jina Reader Jinja.yml",
"chars": 10959,
"preview": "app:\n description: ''\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: workflow\n name: Jina Reader Jinja\nkind"
},
{
"path": "DSL/LanguageConsistencyChecker.yml",
"chars": 20281,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: 三语一致性检查\n use_icon_as_answer_icon"
},
{
"path": "DSL/MCP-amap.yml",
"chars": 10120,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: MCP\n use_icon_as_answer_ico"
},
{
"path": "DSL/MCP.yml",
"chars": 10168,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: MCP\n use_icon_as_answer_ico"
},
{
"path": "DSL/Python Coding Prompt.yml",
"chars": 5588,
"preview": "app:\n description: \"\\u4E00\\u4E2A\\u5F88\\u597D\\u7528\\u7684\\uFF0C\\u9488\\u5BF9\\u5199Python\\\n \\ \\u4EE3\\u7801\\u7684\\u804A\\"
},
{
"path": "DSL/SEO Slug Generator.yml",
"chars": 4131,
"preview": "app:\n description: This GPT will convert input titles or content into SEO-friendly English\n URL slugs. The slugs wil"
},
{
"path": "DSL/Text to Card Iteration.yml",
"chars": 7022,
"preview": "app:\n description: ''\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: workflow\n name: \"\\u6587\\u5B57\\u8F6C\\u5"
},
{
"path": "DSL/chart_demo.yml",
"chars": 7467,
"preview": "app:\n description: 一个图表渲染的示例\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: chart_demo\n use_icon"
},
{
"path": "DSL/dify_course_demo.yml",
"chars": 15524,
"preview": "app:\n description: '可以自动化生成全套教程。\n\n 开始时输入想要生成的教程名称。'\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: "
},
{
"path": "DSL/jieba.yml",
"chars": 3523,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: jieba\n use_icon_as_answer_i"
},
{
"path": "DSL/json-repair.yml",
"chars": 3225,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: json-repair\n use_icon_as_answer_"
},
{
"path": "DSL/json_translate.yml",
"chars": 14095,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: json_translate\n use_icon_as_answ"
},
{
"path": "DSL/llm2o1.cn.yml",
"chars": 11846,
"preview": "app:\n description: 使用常规大语言模型模拟 o1 的思维链,具备更强的推理能力。\n icon: 🍓\n icon_background: '#D1E0FF'\n mode: advanced-chat\n name: "
},
{
"path": "DSL/matplotlib.yml",
"chars": 4448,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: matplotlib\n use_icon_as_ans"
},
{
"path": "DSL/runLLMCode.yml",
"chars": 12817,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: runLLMCode\n use_icon_as_answer_i"
},
{
"path": "DSL/simple-kimi.yml",
"chars": 46014,
"preview": "app:\n description: simple-kimi\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: simple-kimi\n use_i"
},
{
"path": "DSL/translation_workflow.yml",
"chars": 14721,
"preview": "app:\n description: \"\\u4F7F\\u7528\\u5434\\u6069\\u8FBE\\u63D0\\u51FA Agentic Workflow \\u5236\\\n \\u4F5C\\u7684\\u7FFB\\u8BD1\\u5"
},
{
"path": "DSL/中译英.yml",
"chars": 6506,
"preview": "app:\n description: \"\\u4E2D\\u8BD1\\u82F1\"\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: workflow\n name: \"\\u4"
},
{
"path": "DSL/全书翻译.yml",
"chars": 16917,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: 全书翻译\n use_icon_as_answer_icon: f"
},
{
"path": "DSL/图文知识库/图文知识库.yml",
"chars": 5183,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: 图文知识库\n use_icon_as_answer_i"
},
{
"path": "DSL/图文知识库/知识库内容/coffbox开启Gemini和Anthropic代理,chatwise连接方法.md",
"chars": 689,
"preview": "## coffbox开启Gemini和Anthropic代理,chatwise连接方法\n\n今天升级了一下 [coffbox](https://one.coffbox.com/) One API 服务,开启了 Claude API 和 Gem"
},
{
"path": "DSL/图文知识库/知识库内容/我是技术小白,如何用好DIFY.md",
"chars": 5253,
"preview": "在大语言模型发展的这几年,因为工作原因,接触 DIFY 时间比较长一点点,总结一下自己的一些想法。包括选择什么样的模型,为什么众多应用层的开发工具/产品选择了 DIFY,DIFY 能做什么?\n\n[](https://blog.vcvit.m"
},
{
"path": "DSL/完蛋!我被LLM包围了! .yml",
"chars": 57977,
"preview": "app:\n description: '你可以和大模型斗智斗勇,通过你的聪明才智,让大模型遵循你的指令,“老老实实”地回答问题。\n\n 通过本游戏对大型语言模型产生更深刻的理解。一起来感受玩“坏”大模型的乐趣吧!\n\n 目前总共有"
},
{
"path": "DSL/完蛋!我被LLM包围了!(战绩排行版).yml",
"chars": 66736,
"preview": "app:\n description: 【使用中,请勿操作】\n icon: video_game\n icon_background: '#FBE8FF'\n mode: advanced-chat\n name: 完蛋!我被LLM包围了"
},
{
"path": "DSL/宝玉的英译中优化版.yml",
"chars": 7198,
"preview": "app:\n description: \"\\u7FFB\\u8BD1 GPT \\u7684\\u63D0\\u793A\\u8BCD\\u66F4\\u65B0\\u548C\\u4F18\\u5316\"\n icon: \"\\U0001F916\"\n ico"
},
{
"path": "DSL/小支付-DEMO.yml",
"chars": 15456,
"preview": "app:\n description: 使用支付流程的DEMO示例\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: 小支付-DEMO\n use_ic"
},
{
"path": "DSL/思考助手.yml",
"chars": 4264,
"preview": "app:\n description: ''\n icon: \"\\U0001F916\"\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: \"\\u601D\\u8003\\u52"
},
{
"path": "DSL/搜索大师.yml",
"chars": 17093,
"preview": "app:\n description: ''\n icon: \"\\U0001F310\"\n icon_background: '#E4FBCC'\n mode: advanced-chat\n name: \"\\u641C\\u7D22\\u59"
},
{
"path": "DSL/文章仿写-单图_多图自动搭配.yml",
"chars": 36615,
"preview": "app:\n description: \"\\u8F93\\u5165\\u4E00\\u4E2A\\u7F51\\u9875\\u5B9E\\u73B0\\u6587\\u7AE0\\u5185\\\n \\u5BB9\\u7684\\u4EFF\\u5199\\u5"
},
{
"path": "DSL/旅行Demo.yml",
"chars": 10061,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: 旅行Demo\n use_icon_as_answer_"
},
{
"path": "DSL/春联生成器 (“福”到了版本).yml",
"chars": 9820,
"preview": "app:\n description: ''\n icon: firecracker\n icon_background: '#FFE4E8'\n mode: workflow\n name: 春联生成器\n use_icon_as_ans"
},
{
"path": "DSL/春联生成器.yml",
"chars": 8559,
"preview": "app:\n description: ''\n icon: firecracker\n icon_background: '#FFE4E8'\n mode: workflow\n name: 春联生成器\n use_icon_as_ans"
},
{
"path": "DSL/标题党创作.yml",
"chars": 17866,
"preview": "app:\n description: \"\\u6807\\u9898\\u515A\\u521B\\u4F5C\"\n icon: face_vomiting\n icon_background: '#FFEAD5'\n mode: workflow"
},
{
"path": "DSL/根据用户的意图进行回复.yml",
"chars": 20844,
"preview": "app:\n description: \"\\u56FE\\u7247\\u6253\\u5361\\u7684\\u94FE\\u63A5\\u6253\\u5361\\u2014\\u2014\\\n >\\u7528\\u6237\\u610F\\u56FE\\u"
},
{
"path": "DSL/瞎说新语v2.yml",
"chars": 12719,
"preview": "app:\n description: '人间不值得,请听我瞎说 : 你瞎问,我瞎说\n\n By i-jiaqi.li@outlook.com\n\n v2版本,可用'\n icon: 🤖\n icon_background: '#F"
},
{
"path": "DSL/腾讯云SubtitleInfo.yml",
"chars": 8064,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: workflow\n name: TC_Get\n use_icon_as_answer_icon:"
},
{
"path": "DSL/记忆测试.yml",
"chars": 45333,
"preview": "app:\n description: ''\n icon: 🤖\n icon_background: '#FFEAD5'\n mode: advanced-chat\n name: 记忆测试\n use_icon_as_answer_ic"
},
{
"path": "LICENSE",
"chars": 1063,
"preview": "MIT License\n\nCopyright (c) 2024 svcvit\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof "
},
{
"path": "README.md",
"chars": 25594,
"preview": "<div align=\"center\">\n\n# Awesome-Dify-Workflow 🚀\n<strong>Share & Discover Useful Dify Workflows! For personal use & learn"
},
{
"path": "README_EN.md",
"chars": 29337,
"preview": "<div align=\"center\">\n\n# Awesome-Dify-Workflow 🚀\n<strong>Share & Discover Useful Dify Workflows! For personal use & learn"
},
{
"path": "chat_history.md",
"chars": 12524,
"preview": "### wxid_2zyfe21ojzzw22 - 2025-05-08 11:22:08\n我想请问一下dify在做知识库查询的时候,预处理文档有没有比较好的一个方法奥\n\n---\n\n### wxid_2zyfe21ojzzw22 - 202"
}
]
About this extraction
This page contains the full source code of the svcvit/Awesome-Dify-Workflow GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 52 files (944.0 KB), approximately 291.3k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.