Skip to content

Commit 917e700

Browse files
committed
fix test - unrecognized variable
1 parent 07f4b1b commit 917e700

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

promptsource/templates/multi_news/templates.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ templates:
33
12269bd1-1c3a-4865-9702-892782b593d9: !Template
44
answer_choices: null
55
id: 12269bd1-1c3a-4865-9702-892782b593d9
6-
jinja: '{% if document != "" %}
7-
8-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
6+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
97
"") | list %}
108
9+
{% if document != "" %}
10+
1111
What are the key points across these news articles:
1212
1313
{% for doc in docs %}
@@ -33,11 +33,11 @@ templates:
3333
940d0ce4-c1ef-4453-a47b-1abaaf811160: !Template
3434
answer_choices: null
3535
id: 940d0ce4-c1ef-4453-a47b-1abaaf811160
36-
jinja: '{% if document != "" %}
37-
38-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
36+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
3937
"") | list %}
4038
39+
{% if document != "" %}
40+
4141
Synthesize these documents into a single one:
4242
4343
{% for doc in docs %}
@@ -63,11 +63,11 @@ templates:
6363
9ab370ad-2b89-4d2a-bb40-ccc31accefad: !Template
6464
answer_choices: null
6565
id: 9ab370ad-2b89-4d2a-bb40-ccc31accefad
66-
jinja: '{% if document != "" %}
67-
68-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
66+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
6967
"") | list %}
7068
69+
{% if document != "" %}
70+
7171
I want to edit the following articles into a more concise summary:
7272
7373
{% for doc in docs %}
@@ -93,11 +93,11 @@ templates:
9393
b15485f5-2bd9-4ed4-98ce-4b241a341f99: !Template
9494
answer_choices: null
9595
id: b15485f5-2bd9-4ed4-98ce-4b241a341f99
96-
jinja: '{% if document != "" %}
97-
98-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
96+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
9997
"") | list %}
10098
99+
{% if document != "" %}
100+
101101
Write a summary of the following articles:
102102
103103
{% for doc in docs %}
@@ -123,11 +123,11 @@ templates:
123123
bc910e51-c0a9-473c-aa85-adcab21b9ba9: !Template
124124
answer_choices: null
125125
id: bc910e51-c0a9-473c-aa85-adcab21b9ba9
126-
jinja: '{% if document != "" %}
127-
128-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
126+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
129127
"") | list%}
130128
129+
{% if document != "" %}
130+
131131
Write an expanded news article with plausible details from the following summary:
132132
133133
{{summary[2:]}}
@@ -148,11 +148,11 @@ templates:
148148
d5a4bb2a-634a-4e9a-9f1f-b0803894ca0f: !Template
149149
answer_choices: null
150150
id: d5a4bb2a-634a-4e9a-9f1f-b0803894ca0f
151-
jinja: '{% if document != "" %}
152-
153-
{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
151+
jinja: '{% set docs = document.split("3ed2dface8203c4c9dfb1a5dc58e41e0||") | reject("equalto",
154152
"") | list %}
155153
154+
{% if document != "" %}
155+
156156
I''m trying to distill these articles down into one:
157157
158158
{% for doc in docs %}

0 commit comments

Comments
 (0)