-
-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy pathdify-sample-webllama.yml
More file actions
339 lines (335 loc) · 7.95 KB
/
Copy pathdify-sample-webllama.yml
File metadata and controls
339 lines (335 loc) · 7.95 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
app:
description: ''
icon: "\U0001F578\uFE0F"
icon_background: '#EFF1F5'
mode: advanced-chat
name: Web Llama
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: question-classifier
id: 1722987216488-source-1722987270683-target
source: '1722987216488'
sourceHandle: source
target: '1722987270683'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: question-classifier
targetType: tool
id: 1722987270683-1-1722987349026-target
source: '1722987270683'
sourceHandle: '1'
target: '1722987349026'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: variable-aggregator
id: 1722987349026-source-1722987538804-target
source: '1722987349026'
sourceHandle: source
target: '1722987538804'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: variable-aggregator
targetType: llm
id: 1722987538804-source-llm-target
source: '1722987538804'
sourceHandle: source
target: llm
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: question-classifier
targetType: template-transform
id: 1722987270683-2-1722987867779-target
source: '1722987270683'
sourceHandle: '2'
target: '1722987867779'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: template-transform
targetType: variable-aggregator
id: 1722987867779-source-1722987538804-target
source: '1722987867779'
sourceHandle: source
target: '1722987538804'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables: []
height: 53
id: '1722987216488'
position:
x: 30
y: 323.5
positionAbsolute:
x: 30
y: 323.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
memory:
role_prefix:
assistant: ''
user: ''
window:
enabled: false
size: 10
model:
completion_params:
temperature: 0.7
mode: chat
name: llama3.1:8b-instruct-q6_K
provider: ollama
prompt_config:
jinja2_variables:
- value_selector:
- '1722987349026'
- text
variable: text
- value_selector:
- '1722987538804'
- output
variable: output
prompt_template:
- edition_type: basic
id: 359790fc-caa0-439d-9f87-59981b1de8de
jinja2_text: "{% if text is defined %}\n {{{ text }}}\n{% else %}\n \
\ variable is not defined\n{% endif %}"
role: system
text: 'Answer the user question.
Additional data (might be empty):
{{#1722987538804.output#}}'
- id: 03560397-f691-45e2-bfea-50310cadb9e4
role: user
text: '
{{#sys.query#}}'
selected: false
title: LLM
type: llm
variables: []
vision:
enabled: false
height: 97
id: llm
position:
x: 1242
y: 323.5
positionAbsolute:
x: 1242
y: 323.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
answer: '{{#llm.text#}}'
desc: ''
selected: false
title: Answer
type: answer
variables: []
height: 107
id: answer
position:
x: 1545
y: 323.5
positionAbsolute:
x: 1545
y: 323.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
classes:
- id: '1'
name: Question requires a web search to be answered. User might be asking
about some products, for example.
- id: '2'
name: Question does not require a web search. It's about some general concepts.
desc: ''
instructions: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: llama3.1:8b-instruct-q6_K
provider: ollama
query_variable_selector:
- '1722987216488'
- sys.query
selected: false
title: Question Classifier
topics: []
type: question-classifier
height: 247
id: '1722987270683'
position:
x: 333
y: 323.5
positionAbsolute:
x: 333
y: 323.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
provider_id: e84bbbcd-13a9-49e6-89ad-55c60c667be7
provider_name: Advanced Web RAG
provider_type: workflow
selected: false
title: Advanced Web RAG
tool_configurations: {}
tool_label: Advanced Web RAG
tool_name: advancedWebSearch
tool_parameters:
Question:
type: mixed
value: '{{#sys.query#}}'
type: tool
height: 53
id: '1722987349026'
position:
x: 636
y: 323.5
positionAbsolute:
x: 636
y: 323.5
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
advanced_settings:
group_enabled: false
groups:
- groupId: d7f9eb4e-3817-4226-bebe-15ed85b7d39d
group_name: Group1
output_type: string
variables:
- - '1722987349026'
- text
- - '1722987270683'
- class_name
desc: ''
output_type: string
selected: false
title: Variable Aggregator
type: variable-aggregator
variables:
- - '1722987349026'
- text
- - '1722987867779'
- output
height: 137
id: '1722987538804'
position:
x: 939
y: 323.5
positionAbsolute:
x: 939
y: 323.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
selected: false
template: '-'
title: Nothing
type: template-transform
variables:
- value_selector:
- '1722987270683'
- class_name
variable: arg1
height: 53
id: '1722987867779'
position:
x: 636
y: 416.5
positionAbsolute:
x: 636
y: 416.5
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: 13
y: -122
zoom: 0.7