mirror of
https://github.com/svcvit/Awesome-Dify-Workflow.git
synced 2026-06-04 10:13:51 +08:00
添加jieba分词示例
This commit is contained in:
+155
@@ -0,0 +1,155 @@
|
||||
app:
|
||||
description: ''
|
||||
icon: 🤖
|
||||
icon_background: '#FFEAD5'
|
||||
mode: advanced-chat
|
||||
name: jieba
|
||||
use_icon_as_answer_icon: false
|
||||
kind: app
|
||||
version: 0.1.3
|
||||
workflow:
|
||||
conversation_variables: []
|
||||
environment_variables: []
|
||||
features:
|
||||
file_upload:
|
||||
allowed_file_extensions:
|
||||
- .JPG
|
||||
- .JPEG
|
||||
- .PNG
|
||||
- .GIF
|
||||
- .WEBP
|
||||
- .SVG
|
||||
allowed_file_types:
|
||||
- image
|
||||
allowed_file_upload_methods:
|
||||
- local_file
|
||||
- remote_url
|
||||
enabled: false
|
||||
fileUploadConfig:
|
||||
audio_file_size_limit: 50
|
||||
batch_count_limit: 5
|
||||
file_size_limit: 15
|
||||
image_file_size_limit: 10
|
||||
video_file_size_limit: 100
|
||||
workflow_file_upload_limit: 10
|
||||
image:
|
||||
enabled: false
|
||||
number_limits: 3
|
||||
transfer_methods:
|
||||
- local_file
|
||||
- remote_url
|
||||
number_limits: 3
|
||||
opening_statement: ''
|
||||
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: code
|
||||
id: 1732240791951-source-1732240797960-target
|
||||
source: '1732240791951'
|
||||
sourceHandle: source
|
||||
target: '1732240797960'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
- data:
|
||||
isInIteration: false
|
||||
sourceType: code
|
||||
targetType: answer
|
||||
id: 1732240797960-source-answer-target
|
||||
source: '1732240797960'
|
||||
sourceHandle: source
|
||||
target: answer
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
nodes:
|
||||
- data:
|
||||
desc: ''
|
||||
selected: false
|
||||
title: 开始
|
||||
type: start
|
||||
variables: []
|
||||
height: 54
|
||||
id: '1732240791951'
|
||||
position:
|
||||
x: 30
|
||||
y: 258
|
||||
positionAbsolute:
|
||||
x: 30
|
||||
y: 258
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
- data:
|
||||
answer: '{{#1732240797960.output#}}'
|
||||
desc: ''
|
||||
selected: false
|
||||
title: 直接回复
|
||||
type: answer
|
||||
variables: []
|
||||
height: 103
|
||||
id: answer
|
||||
position:
|
||||
x: 638
|
||||
y: 258
|
||||
positionAbsolute:
|
||||
x: 638
|
||||
y: 258
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
- data:
|
||||
code: "import jieba\nimport logging\njieba.setLogLevel(logging.INFO)\n\ndef\
|
||||
\ main(input_content: str):\n seg_list = jieba.cut(input_content,use_paddle=True)\
|
||||
\ # 使用paddle模式\n\n return {\n \"output\": str(list(seg_list)),\n\
|
||||
\ }"
|
||||
code_language: python3
|
||||
desc: ''
|
||||
outputs:
|
||||
output:
|
||||
children: null
|
||||
type: string
|
||||
selected: false
|
||||
title: 代码执行
|
||||
type: code
|
||||
variables:
|
||||
- value_selector:
|
||||
- sys
|
||||
- query
|
||||
variable: input_content
|
||||
height: 54
|
||||
id: '1732240797960'
|
||||
position:
|
||||
x: 334
|
||||
y: 258
|
||||
positionAbsolute:
|
||||
x: 334
|
||||
y: 258
|
||||
selected: true
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 244
|
||||
viewport:
|
||||
x: 265.00000000000006
|
||||
y: 65.35000000000008
|
||||
zoom: 0.7
|
||||
@@ -88,11 +88,12 @@ A:执行下面的指令:docker exec -it docker-api-1 flask reset-password
|
||||
|
||||
你可以参考下面每个 yml 的描述,找到你需要的 Workflow,然后在 DSL 文件夹中找到对应的文件,复制文件的 URL,导入自己的 Dify 账号即可。
|
||||
|
||||
## 2024-11-21更新
|
||||
## 2024-11-22更新
|
||||
|
||||
| 文件 | 描述 | 来源 |
|
||||
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
|
||||
| `matplotlib.yml` | 使用matplotlib画图,将图片输出为base64,再通过回复渲染图片。注意,官方sandbox权限比较复杂,安装完matplotlib也无法使用,请使用[dify-sandbox-py](https://github.com/svcvit/dify-sandbox-py)  | 微信 @svcvit |
|
||||
| `jieba.yml` | jieba 分词示例,请使用[dify-sandbox-py](https://github.com/svcvit/dify-sandbox-py)  | 微信 @svcvit |
|
||||
|
||||
|
||||
## 2024-11-20更新
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 640 KiB |
Reference in New Issue
Block a user