forked from microsoft/AIOpsLab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprompts.py
27 lines (18 loc) · 1.04 KB
/
prompts.py
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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
############### LLMJudge: Scorer ################
SCORE_SYSTEM = """Please act as an impartial judge and evaluate the quality of the response provided by an AI assistant towards a Service Operations task displayed below.
Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of the response.
Begin your evaluation by providing a short explanation. Be as objective as possible.
After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: "[[rating]]", for example: "Rating: [[5]]".
"""
SCORE_TASK = """<|The Start of Assistant A's Interaction with Service|>
{trace}
<|The End of Assistant A's Interaction with Service|>"
"""
SCORER_PROMPTS = {
"system": SCORE_SYSTEM,
"user": SCORE_TASK,
}
# FUTURE (TODO): Implement prompts to qualitatively evaluate deviations from task
# FUTURE (TODO): Implement prompts to write grading notes during eval