Skip to content

Commit 7af7ede

Browse files
author
Matteo Manica
committed
feat: prompt templates for head_qa/en.
Signed-off-by: Matteo Manica <[email protected]>
1 parent 35576d4 commit 7af7ede

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
dataset: head_qa
2+
subset: en
3+
templates:
4+
375b86a3-a869-4473-920c-c00ea789e943: !Template
5+
id: 375b86a3-a869-4473-920c-c00ea789e943
6+
jinja: 'Answer/complete the following paragraph about {{category}}:
7+
8+
9+
{{qtext}}
10+
11+
12+
Which one is the correct answer?
13+
14+
15+
{% for answer in answers %}
16+
17+
{{answer["aid"] | string}}. {{answer["atext"]}}
18+
19+
{% endfor %}
20+
21+
22+
|||
23+
24+
25+
Answer number {{ra | string}}'
26+
name: multiple_choice_q_and_a_index_with_context_en
27+
reference: Pose a multi-choice question using the index as an answer and the category
28+
as context
29+
749a5c3f-c10e-4a4a-aa35-d31698bb1104: !Template
30+
id: 749a5c3f-c10e-4a4a-aa35-d31698bb1104
31+
jinja: 'Answer/complete the following paragraph:
32+
33+
34+
{{qtext}}
35+
36+
37+
What is the correct answer?
38+
39+
- {{ answers | map(attribute="atext")| join("\n- ") }}
40+
41+
42+
|||
43+
44+
45+
{% for answer in answers if answer["aid"]==ra -%}
46+
47+
{{answer["atext"]}}
48+
49+
{%- endfor %}'
50+
name: multiple_choice_q_and_a_en
51+
reference: Pose a multi-choice question
52+
c830f4cc-128c-4644-9e19-4c99782f70bb: !Template
53+
id: c830f4cc-128c-4644-9e19-4c99782f70bb
54+
jinja: 'Answer/complete the following paragraph:
55+
56+
57+
{{qtext}}
58+
59+
60+
Which one is the correct answer?
61+
62+
63+
{% for answer in answers %}
64+
65+
{{answer["aid"] | string}}. {{answer["atext"]}}
66+
67+
{% endfor %}
68+
69+
70+
|||
71+
72+
73+
Answer number {{ra | string}}'
74+
name: multiple_choice_q_and_a_index_en
75+
reference: Pose a multi-choice question using as anwer the index
76+
df12d7e1-2168-46e0-9400-c3a7ca27b42c: !Template
77+
id: df12d7e1-2168-46e0-9400-c3a7ca27b42c
78+
jinja: 'Answer/complete the following paragraph about {{category}}:
79+
80+
81+
{{qtext}}
82+
83+
84+
What is the correct answer?
85+
86+
- {{ answers | map(attribute="atext")| join("\n- ") }}
87+
88+
89+
|||
90+
91+
92+
{% for answer in answers if answer["aid"]==ra -%}
93+
94+
{{answer["atext"]}}
95+
96+
{%- endfor %}'
97+
name: multiple_choice_q_and_a_with_context_en
98+
reference: Pose a multi-choice question using category information as context
99+
e0cb8056-22b4-4878-8164-a79cfc5d3a62: !Template
100+
id: e0cb8056-22b4-4878-8164-a79cfc5d3a62
101+
jinja: 'Given this list of statements about {{category}}: {{ answers | map(attribute="atext")
102+
| map("lower") | map("trim", ".") | join(", ") }}.
103+
104+
105+
Which one is the most appropriate answer/completion for the paragraph that follows?
106+
107+
108+
{{qtext}}
109+
110+
111+
|||
112+
113+
114+
{% for answer in answers if answer["aid"]==ra -%}
115+
116+
{{answer["atext"]}}
117+
118+
{%- endfor %}'
119+
name: multiple_choice_a_and_q_with_context_en
120+
reference: Pose a multi-choice question presenting the answers first using category
121+
as context
122+
e4f4e194-a78b-433b-ac48-dabf6244be35: !Template
123+
id: e4f4e194-a78b-433b-ac48-dabf6244be35
124+
jinja: 'Given this list of statements: {{ answers | map(attribute="atext") | map("lower")
125+
| map("trim", ".") | join(", ") }}.
126+
127+
128+
Which one is the most appropriate answer/completion for the paragraph that follows?
129+
130+
131+
{{qtext}}
132+
133+
134+
|||
135+
136+
137+
{% for answer in answers if answer["aid"]==ra -%}
138+
139+
{{answer["atext"]}}
140+
141+
{%- endfor %}'
142+
name: multiple_choice_a_and_q_en
143+
reference: Pose a multi-choice question presenting the answers first

0 commit comments

Comments
 (0)