forked from YiVal/YiVal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault_auto_generated_config.yaml
More file actions
269 lines (237 loc) · 10.6 KB
/
default_auto_generated_config.yaml
File metadata and controls
269 lines (237 loc) · 10.6 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
custom_function: demo.complete_task.complete_task
dataset:
data_generators:
openai_prompt_data_generator:
chunk_size: 10000
diversify: true
expected_param_name: ''
fixed_input:
task: tiktok headline generation
input_function:
description: The function generates a catchy and engaging headline for a TikTok
video that is tailored to attract the target audience. It analyzes the preferences
and interests of the target audience to craft a headline that is most likely
to pique their interest and encourage them to view the video. This involves
understanding trending topics, popular keywords, and the overall sentiment
of the target audience. The function could leverage machine learning or
AI algorithms to better predict headlines that will resonate with the target
audience, ultimately aiming to increase the visibility and reach of the
TikTok video.
name: generate_engaging_tiktok_headline
parameters:
target_audience: str
content_summary: str
model_name: gpt-4
number_of_examples: 5
output_csv_path: generate_engaging_tiktok_headline_generated_data.csv
output_path: generate_engaging_tiktok_headline_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 "
source_type: machine_generated
description: Auto generated config for tiktok headline generation
enhancer:
end_meta_instruction: Give me a new prompt that is different from all pairs above,
and has evaluation values on accuracy, relevance, engagement, that are higher
than any of above.
enhance_var:
- task
head_meta_instruction: "Given a TikTok video context and target audience, generate\
\ a corresponding TikTok video headline\n\nParameters:\n tiktok_video_context\
\ : str\n target_audience : str\n\n==>\nNow you will help me generate a prompt\
\ which is used to generate a corresponding TikTok video headline according to\
\ the tiktok_video_context [tiktok_video_context] and its target audience [target_audience].\
\ I already have some prompt and its evaluation results :"
max_iterations: 3
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 headline accurately reflect the content of the TikTok video?
The headline should not mislead the audience about the video's content, but rather
provide an accurate and enticing preview of what viewers can expect.
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:
The function generates a catchy and engaging headline for a TikTok video that
is tailored to attract the target audience. It analyzes the preferences and interests
of the target audience to craft a headline that is most likely to pique their
interest and encourage them to view the video. This involves understanding trending
topics, popular keywords, and the overall sentiment of the target audience. The
function could leverage machine learning or AI algorithms to better predict headlines
that will resonate with the target audience, ultimately aiming to increase the
visibility and reach of the TikTok video.
Does the headline accurately reflect the content of the TikTok video? The headline
should not mislead the audience about the video''s content, but rather provide
an accurate and enticing preview of what viewers can expect.
[Input]: target_audioence: {{target_audioence}}
[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 headline incorporate trending topics, popular keywords, or
sentiments that are relevant to the target audience? The headline should demonstrate
an understanding of the target audience's interests and preferences, and leverage
these insights to attract viewers.
display_name: relevance
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:
The function generates a catchy and engaging headline for a TikTok video that
is tailored to attract the target audience. It analyzes the preferences and interests
of the target audience to craft a headline that is most likely to pique their
interest and encourage them to view the video. This involves understanding trending
topics, popular keywords, and the overall sentiment of the target audience. The
function could leverage machine learning or AI algorithms to better predict headlines
that will resonate with the target audience, ultimately aiming to increase the
visibility and reach of the TikTok video.
Does the headline incorporate trending topics, popular keywords, or sentiments
that are relevant to the target audience? The headline should demonstrate an understanding
of the target audience''s interests and preferences, and leverage these insights
to attract viewers.
[Input]: target_audioence: {{target_audioence}}
[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 headline catchy and engaging? The headline should be crafted
in a way that grabs the attention of the target audience and encourages them to
watch the video. This could involve the use of humor, intrigue, or other tactics
to pique interest.
display_name: engagement
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:
The function generates a catchy and engaging headline for a TikTok video that
is tailored to attract the target audience. It analyzes the preferences and interests
of the target audience to craft a headline that is most likely to pique their
interest and encourage them to view the video. This involves understanding trending
topics, popular keywords, and the overall sentiment of the target audience. The
function could leverage machine learning or AI algorithms to better predict headlines
that will resonate with the target audience, ultimately aiming to increase the
visibility and reach of the TikTok video.
Is the headline catchy and engaging? The headline should be crafted in a way that
grabs the attention of the target audience and encourages them to watch the video.
This could involve the use of humor, intrigue, or other tactics to pique interest.
[Input]: target_audioence: {{target_audioence}}
[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 headline accurately reflect the content of the TikTok video?
The headline should not mislead the audience about the video's content, but rather
provide an accurate and enticing preview of what viewers can expect.
name: accuracy
scale:
- 0
- 4
- instructions: Does the headline incorporate trending topics, popular keywords, or
sentiments that are relevant to the target audience? The headline should demonstrate
an understanding of the target audience's interests and preferences, and leverage
these insights to attract viewers.
name: relevance
scale:
- 0
- 4
- instructions: Is the headline catchy and engaging? The headline should be crafted
in a way that grabs the attention of the target audience and encourages them to
watch the video. This could involve the use of humor, intrigue, or other tactics
to pique interest.
name: engagement
scale:
- 0
- 4
selection_strategy:
ahp_selection:
criteria:
- 'openai_prompt_based_evaluator: accuracy'
- 'openai_prompt_based_evaluator: relevance'
- 'openai_prompt_based_evaluator: engagement'
- average_token_usage
- average_latency
criteria_maximization:
average_latency: false
average_token_usage: false
'openai_prompt_based_evaluator: accuracy': true
'openai_prompt_based_evaluator: engagement': true
'openai_prompt_based_evaluator: relevance': true
criteria_weights:
average_latency: 0
average_token_usage: 0
'openai_prompt_based_evaluator: accuracy': 0.3333333333333333
'openai_prompt_based_evaluator: engagement': 0.3333333333333333
'openai_prompt_based_evaluator: relevance': 0.3333333333333333
variations:
- generator_config: null
generator_name: null
name: task
variations:
- instantiated_value: 'tiktok headline generation based on the following info
target_audioence: {target_audioence}'
value: 'tiktok headline generation based on the following info
target_audioence: {target_audioence}'
value_type: str
variation_id: null