Zekun Wu
commited on
Commit
·
2455425
1
Parent(s):
8054d7f
add
Browse files- app.py +37 -37
- example_data.json +37 -37
- 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":
|
18 |
},
|
19 |
"IDEATION": {
|
20 |
-
"score":
|
21 |
},
|
22 |
"OPPORTUNISM": {
|
23 |
-
"score":
|
24 |
},
|
25 |
"DRIVE": {
|
26 |
-
"score":
|
27 |
},
|
28 |
"RESILIENCE": {
|
29 |
-
"score":
|
30 |
}
|
31 |
},
|
32 |
"red_flag": {
|
33 |
"HUBRIS": {
|
34 |
-
"score":
|
35 |
},
|
36 |
"MERCURIAL": {
|
37 |
-
"score":
|
38 |
},
|
39 |
"DOMINANT": {
|
40 |
-
"score":
|
41 |
},
|
42 |
"MACHIAVELLIAN": {
|
43 |
-
"score":
|
44 |
}
|
45 |
}
|
46 |
},
|
@@ -48,33 +48,33 @@ example_profile = {
|
|
48 |
"name": "LOUSIE HART",
|
49 |
"main_profile": {
|
50 |
"VISION": {
|
51 |
-
"score":
|
52 |
},
|
53 |
"IDEATION": {
|
54 |
-
"score":
|
55 |
},
|
56 |
"OPPORTUNISM": {
|
57 |
-
"score":
|
58 |
},
|
59 |
"DRIVE": {
|
60 |
-
"score":
|
61 |
},
|
62 |
"RESILIENCE": {
|
63 |
-
"score":
|
64 |
}
|
65 |
},
|
66 |
"red_flag": {
|
67 |
"HUBRIS": {
|
68 |
-
"score":
|
69 |
},
|
70 |
"MERCURIAL": {
|
71 |
-
"score":
|
72 |
},
|
73 |
"DOMINANT": {
|
74 |
-
"score":
|
75 |
},
|
76 |
"MACHIAVELLIAN": {
|
77 |
-
"score":
|
78 |
}
|
79 |
}
|
80 |
},
|
@@ -82,33 +82,33 @@ example_profile = {
|
|
82 |
"name": "SIMONE LEVY",
|
83 |
"main_profile": {
|
84 |
"VISION": {
|
85 |
-
"score":
|
86 |
},
|
87 |
"IDEATION": {
|
88 |
-
"score":
|
89 |
},
|
90 |
"OPPORTUNISM": {
|
91 |
-
"score":
|
92 |
},
|
93 |
"DRIVE": {
|
94 |
-
"score":
|
95 |
},
|
96 |
"RESILIENCE": {
|
97 |
-
"score":
|
98 |
}
|
99 |
},
|
100 |
"red_flag": {
|
101 |
"HUBRIS": {
|
102 |
-
"score":
|
103 |
},
|
104 |
"MERCURIAL": {
|
105 |
-
"score":
|
106 |
},
|
107 |
"DOMINANT": {
|
108 |
-
"score":
|
109 |
},
|
110 |
"MACHIAVELLIAN": {
|
111 |
-
"score":
|
112 |
}
|
113 |
}
|
114 |
},
|
@@ -116,33 +116,33 @@ example_profile = {
|
|
116 |
"name": "Uri Lef",
|
117 |
"main_profile": {
|
118 |
"VISION": {
|
119 |
-
"score":
|
120 |
},
|
121 |
"IDEATION": {
|
122 |
-
"score":
|
123 |
},
|
124 |
"OPPORTUNISM": {
|
125 |
-
"score":
|
126 |
},
|
127 |
"DRIVE": {
|
128 |
-
"score":
|
129 |
},
|
130 |
"RESILIENCE": {
|
131 |
-
"score":
|
132 |
}
|
133 |
},
|
134 |
"red_flag": {
|
135 |
"HUBRIS": {
|
136 |
-
"score":
|
137 |
},
|
138 |
"MERCURIAL": {
|
139 |
-
"score":
|
140 |
},
|
141 |
"DOMINANT": {
|
142 |
-
"score":
|
143 |
},
|
144 |
"MACHIAVELLIAN": {
|
145 |
-
"score":
|
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":
|
8 |
},
|
9 |
"IDEATION": {
|
10 |
-
"score":
|
11 |
},
|
12 |
"OPPORTUNISM": {
|
13 |
-
"score":
|
14 |
},
|
15 |
"DRIVE": {
|
16 |
-
"score":
|
17 |
},
|
18 |
"RESILIENCE": {
|
19 |
-
"score":
|
20 |
}
|
21 |
},
|
22 |
"red_flag": {
|
23 |
"HUBRIS": {
|
24 |
-
"score":
|
25 |
},
|
26 |
"MERCURIAL": {
|
27 |
-
"score":
|
28 |
},
|
29 |
"DOMINANT": {
|
30 |
-
"score":
|
31 |
},
|
32 |
"MACHIAVELLIAN": {
|
33 |
-
"score":
|
34 |
}
|
35 |
}
|
36 |
},
|
@@ -38,33 +38,33 @@
|
|
38 |
"name": "LOUSIE HART",
|
39 |
"main_profile": {
|
40 |
"VISION": {
|
41 |
-
"score":
|
42 |
},
|
43 |
"IDEATION": {
|
44 |
-
"score":
|
45 |
},
|
46 |
"OPPORTUNISM": {
|
47 |
-
"score":
|
48 |
},
|
49 |
"DRIVE": {
|
50 |
-
"score":
|
51 |
},
|
52 |
"RESILIENCE": {
|
53 |
-
"score":
|
54 |
}
|
55 |
},
|
56 |
"red_flag": {
|
57 |
"HUBRIS": {
|
58 |
-
"score":
|
59 |
},
|
60 |
"MERCURIAL": {
|
61 |
-
"score":
|
62 |
},
|
63 |
"DOMINANT": {
|
64 |
-
"score":
|
65 |
},
|
66 |
"MACHIAVELLIAN": {
|
67 |
-
"score":
|
68 |
}
|
69 |
}
|
70 |
},
|
@@ -72,33 +72,33 @@
|
|
72 |
"name": "SIMONE LEVY",
|
73 |
"main_profile": {
|
74 |
"VISION": {
|
75 |
-
"score":
|
76 |
},
|
77 |
"IDEATION": {
|
78 |
-
"score":
|
79 |
},
|
80 |
"OPPORTUNISM": {
|
81 |
-
"score":
|
82 |
},
|
83 |
"DRIVE": {
|
84 |
-
"score":
|
85 |
},
|
86 |
"RESILIENCE": {
|
87 |
-
"score":
|
88 |
}
|
89 |
},
|
90 |
"red_flag": {
|
91 |
"HUBRIS": {
|
92 |
-
"score":
|
93 |
},
|
94 |
"MERCURIAL": {
|
95 |
-
"score":
|
96 |
},
|
97 |
"DOMINANT": {
|
98 |
-
"score":
|
99 |
},
|
100 |
"MACHIAVELLIAN": {
|
101 |
-
"score":
|
102 |
}
|
103 |
}
|
104 |
},
|
@@ -106,33 +106,33 @@
|
|
106 |
"name": "Uri Lef",
|
107 |
"main_profile": {
|
108 |
"VISION": {
|
109 |
-
"score":
|
110 |
},
|
111 |
"IDEATION": {
|
112 |
-
"score":
|
113 |
},
|
114 |
"OPPORTUNISM": {
|
115 |
-
"score":
|
116 |
},
|
117 |
"DRIVE": {
|
118 |
-
"score":
|
119 |
},
|
120 |
"RESILIENCE": {
|
121 |
-
"score":
|
122 |
}
|
123 |
},
|
124 |
"red_flag": {
|
125 |
"HUBRIS": {
|
126 |
-
"score":
|
127 |
},
|
128 |
"MERCURIAL": {
|
129 |
-
"score":
|
130 |
},
|
131 |
"DOMINANT": {
|
132 |
-
"score":
|
133 |
},
|
134 |
"MACHIAVELLIAN": {
|
135 |
-
"score":
|
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 ###",
|