Skip to content

Commit 45ba5dc

Browse files
authored
Add prompts for Squad (#695)
* Update templates.yaml * Update templates.yaml
1 parent 34d712a commit 45ba5dc

File tree

1 file changed

+62
-181
lines changed

1 file changed

+62
-181
lines changed
Lines changed: 62 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -1,220 +1,101 @@
11
dataset: squad
22
templates:
3-
264f9165-0eed-4855-8825-6508443c64b9: !Template
3+
3d85b5b0-51db-4d72-8ead-d0b3654025ee: !Template
44
answer_choices: null
5-
id: 264f9165-0eed-4855-8825-6508443c64b9
6-
jinja: 'I know that the answer to "{{question}}" appears somewhere in the following
7-
text snippet. Can you tell me at which character the answer starts?
5+
id: 3d85b5b0-51db-4d72-8ead-d0b3654025ee
6+
jinja: 'Refer to the passage below and answer the following question:
87
98
10-
{{context}}
9+
Passage: {{context}}
1110
1211
13-
|||
14-
15-
16-
{{answers["answer_start"][0]}}'
17-
metadata: !TemplateMetadata
18-
choices_in_prompt: null
19-
metrics: []
20-
original_task: null
21-
name: find
22-
reference: ''
23-
35a1e619-8515-4fee-aeb0-04f2fb7ec584: !Template
24-
answer_choices: null
25-
id: 35a1e619-8515-4fee-aeb0-04f2fb7ec584
26-
jinja: 'At what character does the text "{{answers["text"][0]}}" start in the
27-
following paragraph?
28-
29-
30-
{{context}}
31-
32-
33-
|||
34-
35-
36-
{{answers["answer_start"][0]}}'
37-
metadata: !TemplateMetadata
38-
choices_in_prompt: null
39-
metrics: []
40-
original_task: null
41-
name: find text
42-
reference: ''
43-
3c9c3a3c-da8c-42aa-a605-3063122c32eb: !Template
44-
answer_choices: null
45-
id: 3c9c3a3c-da8c-42aa-a605-3063122c32eb
46-
jinja: '{{question}}
47-
48-
49-
|||
50-
51-
52-
{{answers["text"][0]}}'
53-
metadata: !TemplateMetadata
54-
choices_in_prompt: null
55-
metrics: []
56-
original_task: null
57-
name: cbqa
58-
reference: ''
59-
46908111-143b-4ec2-9326-7959739569d8: !Template
60-
answer_choices: null
61-
id: 46908111-143b-4ec2-9326-7959739569d8
62-
jinja: 'I''m creating a final exam for my reading class. Can you please come up
63-
with a good question to quiz how well students have read the following text
64-
snippet?
65-
66-
67-
{{context}}
68-
69-
70-
|||
71-
72-
73-
{{question}}'
74-
metadata: !TemplateMetadata
75-
choices_in_prompt: null
76-
metrics: []
77-
original_task: null
78-
name: exam creation help
79-
reference: ''
80-
5c908ab4-3f07-4f7a-90c2-b3624a96f3e0: !Template
81-
answer_choices: null
82-
id: 5c908ab4-3f07-4f7a-90c2-b3624a96f3e0
83-
jinja: 'I''m working on the final exam for my class and am trying to figure out
84-
the answer to the question "{{question}}" I found the following info on Wikipedia
85-
and I think it has the answer. Can you tell me the answer?
86-
87-
88-
{{context}}
89-
12+
Question: {{question}}
9013
9114
|||
9215
93-
9416
{{answers["text"][0]}}'
9517
metadata: !TemplateMetadata
96-
choices_in_prompt: null
97-
metrics: []
98-
original_task: null
99-
name: exam
18+
choices_in_prompt: false
19+
metrics:
20+
- Squad
21+
original_task: true
22+
name: answer_question_given_context
10023
reference: ''
101-
7f09d6a1-f4b8-4303-bd76-5e570f2178c1: !Template
24+
5a3c2d11-9469-46f6-88c2-f7e159a9742b: !Template
10225
answer_choices: null
103-
id: 7f09d6a1-f4b8-4303-bd76-5e570f2178c1
104-
jinja: 'Count the characters up until "{{answers["text"][0]}}" appears in the
105-
following chunk of text.
106-
26+
id: 5a3c2d11-9469-46f6-88c2-f7e159a9742b
27+
jinja: '{{context}}
10728
108-
{{context}}
10929
110-
111-
|||
30+
Q: {{question}}
11231
11332
114-
{{answers["answer_start"][0]}}'
33+
A: ||| {{answers["text"][0]}}'
11534
metadata: !TemplateMetadata
116-
choices_in_prompt: null
117-
metrics: []
118-
original_task: null
119-
name: count letters
35+
choices_in_prompt: false
36+
metrics:
37+
- Squad
38+
original_task: true
39+
name: given_context_answer_question_variation
12040
reference: ''
121-
ad3b868c-5242-4c98-988e-bbe2709ebe6d: !Template
41+
64ed14d6-c835-424d-a55d-ded1b1bd2546: !Template
12242
answer_choices: null
123-
id: ad3b868c-5242-4c98-988e-bbe2709ebe6d
124-
jinja: "Q: {{question}}\n\nA: \n|||\n{{answers[\"text\"][0]}}"
125-
metadata: !TemplateMetadata
126-
choices_in_prompt: null
127-
metrics: []
128-
original_task: null
129-
name: cbqa qa
130-
reference: ''
131-
c64ac353-f065-4691-b20c-444fb2bb87bf: !Template
132-
answer_choices: null
133-
id: c64ac353-f065-4691-b20c-444fb2bb87bf
134-
jinja: '{{["Question", "Problem"] | choice}} {{range(1, 12) | choice}}: {{question}}
135-
136-
137-
Hint: {{context}}
43+
id: 64ed14d6-c835-424d-a55d-ded1b1bd2546
44+
jinja: '{{context}}
13845
13946
140-
|||
141-
142-
143-
{{answers["text"][0]}}'
47+
Generate a question from the above passage : ||| {{question}}'
14448
metadata: !TemplateMetadata
145-
choices_in_prompt: null
146-
metrics: []
147-
original_task: null
148-
name: question/hint
49+
choices_in_prompt: false
50+
metrics:
51+
- BLEU
52+
- ROUGE
53+
original_task: false
54+
name: given_context_generate_question
14955
reference: ''
150-
d74d53b5-a3b9-42ae-8753-9dff3fba1c69: !Template
56+
69041854-6e48-4902-92c2-adb46457bea3: !Template
15157
answer_choices: null
152-
id: d74d53b5-a3b9-42ae-8753-9dff3fba1c69
153-
jinja: 'After reading the following paragraph, please answer this question: {{question}}
154-
155-
156-
{{context}}
157-
158-
159-
|||
58+
id: 69041854-6e48-4902-92c2-adb46457bea3
59+
jinja: '{{context}}
16060
16161
162-
{{answers["text"][0]}}'
163-
metadata: !TemplateMetadata
164-
choices_in_prompt: null
165-
metrics: []
166-
original_task: null
167-
name: after
168-
reference: ''
169-
e575a717-37a5-40c2-a255-af104f485c31: !Template
170-
answer_choices: null
171-
id: e575a717-37a5-40c2-a255-af104f485c31
172-
jinja: 'Please come up with a good question to test reading comprehension about
173-
the following paragraph:
174-
175-
176-
{{context}}
177-
178-
179-
|||
180-
181-
182-
{{question}}'
62+
From the above passage, a reasonable question with "{{answers["text"][0]}}"
63+
as the answer would be: ||| {{question}}'
18364
metadata: !TemplateMetadata
184-
choices_in_prompt: null
185-
metrics: []
186-
original_task: null
187-
name: generate question
188-
reference: ''
189-
f3d502bf-d44e-4edf-a27e-d469ba5afbd4: !Template
65+
choices_in_prompt: false
66+
metrics:
67+
- BLEU
68+
- ROUGE
69+
original_task: false
70+
name: jeopardy
71+
reference: jeopardy style- wiki_qa
72+
7c13b5ba-abfc-4b68-9a36-5430a0b0e580: !Template
19073
answer_choices: null
191-
id: f3d502bf-d44e-4edf-a27e-d469ba5afbd4
192-
jinja: "Question: {{question}}\n\nAnswer: \n|||\n{{answers[\"text\"][0]}}"
74+
id: 7c13b5ba-abfc-4b68-9a36-5430a0b0e580
75+
jinja: "{{context}}\n\nWith reference to the above context, {{question}} ||| \n\
76+
\n{{answers.text[0]}}"
19377
metadata: !TemplateMetadata
194-
choices_in_prompt: null
195-
metrics: []
196-
original_task: null
197-
name: cbqa question answer
78+
choices_in_prompt: false
79+
metrics:
80+
- Squad
81+
original_task: true
82+
name: answer_the_question
19883
reference: ''
199-
ff80522d-1a10-44c5-998a-d3c9840c4ef8: !Template
84+
e153c4cd-6757-487a-8fe6-da7e88ec3e47: !Template
20085
answer_choices: null
201-
id: ff80522d-1a10-44c5-998a-d3c9840c4ef8
202-
jinja: 'I''ve always wondered: {{question}}
203-
204-
205-
I searched Wikipedia and this is what I found. What''s the answer?
86+
id: e153c4cd-6757-487a-8fe6-da7e88ec3e47
87+
jinja: '{{context}}
20688
20789
208-
{{context}}
90+
Q: {{question}}
20991
21092
211-
|||
212-
213-
214-
{{answers["text"][0]}}'
93+
Referring to the passage above, the correct answer to the given question is
94+
||| {{answers["text"][0]}}'
21595
metadata: !TemplateMetadata
216-
choices_in_prompt: null
217-
metrics: []
218-
original_task: null
219-
name: wondered
96+
choices_in_prompt: false
97+
metrics:
98+
- Squad
99+
original_task: true
100+
name: answer_given_context_and_question
220101
reference: ''

0 commit comments

Comments
 (0)