-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path工作流-问题分类、知识库、聊天机器人.yml
More file actions
457 lines (441 loc) · 11.5 KB
/
Copy path工作流-问题分类、知识库、聊天机器人.yml
File metadata and controls
457 lines (441 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
app:
description: ''
icon: face_with_monocle
icon_background: '#FFEAD5'
mode: advanced-chat
name: 工作流-问题分类、知识库、聊天机器人
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openrouter:0.0.9@ae74ca759337ea3d3a913f7bca729e65547d0e85fcb9232e22abed860e6d57e2
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:0.0.25@cb2db148209953cc5d96957eda18c57ef0aa95b8a369b5f9cfd2528597ee16de
kind: app
version: 0.3.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: 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:
sourceType: start
targetType: question-classifier
id: 1711528708197-1711528709608
source: '1711528708197'
sourceHandle: source
target: '1711528709608'
targetHandle: target
type: custom
- data:
sourceType: question-classifier
targetType: knowledge-retrieval
id: 1711528709608-1711528768556
source: '1711528709608'
sourceHandle: '1711528736036'
target: '1711528768556'
targetHandle: target
type: custom
- data:
sourceType: question-classifier
targetType: knowledge-retrieval
id: 1711528709608-1711528770201
source: '1711528709608'
sourceHandle: '1711528736549'
target: '1711528770201'
targetHandle: target
type: custom
- data:
sourceType: question-classifier
targetType: answer
id: 1711528709608-1711528775142
source: '1711528709608'
sourceHandle: '1711528737066'
target: '1711528775142'
targetHandle: target
type: custom
- data:
sourceType: knowledge-retrieval
targetType: llm
id: 1711528768556-1711528802931
source: '1711528768556'
sourceHandle: source
target: '1711528802931'
targetHandle: target
type: custom
- data:
sourceType: knowledge-retrieval
targetType: llm
id: 1711528770201-1711528815414
source: '1711528770201'
sourceHandle: source
target: '1711528815414'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: answer
id: 1711528802931-1711528833796
source: '1711528802931'
sourceHandle: source
target: '1711528833796'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: answer
id: 1711528815414-1711528835179
source: '1711528815414'
sourceHandle: source
target: '1711528835179'
targetHandle: target
type: custom
nodes:
- data:
desc: Define the initial parameters for launching a workflow
selected: false
title: Start
type: start
variables: []
height: 96
id: '1711528708197'
position:
x: 79.5
y: 714.5
positionAbsolute:
x: 79.5
y: 714.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
classes:
- id: '1711528736036'
name: Question related to after sales
- id: '1711528736549'
name: Questions about how to use products
- id: '1711528737066'
name: Other questions
desc: 'Define the classification conditions of user questions, LLM can define
how the conversation progresses based on the classification description. '
instructions: ''
model:
completion_params:
frequency_penalty: 0
max_tokens: 512
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: completion
name: qwen/qwen-2-72b-instruct
provider: langgenius/openrouter/openrouter
query_variable_selector:
- '1711528708197'
- sys.query
selected: false
title: Question Classifier
topics: []
type: question-classifier
vision:
enabled: false
height: 316
id: '1711528709608'
position:
x: 362.5
y: 714.5
positionAbsolute:
x: 362.5
y: 714.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
dataset_ids:
- QgeSTFzQkPF7Jb9/bDU2y3n0eV4ZjB3n0IaDoUuEOqFsIAVwGl1nrjK7tmQNeAXs
desc: 'Retrieve knowledge on after sales SOP. '
query_variable_selector:
- '1711528708197'
- sys.query
retrieval_mode: single
selected: false
single_retrieval_config:
model:
completion_params: {}
mode: chat
name: gpt-3.5-turbo
provider: openai
title: 'Knowledge Retrieval '
type: knowledge-retrieval
dragging: false
height: 134
id: '1711528768556'
position:
x: 645.5
y: 714.5
positionAbsolute:
x: 645.5
y: 714.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
dataset_ids:
- QgeSTFzQkPF7Jb9/bDU2y3n0eV4ZjB3n0IaDoUuEOqFsIAVwGl1nrjK7tmQNeAXs
desc: 'Retrieval knowledge about out products. '
query_variable_selector:
- '1711528708197'
- sys.query
retrieval_mode: single
selected: false
single_retrieval_config:
model:
completion_params: {}
mode: chat
name: gpt-3.5-turbo
provider: openai
title: 'Knowledge Retrieval '
type: knowledge-retrieval
dragging: false
height: 134
id: '1711528770201'
position:
x: 645.5
y: 868.6428571428572
positionAbsolute:
x: 645.5
y: 868.6428571428572
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: 'Sorry, I can''t help you with these questions. '
desc: ''
selected: false
title: Answer
type: answer
variables: []
height: 116
id: '1711528775142'
position:
x: 645.5
y: 1044.2142857142856
positionAbsolute:
x: 645.5
y: 1044.2142857142856
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: true
variable_selector:
- '1711528768556'
- result
desc: ''
memory:
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 50
model:
completion_params: {}
mode: chat
name: openai/gpt-4-32k
provider: langgenius/openrouter/openrouter
prompt_template:
- id: 7a818d9d-fc1c-4928-b4bc-83c7af07534c
role: system
text: 'Use the following context as your learned knowledge, inside <context></context>
XML tags.
<context>
{{#context#}}
</context>
When answer to user:
- If you don''t know, just say that you don''t know.
- If you don''t know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user''s question.'
selected: false
title: LLM
type: llm
variables: []
vision:
enabled: false
dragging: false
height: 88
id: '1711528802931'
position:
x: 928.5
y: 714.5
positionAbsolute:
x: 928.5
y: 714.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: true
variable_selector:
- '1711528770201'
- result
desc: ''
memory:
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 50
model:
completion_params: {}
mode: chat
name: google/gemini-flash-1.5
provider: langgenius/openrouter/openrouter
prompt_template:
- id: 9326d8d9-07fd-4f3b-89ba-193895446a1f
role: system
text: 'Use the following context as your learned knowledge, inside <context></context>
XML tags.
<context>
{{#context#}}
</context>
When answer to user:
- If you don''t know, just say that you don''t know.
- If you don''t know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user''s question.'
selected: true
title: 'LLM '
type: llm
variables: []
vision:
enabled: false
dragging: false
height: 88
id: '1711528815414'
position:
x: 928.5
y: 868.6428571428572
positionAbsolute:
x: 928.5
y: 868.6428571428572
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#1711528802931.text#}}'
desc: ''
selected: false
title: Answer 2
type: answer
variables:
- value_selector:
- '1711528802931'
- text
variable: text
dragging: false
height: 104
id: '1711528833796'
position:
x: 1211.5
y: 714.5
positionAbsolute:
x: 1211.5
y: 714.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#1711528815414.text#}}'
desc: ''
selected: false
title: Answer 3
type: answer
variables:
- value_selector:
- '1711528815414'
- text
variable: text
dragging: false
height: 104
id: '1711528835179'
position:
x: 1211.5
y: 868.6428571428572
positionAbsolute:
x: 1211.5
y: 868.6428571428572
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: -245.67051964253676
y: -361.48266160858464
zoom: 0.7