Zekun Wu commited on
Commit
2455425
·
1 Parent(s): 8054d7f
Files changed (3) hide show
  1. app.py +37 -37
  2. example_data.json +37 -37
  3. prompts.json +5 -0
app.py CHANGED
@@ -9,38 +9,38 @@ client = AzureOpenAI(azure_endpoint = "https://personalityanalysisfinetuning.ope
9
 
10
 
11
  example_profile = {
12
- "Team": [
13
  {
14
  "name": "JAMES ARTHUR",
15
  "main_profile": {
16
  "VISION": {
17
- "score": "HIGH"
18
  },
19
  "IDEATION": {
20
- "score": "HIGH"
21
  },
22
  "OPPORTUNISM": {
23
- "score": "HIGH"
24
  },
25
  "DRIVE": {
26
- "score": "HIGH"
27
  },
28
  "RESILIENCE": {
29
- "score": "HIGH"
30
  }
31
  },
32
  "red_flag": {
33
  "HUBRIS": {
34
- "score": "HIGH"
35
  },
36
  "MERCURIAL": {
37
- "score": "LOW"
38
  },
39
  "DOMINANT": {
40
- "score": "HIGH"
41
  },
42
  "MACHIAVELLIAN": {
43
- "score": "AVERAGE"
44
  }
45
  }
46
  },
@@ -48,33 +48,33 @@ example_profile = {
48
  "name": "LOUSIE HART",
49
  "main_profile": {
50
  "VISION": {
51
- "score": "AVERAGE"
52
  },
53
  "IDEATION": {
54
- "score": "AVERAGE"
55
  },
56
  "OPPORTUNISM": {
57
- "score": "AVERAGE"
58
  },
59
  "DRIVE": {
60
- "score": "HIGH"
61
  },
62
  "RESILIENCE": {
63
- "score": "HIGH"
64
  }
65
  },
66
  "red_flag": {
67
  "HUBRIS": {
68
- "score": "AVERAGE"
69
  },
70
  "MERCURIAL": {
71
- "score": "LOW"
72
  },
73
  "DOMINANT": {
74
- "score": "HIGH"
75
  },
76
  "MACHIAVELLIAN": {
77
- "score": "LOW"
78
  }
79
  }
80
  },
@@ -82,33 +82,33 @@ example_profile = {
82
  "name": "SIMONE LEVY",
83
  "main_profile": {
84
  "VISION": {
85
- "score": "LOW"
86
  },
87
  "IDEATION": {
88
- "score": "AVERAGE"
89
  },
90
  "OPPORTUNISM": {
91
- "score": "LOW"
92
  },
93
  "DRIVE": {
94
- "score": "AVERAGE"
95
  },
96
  "RESILIENCE": {
97
- "score": "LOW"
98
  }
99
  },
100
  "red_flag": {
101
  "HUBRIS": {
102
- "score": "LOW"
103
  },
104
  "MERCURIAL": {
105
- "score": "LOW"
106
  },
107
  "DOMINANT": {
108
- "score": "LOW"
109
  },
110
  "MACHIAVELLIAN": {
111
- "score": "LOW"
112
  }
113
  }
114
  },
@@ -116,33 +116,33 @@ example_profile = {
116
  "name": "Uri Lef",
117
  "main_profile": {
118
  "VISION": {
119
- "score": "HIGH"
120
  },
121
  "IDEATION": {
122
- "score": "HIGH"
123
  },
124
  "OPPORTUNISM": {
125
- "score": "HIGH"
126
  },
127
  "DRIVE": {
128
- "score": "AVERAGE"
129
  },
130
  "RESILIENCE": {
131
- "score": "LOW"
132
  }
133
  },
134
  "red_flag": {
135
  "HUBRIS": {
136
- "score": "AVERAGE"
137
  },
138
  "MERCURIAL": {
139
- "score": "HIGH"
140
  },
141
  "DOMINANT": {
142
- "score": "HIGH"
143
  },
144
  "MACHIAVELLIAN": {
145
- "score": "AVERAGE"
146
  }
147
  }
148
  }
 
9
 
10
 
11
  example_profile = {
12
+ "Team": [
13
  {
14
  "name": "JAMES ARTHUR",
15
  "main_profile": {
16
  "VISION": {
17
+ "score": 76
18
  },
19
  "IDEATION": {
20
+ "score": 73
21
  },
22
  "OPPORTUNISM": {
23
+ "score": 78
24
  },
25
  "DRIVE": {
26
+ "score": 80
27
  },
28
  "RESILIENCE": {
29
+ "score": 75
30
  }
31
  },
32
  "red_flag": {
33
  "HUBRIS": {
34
+ "score": 80
35
  },
36
  "MERCURIAL": {
37
+ "score": 28
38
  },
39
  "DOMINANT": {
40
+ "score": 70
41
  },
42
  "MACHIAVELLIAN": {
43
+ "score": 50
44
  }
45
  }
46
  },
 
48
  "name": "LOUSIE HART",
49
  "main_profile": {
50
  "VISION": {
51
+ "score": 55
52
  },
53
  "IDEATION": {
54
+ "score": 60
55
  },
56
  "OPPORTUNISM": {
57
+ "score": 65
58
  },
59
  "DRIVE": {
60
+ "score": 70
61
  },
62
  "RESILIENCE": {
63
+ "score": 72
64
  }
65
  },
66
  "red_flag": {
67
  "HUBRIS": {
68
+ "score": 55
69
  },
70
  "MERCURIAL": {
71
+ "score": 25
72
  },
73
  "DOMINANT": {
74
+ "score": 67
75
  },
76
  "MACHIAVELLIAN": {
77
+ "score": 30
78
  }
79
  }
80
  },
 
82
  "name": "SIMONE LEVY",
83
  "main_profile": {
84
  "VISION": {
85
+ "score": 30
86
  },
87
  "IDEATION": {
88
+ "score": 45
89
  },
90
  "OPPORTUNISM": {
91
+ "score": 20
92
  },
93
  "DRIVE": {
94
+ "score": 50
95
  },
96
  "RESILIENCE": {
97
+ "score": 32
98
  }
99
  },
100
  "red_flag": {
101
  "HUBRIS": {
102
+ "score": 20
103
  },
104
  "MERCURIAL": {
105
+ "score": 15
106
  },
107
  "DOMINANT": {
108
+ "score": 18
109
  },
110
  "MACHIAVELLIAN": {
111
+ "score": 25
112
  }
113
  }
114
  },
 
116
  "name": "Uri Lef",
117
  "main_profile": {
118
  "VISION": {
119
+ "score": 70
120
  },
121
  "IDEATION": {
122
+ "score": 68
123
  },
124
  "OPPORTUNISM": {
125
+ "score": 73
126
  },
127
  "DRIVE": {
128
+ "score": 65
129
  },
130
  "RESILIENCE": {
131
+ "score": 30
132
  }
133
  },
134
  "red_flag": {
135
  "HUBRIS": {
136
+ "score": 55
137
  },
138
  "MERCURIAL": {
139
+ "score": 72
140
  },
141
  "DOMINANT": {
142
+ "score": 68
143
  },
144
  "MACHIAVELLIAN": {
145
+ "score": 50
146
  }
147
  }
148
  }
example_data.json CHANGED
@@ -1,36 +1,36 @@
1
  {
2
- "Team": [
3
  {
4
  "name": "JAMES ARTHUR",
5
  "main_profile": {
6
  "VISION": {
7
- "score": "HIGH"
8
  },
9
  "IDEATION": {
10
- "score": "HIGH"
11
  },
12
  "OPPORTUNISM": {
13
- "score": "HIGH"
14
  },
15
  "DRIVE": {
16
- "score": "HIGH"
17
  },
18
  "RESILIENCE": {
19
- "score": "HIGH"
20
  }
21
  },
22
  "red_flag": {
23
  "HUBRIS": {
24
- "score": "HIGH"
25
  },
26
  "MERCURIAL": {
27
- "score": "LOW"
28
  },
29
  "DOMINANT": {
30
- "score": "HIGH"
31
  },
32
  "MACHIAVELLIAN": {
33
- "score": "AVERAGE"
34
  }
35
  }
36
  },
@@ -38,33 +38,33 @@
38
  "name": "LOUSIE HART",
39
  "main_profile": {
40
  "VISION": {
41
- "score": "AVERAGE"
42
  },
43
  "IDEATION": {
44
- "score": "AVERAGE"
45
  },
46
  "OPPORTUNISM": {
47
- "score": "AVERAGE"
48
  },
49
  "DRIVE": {
50
- "score": "HIGH"
51
  },
52
  "RESILIENCE": {
53
- "score": "HIGH"
54
  }
55
  },
56
  "red_flag": {
57
  "HUBRIS": {
58
- "score": "AVERAGE"
59
  },
60
  "MERCURIAL": {
61
- "score": "LOW"
62
  },
63
  "DOMINANT": {
64
- "score": "HIGH"
65
  },
66
  "MACHIAVELLIAN": {
67
- "score": "LOW"
68
  }
69
  }
70
  },
@@ -72,33 +72,33 @@
72
  "name": "SIMONE LEVY",
73
  "main_profile": {
74
  "VISION": {
75
- "score": "LOW"
76
  },
77
  "IDEATION": {
78
- "score": "AVERAGE"
79
  },
80
  "OPPORTUNISM": {
81
- "score": "LOW"
82
  },
83
  "DRIVE": {
84
- "score": "AVERAGE"
85
  },
86
  "RESILIENCE": {
87
- "score": "LOW"
88
  }
89
  },
90
  "red_flag": {
91
  "HUBRIS": {
92
- "score": "LOW"
93
  },
94
  "MERCURIAL": {
95
- "score": "LOW"
96
  },
97
  "DOMINANT": {
98
- "score": "LOW"
99
  },
100
  "MACHIAVELLIAN": {
101
- "score": "LOW"
102
  }
103
  }
104
  },
@@ -106,33 +106,33 @@
106
  "name": "Uri Lef",
107
  "main_profile": {
108
  "VISION": {
109
- "score": "HIGH"
110
  },
111
  "IDEATION": {
112
- "score": "HIGH"
113
  },
114
  "OPPORTUNISM": {
115
- "score": "HIGH"
116
  },
117
  "DRIVE": {
118
- "score": "AVERAGE"
119
  },
120
  "RESILIENCE": {
121
- "score": "LOW"
122
  }
123
  },
124
  "red_flag": {
125
  "HUBRIS": {
126
- "score": "AVERAGE"
127
  },
128
  "MERCURIAL": {
129
- "score": "HIGH"
130
  },
131
  "DOMINANT": {
132
- "score": "HIGH"
133
  },
134
  "MACHIAVELLIAN": {
135
- "score": "AVERAGE"
136
  }
137
  }
138
  }
 
1
  {
2
+ "Team": [
3
  {
4
  "name": "JAMES ARTHUR",
5
  "main_profile": {
6
  "VISION": {
7
+ "score": 76
8
  },
9
  "IDEATION": {
10
+ "score": 73
11
  },
12
  "OPPORTUNISM": {
13
+ "score": 78
14
  },
15
  "DRIVE": {
16
+ "score": 80
17
  },
18
  "RESILIENCE": {
19
+ "score": 75
20
  }
21
  },
22
  "red_flag": {
23
  "HUBRIS": {
24
+ "score": 80
25
  },
26
  "MERCURIAL": {
27
+ "score": 28
28
  },
29
  "DOMINANT": {
30
+ "score": 70
31
  },
32
  "MACHIAVELLIAN": {
33
+ "score": 50
34
  }
35
  }
36
  },
 
38
  "name": "LOUSIE HART",
39
  "main_profile": {
40
  "VISION": {
41
+ "score": 55
42
  },
43
  "IDEATION": {
44
+ "score": 60
45
  },
46
  "OPPORTUNISM": {
47
+ "score": 65
48
  },
49
  "DRIVE": {
50
+ "score": 70
51
  },
52
  "RESILIENCE": {
53
+ "score": 72
54
  }
55
  },
56
  "red_flag": {
57
  "HUBRIS": {
58
+ "score": 55
59
  },
60
  "MERCURIAL": {
61
+ "score": 25
62
  },
63
  "DOMINANT": {
64
+ "score": 67
65
  },
66
  "MACHIAVELLIAN": {
67
+ "score": 30
68
  }
69
  }
70
  },
 
72
  "name": "SIMONE LEVY",
73
  "main_profile": {
74
  "VISION": {
75
+ "score": 30
76
  },
77
  "IDEATION": {
78
+ "score": 45
79
  },
80
  "OPPORTUNISM": {
81
+ "score": 20
82
  },
83
  "DRIVE": {
84
+ "score": 50
85
  },
86
  "RESILIENCE": {
87
+ "score": 32
88
  }
89
  },
90
  "red_flag": {
91
  "HUBRIS": {
92
+ "score": 20
93
  },
94
  "MERCURIAL": {
95
+ "score": 15
96
  },
97
  "DOMINANT": {
98
+ "score": 18
99
  },
100
  "MACHIAVELLIAN": {
101
+ "score": 25
102
  }
103
  }
104
  },
 
106
  "name": "Uri Lef",
107
  "main_profile": {
108
  "VISION": {
109
+ "score": 70
110
  },
111
  "IDEATION": {
112
+ "score": 68
113
  },
114
  "OPPORTUNISM": {
115
+ "score": 73
116
  },
117
  "DRIVE": {
118
+ "score": 65
119
  },
120
  "RESILIENCE": {
121
+ "score": 30
122
  }
123
  },
124
  "red_flag": {
125
  "HUBRIS": {
126
+ "score": 55
127
  },
128
  "MERCURIAL": {
129
+ "score": 72
130
  },
131
  "DOMINANT": {
132
+ "score": 68
133
  },
134
  "MACHIAVELLIAN": {
135
+ "score": 50
136
  }
137
  }
138
  }
prompts.json CHANGED
@@ -37,6 +37,11 @@
37
  "MERCURIAL: Given to sudden changes of mood, behaviour or direction, Given to unconventional or strange behaviour or beliefs, Difficult to predict and/or surprising.",
38
  "DOMINANT: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
39
  "MACHIAVELLIAN: Deliberate deceitfulness in the pursuit on one’s interest; acting in bad faith, Ruthless pursuit of own interests regardless of considerations of right or wrong, General distrust of the motives of others; attribution of bad faith.",
 
 
 
 
 
40
  "### Team Members ###",
41
  "{{TEAM_MEMBERS}}",
42
  "### Questions ###",
 
37
  "MERCURIAL: Given to sudden changes of mood, behaviour or direction, Given to unconventional or strange behaviour or beliefs, Difficult to predict and/or surprising.",
38
  "DOMINANT: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
39
  "MACHIAVELLIAN: Deliberate deceitfulness in the pursuit on one’s interest; acting in bad faith, Ruthless pursuit of own interests regardless of considerations of right or wrong, General distrust of the motives of others; attribution of bad faith.",
40
+ "#### Scoring Levels ####",
41
+ "Scores are categorized as follows:",
42
+ "- Low: 0-33",
43
+ "- Average: 34-66",
44
+ "- High: 67-100",
45
  "### Team Members ###",
46
  "{{TEAM_MEMBERS}}",
47
  "### Questions ###",