dify AI 教程:图文智控链
一款基于人工智能技术的智能工作流工具。它能够智能识别用户上传的图片和文档,并根据内容的不同进行灵活处理。无论是纯图片、纯文档还是图文混合的内容,该工作流都能迅速判断并启动相应的处理模式。通过精准的图片解读和文档总结功能,该工作流能够帮助用户快速获取所需信息,提高工作效率。
工作流图谱
YAML 源码
app:
description: 一款基于人工智能技术的智能工作流工具。它能够智能识别用户上传的图片和文档,并根据内容的不同进行灵活处理。无论是纯图片、纯文档还是图文混合的内容,该工作流都能迅速判断并启动相应的处理模式。通过精准的图片解读和文档总结功能,该工作流能够帮助用户快速获取所需信息,提高工作效率。
icon: 🤖
icon_background: '#FFEAD5'
mode: advanced-chat
name: dify AI 教程:图文智控链
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
- document
allowed_file_upload_methods:
- local_file
- remote_url
enabled: true
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 2
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: document-extractor
targetType: llm
id: 1729745812798-source-1729745833319-target
selected: false
source: '1729745812798'
sourceHandle: source
target: '1729745833319'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: start
targetType: if-else
id: 1729745506050-source-1729842464654-target
selected: false
source: '1729745506050'
sourceHandle: source
target: '1729842464654'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: llm-source-17298427900570-target
source: llm
sourceHandle: source
target: '17298427900570'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: answer
id: 17298427900570-source-1729746188871-target
source: '17298427900570'
sourceHandle: source
target: '1729746188871'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: 1729745833319-source-17298428725480-target
source: '1729745833319'
sourceHandle: source
target: '17298428725480'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: answer
id: 17298428725480-source-17298428920100-target
source: '17298428725480'
sourceHandle: source
target: '17298428920100'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: list-operator
targetType: llm
id: 1729843154767-source-llm-target
source: '1729843154767'
sourceHandle: source
target: llm
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: list-operator
targetType: document-extractor
id: 1729843232287-source-1729745812798-target
source: '1729843232287'
sourceHandle: source
target: '1729745812798'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: list-operator
id: 1729842464654-true-17298438860310-target
source: '1729842464654'
sourceHandle: 'true'
target: '17298438860310'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: list-operator
id: 1729842464654-true-17298438968460-target
source: '1729842464654'
sourceHandle: 'true'
target: '17298438968460'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: list-operator
targetType: llm
id: 17298438860310-source-17298439211430-target
source: '17298438860310'
sourceHandle: source
target: '17298439211430'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: list-operator
targetType: document-extractor
id: 17298438968460-source-17298439469400-target
source: '17298438968460'
sourceHandle: source
target: '17298439469400'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: document-extractor
targetType: llm
id: 17298439469400-source-17298439554700-target
source: '17298439469400'
sourceHandle: source
target: '17298439554700'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: 17298439211430-source-17298439626060-target
source: '17298439211430'
sourceHandle: source
target: '17298439626060'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: template-transform
id: 17298439554700-source-17298439626060-target
source: '17298439554700'
sourceHandle: source
target: '17298439626060'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: answer
id: 17298439626060-source-17298439666420-target
source: '17298439626060'
sourceHandle: source
target: '17298439666420'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: list-operator
id: 1729842464654-38988a71-c603-4a12-a2b4-a2cc28acc3b9-1729843154767-target
source: '1729842464654'
sourceHandle: 38988a71-c603-4a12-a2b4-a2cc28acc3b9
target: '1729843154767'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: list-operator
id: 1729842464654-4589631f-60ae-46f1-811c-1f9df2e5e6e4-1729843232287-target
source: '1729842464654'
sourceHandle: 4589631f-60ae-46f1-811c-1f9df2e5e6e4
target: '1729843232287'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables: []
height: 64
id: '1729745506050'
position:
x: -180.99842535694097
y: -152.93179174084005
positionAbsolute:
x: -180.99842535694097
y: -152.93179174084005
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: true
variable_selector:
- '1729843154767'
- last_record
desc: ''
memory:
query_prompt_template: '{{#sys.query#}}'
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: llava
provider: ollama
prompt_template:
- id: 93bf2586-0ea2-4f1c-8735-db18d483869d
role: system
text: 分析解读{{#context#}}的图片内容,以提供详细、准确的图片解读内容。
selected: false
title: 图片总结
type: llm
variables: []
vision:
configs:
detail: high
variable_selector:
- '1729843154767'
- last_record
enabled: true
height: 119
id: llm
position:
x: 679.9741838712503
y: 189.19332892843659
positionAbsolute:
x: 679.9741838712503
y: 189.19332892843659
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
is_array_file: false
selected: false
title: 文档提取器
type: document-extractor
variable_selector:
- '1729843232287'
- last_record
height: 111
id: '1729745812798'
position:
x: 679.9741838712503
y: 357.61944668756155
positionAbsolute:
x: 679.9741838712503
y: 357.61944668756155
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: true
variable_selector:
- '1729745812798'
- text
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: llava
provider: ollama
prompt_template:
- id: 8f1f437e-b1c3-49ae-8442-fdda8a6db5c8
role: system
text: '## 角色
- 你是一位专业的文档总结专家,拥有多年经验,擅长快速准确地提炼文档中的关键信息。
## 技能
- 能够阅读并理解各种类型的文档内容。
- 可以用简短、清晰的语言概括文档的核心要点。
- 总结时应保留文档的主要观点和结论,去除冗余信息。
- 摘要长度需严格控制在100字以内,确保信息精炼而不失完整性。
## 指令
- 请仔细阅读下面提供的文档内容。
- 将其核心要点提炼出来,形成一份简明扼要的摘要。
- 摘要的文字量不应超过100字。
- 确保摘要包含文档的主要观点、结论及任何重要的细节。
请将以下内容总结为不超过100字的摘要:{{#context#}}'
selected: false
title: 文档总结
type: llm
variables: []
vision:
enabled: false
height: 119
id: '1729745833...(过长已截断)