Spaces:
Runtime error
Runtime error
feat: Split prompts in modules
Browse files- src/prompts.py +72 -0
src/prompts.py
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
VISION_SYSTEM_PROMPT = """<Principle>
|
2 |
+
You will evaluate the behavior of the person in the sequences of images.
|
3 |
+
They show discrete parts of the whole continuous behavior.
|
4 |
+
You should only evaluate the parts you can rate based on the given images.
|
5 |
+
Remember, you're evaluating the given parts to evaluate the whole continuous behavior, and you'll connect them later to evaluate the whole.
|
6 |
+
Never add your own judgment. Evaluate only in the contents of images themselves.
|
7 |
+
|
8 |
+
<Evaluate Format>
|
9 |
+
rubric_1: (original sentence of rubric)
|
10 |
+
score: Good / Fair / Poor / (Undetermined) - evaluate by 3 steps
|
11 |
+
reason: (Explain why did you rated it that way)
|
12 |
+
|
13 |
+
rubric_2: (original sentence of rubric)
|
14 |
+
..."""
|
15 |
+
|
16 |
+
|
17 |
+
AUDIO_SYSTEM_PROMPT = """<Principle>
|
18 |
+
You will evaluate the behavior of the person in the text.
|
19 |
+
You should only evaluate based on the given text.
|
20 |
+
Never add your own judgment. Evaluate only in the contents of text themselves.
|
21 |
+
|
22 |
+
<Evaluate Format>
|
23 |
+
rubric_1: (original sentence of rubric)
|
24 |
+
score: Good / Fair / Poor / (Undetermined) - evaluate by 3 steps
|
25 |
+
reason: (Explain why did you rated it that way)
|
26 |
+
|
27 |
+
rubric_2: (original sentence of rubric)
|
28 |
+
..."""
|
29 |
+
|
30 |
+
|
31 |
+
USER_PROMPT_TEMPLATE = """Evaluate the behavior's actions based on the <RUBRIC> provided
|
32 |
+
|
33 |
+
<RUBRIC>
|
34 |
+
{rubrics}"""
|
35 |
+
|
36 |
+
|
37 |
+
FINAL_EVALUATION_PROMPT = """
|
38 |
+
You see the following list of texts that evaluate forward roll:
|
39 |
+
{evals}
|
40 |
+
Write an full text that synthesizes and summarizes the contents of all the text above.
|
41 |
+
Each evaluates a specific part, and you should combine them based on what was evaluated in each part.
|
42 |
+
The way to combine them is 'OR', not 'AND', which means you only need to evaluate the parts by choosing best one not to average the whole thing.
|
43 |
+
Concatenate based on what was evaluated, if anything.
|
44 |
+
|
45 |
+
Example:
|
46 |
+
<Video Evaluation>
|
47 |
+
|
48 |
+
**RUBRIC_1: (original sentence of rubric)**
|
49 |
+
SCORE: Good / Fair / Poor / (Undetermined) - evaluate by 3 steps
|
50 |
+
REASON: (Explain why did you rated it that way)
|
51 |
+
|
52 |
+
**RUBRIC_2: (original sentence of rubric)**
|
53 |
+
....
|
54 |
+
-----END of Video-----
|
55 |
+
|
56 |
+
<Audio Evaluation>
|
57 |
+
|
58 |
+
**RUBRIC_1: (original sentence of rubric)**
|
59 |
+
SCORE: Good / Fair / Poor / (Undetermined) - evaluate by 3 steps
|
60 |
+
REASON: (Explain why did you rated it that way)
|
61 |
+
|
62 |
+
**RUBRIC_2: (original sentence of rubric)**
|
63 |
+
....
|
64 |
+
-----END of Audio-----
|
65 |
+
|
66 |
+
**Overall opinion**
|
67 |
+
|
68 |
+
**Total score** : 1~10 / 10
|
69 |
+
(Explain how that above 'Total score' was calculated)
|
70 |
+
|
71 |
+
Output:
|
72 |
+
"""
|