forked from YiVal/YiVal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_auto_generated_config.yaml
387 lines (337 loc) · 13.7 KB
/
default_auto_generated_config.yaml
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
custom_function: demo.complete_task.complete_task
dataset:
data_generators:
openai_prompt_data_generator:
chunk_size: 10000
diversify: false
expected_param_name: ""
input_function:
description:
This function creates a concise and engaging TikTok video title.
It uses the provided content summary and target audience to generate a title
that is relevant and appealing to the specified demographic. The function
takes into consideration the interests and preferences of the target audience
to ensure the title is attractive and encourages viewership.
name: generate_tiktok_video_title_based_on_content_and_audience
parameters:
target_audience: str
model_name: gpt-4
number_of_examples: 5
output_csv_path: generate_tiktok_video_title_based_on_content_and_audience_generated_data.csv
output_path: generate_tiktok_video_title_based_on_content_and_audience_generated_data.pkl
prompt:
"\n \"Please provide a concrete and realistic test case as a\
\ dictionary for function invocation using the ** operator.\n Only\
\ include parameters, excluding description and name.\n Ensure it's\
\ succinct and well-structured.\n **Only provide the dictionary.**\"\
\ \n "
single_shot: true
source_type: machine_generated
description:
Auto generated config for generate a short tiktok video title based on
the {{content summary}} and {{target_audience}}
enhancer:
end_meta_instruction:
Give me a new prompt that is different from all pairs above,
and has evaluation values on accuracy, appeal, keyword usage, emoji, oneline,
that are higher than any of above.
enhance_var:
- task
head_meta_instruction:
"Now you will help me generate a prompt which is used to
generate a corresponding TikTok video title based on the content summary [content
summary] and target audience [target audience]. I already have some prompt and
its evaluation results:"
max_iterations: 2
model_name: gpt-4
name: optimize_by_prompt_enhancer
evaluators:
- choice_scores:
A: 0
B: 1
C: 2
D: 3
E: 4
choices:
- A
- B
- C
- D
- E
description:
Does the title accurately reflect the content of the TikTok video?
The title should give viewers a clear idea of what to expect from the video content.
display_name: accuracy
evaluator_type: individual
metric_calculators:
- method: AVERAGE
model_name: gpt-4
name: openai_prompt_based_evaluator
prompt:
"You are assessing a submitted answer on a given task based on a criterion.
Here is the data:
This function creates a concise and engaging TikTok video title. It uses the provided
content summary and target audience to generate a title that is relevant and appealing
to the specified demographic. The function takes into consideration the interests
and preferences of the target audience to ensure the title is attractive and encourages
viewership.
Does the title accurately reflect the content of the TikTok video? The title should
give viewers a clear idea of what to expect from the video content.
[Input]: target_audience: {{target_audience}}
[Result]: {raw_output}
Answer the question by selecting one of the following options:
A It fails to meet the criterion at all.
B It somewhat meets the criterion, but there is significant room for improvement.
C It meets the criterion to a satisfactory degree.
D It meets the criterion very well.
E It meets the criterion exceptionally well, with little to no room for improvement."
scale_description: 0-4
- choice_scores:
A: 0
B: 1
C: 2
D: 3
E: 4
choices:
- A
- B
- C
- D
- E
description:
Is the title appealing and engaging to the target audience? The title
should be crafted in a way that it attracts the attention of the specified demographic
and encourages them to watch the video.
display_name: appeal
evaluator_type: individual
metric_calculators:
- method: AVERAGE
model_name: gpt-4
name: openai_prompt_based_evaluator
prompt:
"You are assessing a submitted answer on a given task based on a criterion.
Here is the data:
This function creates a concise and engaging TikTok video title. It uses the provided
content summary and target audience to generate a title that is relevant and appealing
to the specified demographic. The function takes into consideration the interests
and preferences of the target audience to ensure the title is attractive and encourages
viewership.
Is the title appealing and engaging to the target audience? The title should be
crafted in a way that it attracts the attention of the specified demographic and
encourages them to watch the video.
[Input]: target_audience: {{target_audience}}
[Result]: {raw_output}
Answer the question by selecting one of the following options:
A It fails to meet the criterion at all.
B It somewhat meets the criterion, but there is significant room for improvement.
C It meets the criterion to a satisfactory degree.
D It meets the criterion very well.
E It meets the criterion exceptionally well, with little to no room for improvement."
scale_description: 0-4
- choice_scores:
A: 0
B: 1
C: 2
D: 3
E: 4
choices:
- A
- B
- C
- D
- E
description:
Does the title incorporate trending or popular keywords relevant to
the target audience? Using trending or popular keywords can increase the visibility
of the video and attract more viewers from the target audience.
display_name: keyword usage
evaluator_type: individual
metric_calculators:
- method: AVERAGE
model_name: gpt-4
name: openai_prompt_based_evaluator
prompt:
"You are assessing a submitted answer on a given task based on a criterion.
Here is the data:
This function creates a concise and engaging TikTok video title. It uses the provided
content summary and target audience to generate a title that is relevant and appealing
to the specified demographic. The function takes into consideration the interests
and preferences of the target audience to ensure the title is attractive and encourages
viewership.
Does the title incorporate trending or popular keywords relevant to the target
audience? Using trending or popular keywords can increase the visibility of the
video and attract more viewers from the target audience.
[Input]: target_audience: {{target_audience}}
[Result]: {raw_output}
Answer the question by selecting one of the following options:
A It fails to meet the criterion at all.
B It somewhat meets the criterion, but there is significant room for improvement.
C It meets the criterion to a satisfactory degree.
D It meets the criterion very well.
E It meets the criterion exceptionally well, with little to no room for improvement."
scale_description: 0-4
- choice_scores:
A: 0
B: 1
C: 2
D: 3
E: 4
choices:
- A
- B
- C
- D
- E
description:
Does the emoji used in the title clearly represent the content summary
and target audience? It should be immediately clear to anyone who sees the emoji
what the TikTok video's content and target audience are.
display_name: emoji
evaluator_type: individual
metric_calculators:
- method: AVERAGE
model_name: gpt-4
name: openai_prompt_based_evaluator
prompt:
"You are assessing a submitted answer on a given task based on a criterion.
Here is the data:
This function creates a concise and engaging TikTok video title. It uses the provided
content summary and target audience to generate a title that is relevant and appealing
to the specified demographic. The function takes into consideration the interests
and preferences of the target audience to ensure the title is attractive and encourages
viewership.
Does the emoji used in the title clearly represent the content summary and target
audience? It should be immediately clear to anyone who sees the emoji what the
TikTok video's content and target audience are.
[Input]: target_audience: {{target_audience}}
[Result]: {raw_output}
Answer the question by selecting one of the following options:
A It fails to meet the criterion at all.
B It somewhat meets the criterion, but there is significant room for improvement.
C It meets the criterion to a satisfactory degree.
D It meets the criterion very well.
E It meets the criterion exceptionally well, with little to no room for improvement."
scale_description: 0-4
- choice_scores:
A: 0
B: 1
C: 2
D: 3
E: 4
choices:
- A
- B
- C
- D
- E
description:
Does the generated TikTok video title succinctly summarize the content
and target audience in a single line? The title should be concise, catchy, and
effectively encapsulate the essence of the content and its intended audience in
one line.
display_name: oneline
evaluator_type: individual
metric_calculators:
- method: AVERAGE
model_name: gpt-4
name: openai_prompt_based_evaluator
prompt:
"You are assessing a submitted answer on a given task based on a criterion.
Here is the data:
This function creates a concise and engaging TikTok video title. It uses the provided
content summary and target audience to generate a title that is relevant and appealing
to the specified demographic. The function takes into consideration the interests
and preferences of the target audience to ensure the title is attractive and encourages
viewership.
Does the generated TikTok video title succinctly summarize the content and target
audience in a single line? The title should be concise, catchy, and effectively
encapsulate the essence of the content and its intended audience in one line.
[Input]: target_audience: {{target_audience}}
[Result]: {raw_output}
Answer the question by selecting one of the following options:
A It fails to meet the criterion at all.
B It somewhat meets the criterion, but there is significant room for improvement.
C It meets the criterion to a satisfactory degree.
D It meets the criterion very well.
E It meets the criterion exceptionally well, with little to no room for improvement."
scale_description: 0-4
human_rating_configs:
- instructions:
Does the title accurately reflect the content of the TikTok video?
The title should give viewers a clear idea of what to expect from the video content.
name: accuracy
scale:
- 0
- 4
- instructions:
Is the title appealing and engaging to the target audience? The title
should be crafted in a way that it attracts the attention of the specified demographic
and encourages them to watch the video.
name: appeal
scale:
- 0
- 4
- instructions:
Does the title incorporate trending or popular keywords relevant to
the target audience? Using trending or popular keywords can increase the visibility
of the video and attract more viewers from the target audience.
name: keyword usage
scale:
- 0
- 4
- instructions:
Does the emoji used in the title clearly represent the content summary
and target audience? It should be immediately clear to anyone who sees the emoji
what the TikTok video's content and target audience are.
name: emoji
scale:
- 0
- 4
- instructions:
Does the generated TikTok video title succinctly summarize the content
and target audience in a single line? The title should be concise, catchy, and
effectively encapsulate the essence of the content and its intended audience in
one line.
name: oneline
scale:
- 0
- 4
selection_strategy:
ahp_selection:
criteria:
- "openai_prompt_based_evaluator: accuracy"
- "openai_prompt_based_evaluator: appeal"
- "openai_prompt_based_evaluator: keyword usage"
- "openai_prompt_based_evaluator: emoji"
- "openai_prompt_based_evaluator: oneline"
- average_token_usage
- average_latency
criteria_maximization:
average_latency: false
average_token_usage: false
"openai_prompt_based_evaluator: accuracy": true
"openai_prompt_based_evaluator: appeal": true
"openai_prompt_based_evaluator: emoji": true
"openai_prompt_based_evaluator: keyword usage": true
"openai_prompt_based_evaluator: oneline": true
criteria_weights:
average_latency: 0
average_token_usage: 0
"openai_prompt_based_evaluator: accuracy": 0.2
"openai_prompt_based_evaluator: appeal": 0.2
"openai_prompt_based_evaluator: emoji": 0.2
"openai_prompt_based_evaluator: keyword usage": 0.2
"openai_prompt_based_evaluator: oneline": 0.2
variations:
- generator_config: null
generator_name: null
name: task
variations:
- instantiated_value:
generate a short tiktok video title based on the {{content
summary}} and {{target_audience}}
value:
generate a short tiktok video title based on the {{content summary}} and
{{target_audience}}
value_type: str
variation_id: null