-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstructions.json
375 lines (374 loc) · 10.6 KB
/
instructions.json
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
[
{
"rule": "keywords:existence",
"instruction": "Include keywords \"{keywords}\" in your response",
"kwargs": {
"keywords": [
["revolution", "garlic"],
["aluminium", "minority"],
["secure", "divide"],
["assembly", "balance", "settlement"],
["flower", "velvet", "treatment"],
["shout", "drive", "lunch"]
]
}
},
[
{
"rule": "keywords:frequency",
"instruction": "In your response, the word \"{keyword}\" should appear {relation} {frequency} times.",
"kwargs": {
"relation": ["less than"],
"keyword": [
"and",
"that",
"or",
"but",
"if",
"then",
"the",
"is",
"are",
"was",
"were",
"have",
"has"
],
"frequency": [1, 2]
}
},
{
"rule": "keywords:frequency",
"instruction": "In your response, the word \"{keyword}\" should appear {relation} {frequency} times.",
"kwargs": {
"relation": ["at least"],
"keyword": [
"symbol",
"uncertainty",
"exploit",
"rich",
"ignorance",
"hostile",
"frame",
"lean",
"unity",
"sniff",
"bowel",
"golf",
"deposit"
],
"frequency": [3, 4, 5, 6, 7]
}
}
],
{
"rule": "keywords:forbidden_words",
"instruction": "In your response, refrain from using the following words: \"{forbidden_words}\"",
"kwargs": {
"forbidden_words": [
["a", "an", "the", "and", "or", "but", "if", "then"],
[
"is",
"are",
"was",
"were",
"have",
"has",
"of",
"in",
"on",
"at",
"to",
"from",
"by"
],
[
"with",
"without",
"over",
"under",
"between",
"among",
"through",
"during",
"before",
"after",
"since",
"until",
"while",
"as",
"than",
"for",
"so",
"because",
"although",
"though",
"if"
],
[
"unless",
"while",
"when",
"where",
"how",
"why",
"what",
"which",
"that",
"this",
"these",
"those",
"some",
"any",
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine",
"ten"
]
]
}
},
{
"rule": "keywords:letter_frequency",
"instruction": "In your response, the letter \"{letter}\" should appear {let_relation}, {let_frequency} times.",
"kwargs": {
"let_relation": "at least",
"letter": [
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z"
],
"let_frequency": [30, 40, 50, 60]
}
},
[
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Korean, no other language is allowed.",
"kwargs": { "language": ["ko"] },
"singe": true
},
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Swahili, no other language is allowed.",
"kwargs": { "language": ["sw"] },
"singe": true
},
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Hindi, no other language is allowed.",
"kwargs": { "language": ["hi"] },
"singe": true
},
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Bulgarian, no other language is allowed.",
"kwargs": { "language": ["bg"] },
"singe": true
},
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Kannada, no other language is allowed.",
"kwargs": { "language": ["kn"] },
"singe": true
},
{
"rule": "language:response_language",
"instruction": "Your ENTIRE response should be in Marathi, no other language is allowed.",
"kwargs": { "language": ["mr"] },
"singe": true
}
],
{
"rule": "length_constraints:number_paragraphs",
"instruction": "Your response should be {num_paragraphs} paragraphs long, separated with the markdown divider: ***.",
"kwargs": { "num_paragraphs": [1, 2, 3, 4, 5, 6] },
"exclude": [
"length_constraints:nth_paragraph_first_word",
"detectable_format:json_format",
"detectable_format:multiple_sections",
"detectable_format:number_highlighted_sections",
"detectable_format:number_bullet_lists"
]
},
{
"rule": "length_constraints:number_words",
"instruction": "Answer with {relation} {num_words} words.",
"kwargs": {
"relation": ["less than", "at least"],
"num_words": [50, 100, 150, 200, 250, 300]
}
},
{
"rule": "length_constraints:number_sentences",
"instruction": "Answer with {relation} {num_sentences} sentences.",
"kwargs": {
"relation": ["less than", "at least"],
"num_sentences": [5, 10, 15, 20, 25]
}
},
{
"rule": "length_constraints:nth_paragraph_first_word",
"instruction": "There should be {num_paragraphs} paragraphs. Paragraphs and only paragraphs are separated with each other by two line breaks. The paragraph number {nth_paragraph} must start with word \"{first_word}\".",
"kwargs": {
"first_word": [
"assume",
"imagine",
"arrogant",
"ordinary",
"adviser",
"depressed"
],
"num_paragraphs": [4, 5, 6, 7, 8],
"nth_paragraph": [1, 2, 3, 4]
},
"exclude": [
"length_constraints:number_paragraphs",
"detectable_format:json_format",
"detectable_format:multiple_sections",
"detectable_format:number_highlighted_sections",
"detectable_format:number_bullet_lists"
]
},
{
"rule": "detectable_content:postscript",
"instruction": "At the end of your response, please explicitly add a postscript starting with {postscript_marker}",
"kwargs": { "postscript_marker": ["P.P.S", "P.S."] }
},
{
"rule": "detectable_content:number_placeholders",
"instruction": "The response must contain at least {num_placeholders} placeholders represented by square brackets, such as [address].",
"kwargs": { "num_placeholders": [1, 3, 5, 7, 9, 11, 13, 15] }
},
{
"rule": "detectable_format:number_bullet_lists",
"instruction": "Your answer must contain exactly {num_bullets} bullet points. Use the markdown bullet points such as: * This is a point.",
"kwargs": { "num_bullets": [1, 3, 5, 7, 9, 11, 13, 15] },
"exclude": [
"length_constraints:number_paragraphs",
"length_constraints:nth_paragraph_first_word",
"detectable_format:json_format",
"detectable_format:multiple_sections",
"detectable_format:number_highlighted_sections"
]
},
{
"rule": "detectable_format:title",
"instruction": "Your answer must contain a title, wrapped in double angular brackets, such as <<poem of joy>>.",
"kwargs": {}
},
{
"rule": "detectable_format:constrained_response",
"instruction": "Your answer must contain exactly one of the following phrases:\nMy answer is yes.\nMy answer is no.\nMy answer is maybe.",
"kwargs": {},
"singe": true
},
{
"rule": "detectable_format:number_highlighted_sections",
"instruction": "Highlight at least {num_highlights} sections in your answer with markdown, i.e. *highlighted section*",
"kwargs": { "num_highlights": [1, 3, 5, 7, 9, 11, 13, 15] }
},
{
"rule": "detectable_format:multiple_sections",
"instruction": "Your response must have {num_sections} sections. Mark the beginning of each section with {section_spliter} X.",
"kwargs": {
"section_spliter": ["PARAGRAPH", "SECTION", "Paragraph", "Section"],
"num_sections": [2, 3, 4, 5, 6]
}
},
{
"rule": "detectable_format:json_format",
"instruction": "Entire output should be wrapped in JSON format.",
"kwargs": {}
},
{
"rule": "combination:repeat_prompt",
"instruction": "First, repeat the request without change, then give your answer (do not say anything before repeating the request; the request you need to repeat does not include this sentence)",
"kwargs": {},
"singe": true
},
{
"rule": "combination:two_responses",
"instruction": "Give two different responses. Responses and only responses should be separated by 6 asterisk symbols: ******.",
"kwargs": {}
},
{
"rule": "change_case:english_capital",
"instruction": "Your entire response should be in English, capital letters only.",
"kwargs": {},
"exclude": ["change_case:english_lowercase"]
},
{
"rule": "change_case:english_lowercase",
"instruction": "Your entire response should be in English, and in all lowercase letters. No capital letters are allowed.",
"kwargs": {},
"exclude": ["change_case:english_capital"]
},
{
"rule": "change_case:capital_word_frequency",
"instruction": "In your response, words with all capital letters should appear {capital_relation} {capital_frequency} times.",
"kwargs": {
"capital_relation": ["at least", "less than"],
"capital_frequency": [1, 3, 5, 7, 9, 11, 13, 15, 20, 25]
}
},
{
"rule": "startend:end_checker",
"instruction": "Finish your response with this exact phrase {end_phrase}. No other words should follow this phrase.",
"kwargs": {
"end_phrase": [
"Hope you agree with me.",
"Peace!",
"Is there anything else I can help with?",
"your love, and thanks.",
"Let me know if you have additional questions.",
"That is all you need!",
"Does this make sense?",
"I hope you find this helpful.",
"Thank you for your time.",
"My pleasure.",
"It was my pleasure.",
"I'm glad I could help!"
]
}
},
{
"rule": "startend:quotation",
"instruction": "Wrap your entire response with double quotation marks.",
"kwargs": {}
},
{
"rule": "punctuation:no_comma",
"instruction": "In your entire response, refrain from the use of any commas.",
"kwargs": {}
}
]