File size: 2,366 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
dataset: app_reviews
templates:
  2da8f134-58db-4f9d-b3b0-8c6b50693ab5: !Template
    answer_choices: Not at all ||| No ||| Maybe ||| Yes ||| Definitely
    id: 2da8f134-58db-4f9d-b3b0-8c6b50693ab5
    jinja: 'Given this review: "{{review}}"

      Would you recommend this app to a friend? {{answer_choices[0]}}, {{answer_choices[1]}},
      {{answer_choices[2]}}, {{answer_choices[3]}}, or {{answer_choices[4]}}?

      |||

      {{answer_choices[star-1]}}'
    metadata: !TemplateMetadata
      choices_in_prompt: true
      metrics:
      - Accuracy
      - Spearman Correlation
      original_task: false
    name: categorize_rating_using_review
    reference: Given the review, return a categorical answer.
  8086b434-a75e-45a4-87fb-4364601e2e05: !Template
    answer_choices: null
    id: 8086b434-a75e-45a4-87fb-4364601e2e05
    jinja: 'Generate a {{star}}-star review (1 being lowest and 5 being highest) about
      an app with package {{package_name}}.

      |||

      {{review}}'
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: null
    name: generate_review
    reference: Generate a review from the rating.
  9746ce4b-ac58-4dfb-9783-d77c95cb62cf: !Template
    answer_choices: "\u2605 ||| \u2605\u2605 ||| \u2605\u2605\u2605 ||| \u2605\u2605\
      \u2605\u2605 ||| \u2605\u2605\u2605\u2605\u2605"
    id: 9746ce4b-ac58-4dfb-9783-d77c95cb62cf
    jinja: "What would be the \u2605-rating of this review (\u2605 being the lowest\
      \ and \u2605\u2605\u2605\u2605\u2605 being the highest)? \"{{review}}\"\n|||\n\
      {{answer_choices[star-1]}}"
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Accuracy
      - Spearman Correlation
      original_task: false
    name: convert_to_star_rating
    reference: Given the review, generate a star rating.
  d34e1413-2699-4701-baa2-05d931d012ba: !Template
    answer_choices: null
    id: d34e1413-2699-4701-baa2-05d931d012ba
    jinja: 'On a scale of 1-5 (with 1 being least favorable and 5 being most favorable),
      how would you rate this review? "{{review}}"

      |||

      {{star}}'
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Accuracy
      - Spearman Correlation
      original_task: false
    name: convert_to_rating
    reference: Convert review to rating