mirror of
https://github.com/svcvit/Awesome-Dify-Workflow.git
synced 2026-06-04 10:13:51 +08:00
增加短期记忆功能和CoT示例
This commit is contained in:
+183
@@ -0,0 +1,183 @@
|
||||
app:
|
||||
description: ''
|
||||
icon: "\U0001F916"
|
||||
icon_background: '#FFEAD5'
|
||||
mode: advanced-chat
|
||||
name: "\u601D\u8003\u52A9\u624B"
|
||||
kind: app
|
||||
version: 0.1.0
|
||||
workflow:
|
||||
environment_variables: []
|
||||
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:
|
||||
sourceType: llm
|
||||
targetType: answer
|
||||
id: llm-answer
|
||||
source: llm
|
||||
sourceHandle: source
|
||||
target: answer
|
||||
targetHandle: target
|
||||
type: custom
|
||||
- data:
|
||||
isInIteration: false
|
||||
sourceType: start
|
||||
targetType: knowledge-retrieval
|
||||
id: 1723188302358-source-1723188386218-target
|
||||
source: '1723188302358'
|
||||
sourceHandle: source
|
||||
target: '1723188386218'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
- data:
|
||||
isInIteration: false
|
||||
sourceType: knowledge-retrieval
|
||||
targetType: llm
|
||||
id: 1723188386218-source-llm-target
|
||||
source: '1723188386218'
|
||||
sourceHandle: source
|
||||
target: llm
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
nodes:
|
||||
- data:
|
||||
desc: ''
|
||||
selected: false
|
||||
title: "\u5F00\u59CB"
|
||||
type: start
|
||||
variables: []
|
||||
height: 54
|
||||
id: '1723188302358'
|
||||
position:
|
||||
x: 80
|
||||
y: 282
|
||||
positionAbsolute:
|
||||
x: 80
|
||||
y: 282
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
- data:
|
||||
context:
|
||||
enabled: true
|
||||
variable_selector:
|
||||
- '1723188386218'
|
||||
- result
|
||||
desc: ''
|
||||
memory:
|
||||
role_prefix:
|
||||
assistant: ''
|
||||
user: ''
|
||||
window:
|
||||
enabled: false
|
||||
size: 10
|
||||
model:
|
||||
completion_params:
|
||||
temperature: 0.7
|
||||
mode: chat
|
||||
name: yi-large-turbo
|
||||
provider: yi
|
||||
prompt_template:
|
||||
- id: f8d5d261-7634-482e-a096-d09737c03c9d
|
||||
role: system
|
||||
text: "\u4F60\u662F\u4E00\u4E2A\u5206\u6790\u4E13\u5BB6\uFF0C\u8BF7\u4F60\
|
||||
\u6839\u636E{{#sys.query#}}\u7684\u8981\u6C42\uFF0C\u4F7F\u7528{{#context#}}\u9700\
|
||||
\u8981\u7684\u6846\u67B6\uFF0C\u89E3\u51B3\u95EE\u9898"
|
||||
selected: false
|
||||
title: LLM
|
||||
type: llm
|
||||
variables: []
|
||||
vision:
|
||||
enabled: false
|
||||
height: 98
|
||||
id: llm
|
||||
position:
|
||||
x: 680
|
||||
y: 282
|
||||
positionAbsolute:
|
||||
x: 680
|
||||
y: 282
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
- data:
|
||||
answer: '{{#llm.text#}}'
|
||||
desc: ''
|
||||
selected: false
|
||||
title: "\u76F4\u63A5\u56DE\u590D"
|
||||
type: answer
|
||||
variables: []
|
||||
height: 107
|
||||
id: answer
|
||||
position:
|
||||
x: 980
|
||||
y: 282
|
||||
positionAbsolute:
|
||||
x: 980
|
||||
y: 282
|
||||
selected: true
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
- data:
|
||||
dataset_ids:
|
||||
- 94624cfc-4bb2-417e-adfc-7d5428e093ac
|
||||
desc: ''
|
||||
query_variable_selector:
|
||||
- '1723188302358'
|
||||
- sys.query
|
||||
retrieval_mode: single
|
||||
selected: false
|
||||
single_retrieval_config:
|
||||
model:
|
||||
completion_params: {}
|
||||
mode: chat
|
||||
name: qwen-plus-chat
|
||||
provider: tongyi
|
||||
title: "\u77E5\u8BC6\u68C0\u7D22"
|
||||
type: knowledge-retrieval
|
||||
height: 92
|
||||
id: '1723188386218'
|
||||
position:
|
||||
x: 380
|
||||
y: 282
|
||||
positionAbsolute:
|
||||
x: 380
|
||||
y: 282
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
viewport:
|
||||
x: 50.66783737898527
|
||||
y: 141.64378704610294
|
||||
zoom: 0.5708591711720331
|
||||
+1847
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,8 @@
|
||||
# Awesome-Dify-Workflow
|
||||
|
||||
分享一些好用的 Dify 工作流程,自用、学习两相宜,请使用 Dify 0.6.14 及以上版本导入。
|
||||
分享一些好用的 Dify 工作流程,自用、学习两相宜,请使用 Dify 0.8.0 及以上版本导入。已支持多任务并行以及会话变量相关特性。
|
||||
|
||||
所有的 Workflow 基本都可以 **免费** 使用,不需要对接第三方平台 API,模型使用 Deepseek,主要是因为便宜,注册即送 500 万 Token。
|
||||
|
||||
更多 Workflow 收集整理中……
|
||||
所有的 Workflow 基本都可以 **免费** 使用,更多 Workflow 收集整理中……
|
||||
|
||||
## 参考截图
|
||||
|
||||
@@ -42,6 +40,7 @@
|
||||
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
||||
| `根据用户的意图进行回复.yml` | 根据用户的聊天内容,进行意图判定,根据意图选择不同的工作流路径进行回复,再风格化聊天机器人话术  | 无 |
|
||||
| `mem0ai` | 一个有记忆的聊天流程,完整代码见来源链接  | [dify-plugin-mem0ai](https://github.com/tonori/dify-plugin-mem0ai) |
|
||||
| `记忆测试.yml` | 添加短期记忆,CoT 思维链的示例,自动问答机器人也可以主动触达,根据上下文选择最佳回复  | 来自微信分享 svcvit |
|
||||
|
||||
## 代码
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 631 KiB |
Reference in New Issue
Block a user