Text Generation
Transformers
Safetensors
English
phi3
lm-judge
evaluation
nlp
conversational
custom_code
text-generation-inference
bergr7f commited on
Commit
b7a47ac
·
verified ·
1 Parent(s): 0e427c1

Add formatted prompt example for inference API

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md CHANGED
@@ -23,6 +23,70 @@ metrics:
23
  - kendall-tau
24
  base_model:
25
  - microsoft/Phi-3.5-mini-instruct
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ---
27
 
28
  <p align="center">
 
23
  - kendall-tau
24
  base_model:
25
  - microsoft/Phi-3.5-mini-instruct
26
+ widget:
27
+ - messages:
28
+ - role: user
29
+ content: |
30
+ # GOAL
31
+ Your job is to evaluate a task carried out by an AI system powered by a large language model.
32
+ You will be provided with the inputs and output of the task, as well as the evaluation criteria and scoring rubric. Your task is to evaluate the output of the AI system based on the evaluation criteria and scoring rubric provided.
33
+ # INPUT/s
34
+ Below are the inputs required for performing the task:
35
+ <inputs>
36
+ <customer_query>
37
+ Subject: Issues with recent order #12345
38
+ Hello,
39
+ I recently received my order #12345, but I'm having a few problems:
40
+ 1. The blue t-shirt I ordered is actually green. Can I exchange it?
41
+ 2. The phone case doesn't fit my iPhone 13 Pro Max. The website said it was compatible.
42
+ 3. I was charged for express shipping, but it took over a week to arrive. Can I get a refund on the shipping cost?
43
+ Please let me know how we can resolve these issues. I've been a loyal customer for years and this is the first time I've had problems like this.
44
+ Thank you,
45
+ Jane Smith
46
+ </customer_query>
47
+ </inputs>
48
+
49
+ # OUTPUT
50
+ Below is the output of the task:
51
+ <output>
52
+ Dear Jane Smith,
53
+ Thank you for reaching out about the issues with your recent order #12345. We sincerely apologize for the inconvenience you've experienced. Let me address each of your concerns:
54
+ 1. T-shirt color discrepancy: We're sorry about the mix-up with the t-shirt color. We'd be happy to exchange it for the correct blue t-shirt. I'll send you a prepaid return label for the green shirt, and we'll ship out the blue one as soon as we receive the return.
55
+ 2. Phone case compatibility: We apologize for the confusion regarding the phone case compatibility. Our website information should have been more accurate. We'll gladly accept a return of the incompatible case and issue a full refund for it. Additionally, I can recommend a case that will fit your iPhone 13 Pro Max if you're interested.
56
+ 3. Shipping charge: You're absolutely right about the shipping charge. Since the delivery didn't meet our express shipping standards, we will refund the entire shipping cost to your original payment method. This refund should process within 3-5 business days.
57
+ To initiate these resolutions, please reply to this email confirming that you'd like to proceed with the t-shirt exchange and phone case return. Once confirmed, I'll send you the necessary return labels and process the shipping refund immediately.
58
+ We truly value your loyalty as a long-time customer and sincerely regret that you've encountered these issues. Rest assured, we're taking steps to prevent similar problems in the future. As a gesture of goodwill, we'd like to offer you a 20% discount on your next order.
59
+ If you have any further questions or concerns, please don't hesitate to reach out. We're here to ensure your complete satisfaction.
60
+ Best regards,
61
+ Alex Johnson
62
+ Customer Service Representative
63
+ </output>
64
+
65
+ # EVALUATION CRITERIA AND SCORING RUBRIC
66
+ Here are the evaluation criteria and the rubric that you need to use for evaluating the task:
67
+ <evaluation_criteria>
68
+ How well the response addresses the specific issues raised in the customer's query?
69
+ </evaluation_criteria>
70
+ <scoring_rubric>
71
+ - Score 1: The response completely fails to address the customer's needs and ignores the specific issues raised.
72
+ - Score 2: The response barely addresses the customer's query and misses most of the specific issues raised.
73
+ - Score 3: The response partially addresses the customer's query, touching on some of the specific issues but leaving others unaddressed.
74
+ - Score 4: The response adequately addresses most aspects of the customer's query and the specific issues raised.
75
+ - Score 5: The response fully and comprehensively addresses all aspects of the customer's query and all specific issues raised in a highly satisfactory manner.
76
+ </scoring_rubric>
77
+
78
+ # INSTRUCTIONS FOR THE EVALUATION
79
+ 1. Understand the task and criteria: Familiarize yourself with the task to be evaluated. Review the evaluation criteria and scoring rubric to understand the different levels of performance and the descriptions for each score.
80
+ 2. Review the inputs and output: Look at the inputs provided for the task. Examine the output generated from completing the task.
81
+ 3. Compare output to score descriptions: Compare the output against the criteria and score descriptions in the scoring rubric. For each criterion,decide which description best matches the output.
82
+ 4. After comparing the output to the score descriptions, pay attention to the small details that might impact the final score that you assign. Sometimes a small difference can dictate the final score.
83
+ 5. Write verbal feedback justifying your evaluation that includes a detailed rationale, referring to specific aspects of the output and comparing them to the rubric.
84
+ 6. Assign a final score based on the scoring rubric.
85
+
86
+ ## FORMAT FOR THE EVALUATION
87
+ - Write the verbal feedback inside <feedback> tags without any additional surrounding text.
88
+ - Write the numeric score inside <score> tags, without any additional surrounding text and always after the feedback.
89
+ Please accurately evaluate the task. Strictly adhere to the evaluation criteria and rubric.
90
  ---
91
 
92
  <p align="center">