PromptSource / templates /conv_ai /templates.yaml
mrm8488's picture
Fix routes
ab13cee
dataset: conv_ai
templates:
1664cdd9-54e8-4679-821b-8013e9df197e: !Template
answer_choices: null
id: 1664cdd9-54e8-4679-821b-8013e9df197e
jinja: '{% if 0 < (thread | selectattr("userId", "equalto", "Alice") | list |
length) %} {{context}}
{% for utterance in thread %}
- {{ utterance["userId"] }}: {{ utterance["text"] }}
{% endfor %}
Alice''s utterances in the previous conversation show that she was not interested
in the context, yes or no?
|||
{% for eval in evaluation %}
{% if "Alice" == eval["userId"] %}
{% if 3 > eval["engagement"] %}yes{% else %}no{% endif %}
{% endif %}
{% endfor %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_alice_1
reference: ''
2d3ca9f5-60f0-459d-932f-ab30e1e79b22: !Template
answer_choices: null
id: 2d3ca9f5-60f0-459d-932f-ab30e1e79b22
jinja: '{% if 0 < (thread | selectattr("userId", "equalto", "Bob") | list | length)
%} "{{context}}"
Would you say Bob engagement is real, given the previous context, in this conversation:
{% for utterance in thread %}
- {{ utterance["userId"] }}: {{ utterance["text"] }}
{% endfor %}
|||
{% for eval in evaluation %}
{% if "Bob" == eval["userId"] %}
{% if 3 < eval["engagement"] %}yes{% else %}no{% endif %}
{% endif %}
{% endfor %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_bob_1
reference: ''
4390549a-3bdf-43ad-9e69-6bc380f33f01: !Template
answer_choices: null
id: 4390549a-3bdf-43ad-9e69-6bc380f33f01
jinja: '{% set alice = (evaluation|selectattr("userId", "equalto", "Alice")|first)["engagement"]
%} {% set bob = (evaluation|selectattr("userId", "equalto", "Bob")|first)["engagement"]
%} {% if (0 < (thread | selectattr("userId", "equalto", "Bob") | list | length))
and (0 < (thread | selectattr("userId", "equalto", "Alice") | list | length))
%} {{context}}
Given the previous context, who do you think is more engaged in this conversation
(Alice, Bob, or both):
{% for utterance in thread %}
- {{ utterance["userId"] }}: {{ utterance["text"] }}
{% endfor %}
|||
{% if alice == bob %}both{% elif alice < bob %}Bob{% else %}Alice{% endif %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_0
reference: ''
955dd9f5-0fe5-46c3-a217-995bd876f26f: !Template
answer_choices: null
id: 955dd9f5-0fe5-46c3-a217-995bd876f26f
jinja: '{% if 0 < (thread | selectattr("userId", "equalto", "Bob") | list | length)
%}{{context}}
Given the preceding context, would you say Bob''s engagement is real, from his
utterances in a conversation:
{% for utterance in thread %}
{% if "Bob" == utterance["userId"] %}
- "{{ utterance["text"] }}",
{% endif %}{% endfor %}
|||
{% for eval in evaluation %}
{% if "Bob" == eval["userId"] %}
{% if 3 < eval["engagement"] %}yes{% else %}no{% endif %}
{% endif %}
{% endfor %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_bob_0
reference: ''
c0840f89-e444-49ab-bab0-08f71ec89093: !Template
answer_choices: null
id: c0840f89-e444-49ab-bab0-08f71ec89093
jinja: '{% if 0 < (thread | selectattr("userId", "equalto", "Alice") | list |
length) %} context:
{{context}}
conversation:
{% for utterance in thread %}
- {{ utterance["userId"] }}: {{ utterance["text"] }}
{% endfor %}
Was Alice really into this conversation?|||
{% for eval in evaluation %}
{% if "Alice" == eval["userId"] %}
{% if 3 < eval["engagement"] %}yes{% else %}no{% endif %}
{% endif %}
{% endfor %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_alice_0
reference: ''
db94d56f-3fc8-4b6a-b3d3-2ac37e8110ff: !Template
answer_choices: null
id: db94d56f-3fc8-4b6a-b3d3-2ac37e8110ff
jinja: '{% set alice = (evaluation|selectattr("userId", "equalto", "Alice")|first)["engagement"]
%} {% set bob = (evaluation|selectattr("userId", "equalto", "Bob")|first)["engagement"]
%} {% if (0 < (thread | selectattr("userId", "equalto", "Bob") | list | length))
and (0 < (thread | selectattr("userId", "equalto", "Alice") | list | length))
%} {{context}}
Who would you say is more engaged here: Alice or Bob (or both are), given the
previous context?
{% for utterance in thread %}
{{ utterance["userId"] }}: {{ utterance["text"] }}
{% endfor %}
|||
{% if alice == bob %}both{% elif alice < bob %}Bob{% else %}Alice{% endif %}
{% endif %}'
metadata: !TemplateMetadata
choices_in_prompt: null
metrics: []
original_task: false
name: engagement_1
reference: ''