File size: 5,332 Bytes
c32ee7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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: ''