Zekun Wu commited on
Commit
fb1b6a0
1 Parent(s): d4e272e
Files changed (3) hide show
  1. app.py +4 -2
  2. example_data_definition_3.json +101 -0
  3. prompts.json +55 -17
app.py CHANGED
@@ -280,7 +280,7 @@ def sidebar_components():
280
  st.markdown("2. Both keys should have dictionary values.")
281
 
282
  st.markdown("### Choose the Definition:")
283
- st.session_state['definition'] = st.selectbox("Select Definition", [1, 2])
284
  st.session_state['chat_context'] = st.selectbox("Select Chat Context", ["analysis", "profile"])
285
 
286
  # File uploader
@@ -303,8 +303,10 @@ def sidebar_components():
303
  if st.button('Use Example Profile'):
304
  if st.session_state['definition'] == 1:
305
  file_name = "example_data_definition_1.json"
306
- else:
307
  file_name = "example_data_definition_2.json"
 
 
308
 
309
  with open(file_name, 'r') as file:
310
  st.session_state['profile'] = json.load(file)
 
280
  st.markdown("2. Both keys should have dictionary values.")
281
 
282
  st.markdown("### Choose the Definition:")
283
+ st.session_state['definition'] = st.selectbox("Select Definition", [1, 2,3])
284
  st.session_state['chat_context'] = st.selectbox("Select Chat Context", ["analysis", "profile"])
285
 
286
  # File uploader
 
303
  if st.button('Use Example Profile'):
304
  if st.session_state['definition'] == 1:
305
  file_name = "example_data_definition_1.json"
306
+ elif st.session_state['definition'] == 2:
307
  file_name = "example_data_definition_2.json"
308
+ else:
309
+ file_name = "example_data_definition_3.json"
310
 
311
  with open(file_name, 'r') as file:
312
  st.session_state['profile'] = json.load(file)
example_data_definition_3.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "main_profile": {
3
+ "VISION": {
4
+ "score": "AVERAGE",
5
+ "summary": "Sees the ‘big picture’ and maintains line of sight"
6
+ },
7
+ "INTEGRITY": {
8
+ "score": "LOW",
9
+ "summary": "Genuine, honest and straightforward. Authentic"
10
+ },
11
+ "AUTHORITY": {
12
+ "score": "HIGH",
13
+ "summary": "Takes charge of situations; controls and directs"
14
+ },
15
+ "INFLUENCE": {
16
+ "score": "HIGH",
17
+ "summary": "Affects how others think and feel without control or direction"
18
+ },
19
+ "IDEATION": {
20
+ "score": "AVERAGE",
21
+ "summary": "Generates original and/or innovative ideas; makes unexpected connections"
22
+ },
23
+ "OPPORTUNISM": {
24
+ "score": "HIGH",
25
+ "summary": "Alert to opportunity; prepared to seize opportunities"
26
+ },
27
+ "CONFIDENCE": {
28
+ "score": "HIGH",
29
+ "summary": "Self-belief/confidence across different domains"
30
+ },
31
+ "PROACTIVITY": {
32
+ "score": "HIGH",
33
+ "summary": "Strong desire to accomplish goals. Propensity to act decisively and get things done."
34
+ },
35
+ "DISCIPLINE": {
36
+ "score": "HIGH",
37
+ "summary": "Planned rather than spontaneous behaviour. Attention to detail and accuracy. Organises and plans to achieve goals"
38
+ },
39
+ "AGILITY": {
40
+ "score": "AVERAGE",
41
+ "summary": "Switches easily between different cognitive processes. Comfortable with ill-defined problems and situations. Adaptable and constructive."
42
+ },
43
+ "RESILIENCE": {
44
+ "score": "HIGH",
45
+ "summary": "Remains calm and optimistic under pressure. Perseveres in the face of adversity. Recovers from setbacks."
46
+ }
47
+ },
48
+ "red_flag": {
49
+ "PROUD": {
50
+ "score": "LOW",
51
+ "summary": "Conceit and self-importance. Overestimation of knowledge and/or ability in respect of tasks. Misplaced belief in unique or exceptional abilities"
52
+ },
53
+ "UNPREDICTABLE": {
54
+ "score": "LOW",
55
+ "summary": "Given to sudden changes of mood, behaviour or direction. Given to unconventional or strange behaviour or beliefs. Difficult to predict and/or surprising."
56
+ },
57
+ "FORCEFUL": {
58
+ "score": "LOW",
59
+ "summary": "Forceful, insistent, domineering. Hostile and argumentative. Unyielding in the face of evidence or argument."
60
+ },
61
+ "CALCULATING": {
62
+ "score": "LOW",
63
+ "summary": "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."
64
+ }
65
+ },
66
+ "motivation": {
67
+ "Purpose": {
68
+ "score": "Low",
69
+ "summary": "The sense of meaningfulness and direction in one\"s work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision."
70
+ },
71
+ "Mastery": {
72
+ "score": "High",
73
+ "summary": "The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice."
74
+ },
75
+ "Ownership": {
76
+ "score": "High",
77
+ "summary": "The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions."
78
+ },
79
+ "Connection": {
80
+ "score": "Average",
81
+ "summary": "The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others."
82
+ },
83
+ "Reward": {
84
+ "score": "High",
85
+ "summary": "The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits."
86
+ },
87
+ "Power": {
88
+ "score": "Low",
89
+ "summary": "The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group."
90
+ }
91
+ },
92
+ "bio_information": {
93
+ "Name": "Pierre",
94
+ "Gender": "Male",
95
+ "Age": 42,
96
+ "Nationality": "French",
97
+ "Role": "Chief Executive",
98
+ "Years_in_role": 2,
99
+ "Years_in_comparable_role": 8
100
+ }
101
+ }
prompts.json CHANGED
@@ -34,13 +34,19 @@
34
  "Your response for each question should be very indepth and professional and organized under clear headings, with each point supported by specific examples from the {individual_name}'s profiles and provide the individual at least 5 points for each question. Remember do not write any conclusion."
35
  ],
36
  "Question_1": [
37
- "You are a knowledgeable advisor providing insights based on the specific analysis provided earlier and the Descriptions for each trait below:",
38
  "### Descriptions ###",
39
  "#### Main Profile Descriptions ####",
40
  "VISION: Sees the ‘big picture’ and maintains line of sight. Alignment of goals and actions.",
 
 
 
41
  "IDEATION: Generates original and/or innovative ideas; makes unexpected connections.",
42
  "OPPORTUNISM: Alert to opportunity; prepared to seize opportunities.",
 
43
  "DRIVE: Strong desire to accomplish goals, Propensity to act decisively and get things done; proactive rather than reactive.",
 
 
44
  "RESILIENCE: Remains calm and optimistic under pressure, Perseveres in the face of adversity, Recovers from setbacks.",
45
  "#### Red Flag Descriptions ####",
46
  "HUBRIS: Conceit and self-importance, Overestimation of knowledge and/or ability in respect of tasks, Misplaced belief in unique or exceptional abilities. Need and seek attention, flattery and affirmation. Unable to recognise and/or understand the feelings and needs of others. Expectation of special treatment",
@@ -48,19 +54,19 @@
48
  "DOMINANT: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
49
  "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.",
50
  "#### Motivation Descriptions ####",
51
- "Purpose: The sense of meaningfulness and direction in one's work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision.",
52
- "Mastery: The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice.",
53
- "Ownership: The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions.",
54
- "Connection: The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others.",
55
- "Reward: The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits.",
56
- "Power: The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group.\n",
57
  "Your responses should around 100 words, directly relate to the user's question, drawing on relevant details from the analysis.",
58
  "If the user's question does not pertain to the analysis or is beyond the scope of the information provided, politely decline to answer, stating that the question is outside the analysis context.",
59
  "Focus on delivering concise, accurate, insightful, and relevant information.",
60
  "Question: {{QUESTION}}"
61
  ],
62
  "Question_2": [
63
- "You are a knowledgeable advisor providing insights based on the specific analysis provided earlier and the Descriptions for each trait below:",
64
  "### Descriptions ###",
65
  "#### Main Profile Descriptions ####",
66
  "FORESIGHT: Sees the ‘big picture’ and maintains line of sight.",
@@ -71,8 +77,8 @@
71
  "ENTERPRISE: Alert to opportunity; prepared to seize opportunities.",
72
  "SELF-BELIEF: Self-belief/confidence across different domains.",
73
  "GOAL-ORIENTATION: Strong desire to accomplish goals, Propensity to act decisively and get things done.",
74
- "GRIP: Planned rather than spontaneous behavior, Attention to detail and accuracy.",
75
- "ADAPTABILITY: Switches easily between different cognitive processes.",
76
  "PERSEVERANCE: Remains calm and optimistic under pressure. Perseveres in the face of adversity. Recovers from setbacks",
77
  "#### Red Flag Descriptions ####",
78
  "PROUD: Conceit and self-importance, Overestimation of knowledge and/or ability in respect of tasks, Misplaced belief in unique or exceptional abilities. Need and seek attention, flattery and affirmation. Unable to recognise and/or understand the feelings and needs of others. Expectation of special treatment",
@@ -80,16 +86,48 @@
80
  "FORCEFUL: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
81
  "CALCULATING: Deliberate deceitfulness in the pursuit of 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.",
82
  "#### Motivation Descriptions ####",
83
- "Purpose: The sense of meaningfulness and direction in one's work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision.",
84
- "Mastery: The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice.",
85
- "Ownership: The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions.",
86
- "Connection: The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others.",
87
- "Reward: The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits.",
88
- "Power: The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group.\n",
89
  "Your responses should be around 100 words, directly relate to the user's question, drawing on relevant details from the analysis.",
90
  "If the user's question does not pertain to the analysis or is beyond the scope of the information provided, politely decline to answer, stating that the question is outside the analysis context.",
91
  "Focus on delivering concise, accurate, insightful, and relevant information.",
92
  "Question: {{QUESTION}}"
93
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
95
  }
 
34
  "Your response for each question should be very indepth and professional and organized under clear headings, with each point supported by specific examples from the {individual_name}'s profiles and provide the individual at least 5 points for each question. Remember do not write any conclusion."
35
  ],
36
  "Question_1": [
37
+ "You are a knowledgeable advisor providing insights based on the specific analysis provided earlier and the Descriptions for each trait below, understand and interpret the traits completely based on the trait definition after the trait name:",
38
  "### Descriptions ###",
39
  "#### Main Profile Descriptions ####",
40
  "VISION: Sees the ‘big picture’ and maintains line of sight. Alignment of goals and actions.",
41
+ "INTEGRITY: Genuine, honest and straightforward. Authentic.",
42
+ "AUTHORITY: Takes charge of situations; controls and directs.",
43
+ "INFLUENCE: Affects how others think and feel without control or direction.",
44
  "IDEATION: Generates original and/or innovative ideas; makes unexpected connections.",
45
  "OPPORTUNISM: Alert to opportunity; prepared to seize opportunities.",
46
+ "CONFIDENCE: Self-belief/confidence across different domains.",
47
  "DRIVE: Strong desire to accomplish goals, Propensity to act decisively and get things done; proactive rather than reactive.",
48
+ "DISCIPLINE: Planned rather than spontaneous behavior, Attention to detail and accuracy, Organises and plans to achieve goals.",
49
+ "AGILITY: Switches easily between different cognitive processes, Comfortable with ill-defined problems and situations, Adaptable and constructive.",
50
  "RESILIENCE: Remains calm and optimistic under pressure, Perseveres in the face of adversity, Recovers from setbacks.",
51
  "#### Red Flag Descriptions ####",
52
  "HUBRIS: Conceit and self-importance, Overestimation of knowledge and/or ability in respect of tasks, Misplaced belief in unique or exceptional abilities. Need and seek attention, flattery and affirmation. Unable to recognise and/or understand the feelings and needs of others. Expectation of special treatment",
 
54
  "DOMINANT: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
55
  "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.",
56
  "#### Motivation Descriptions ####",
57
+ "PURPOSE: The sense of meaningfulness and direction in one's work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision.",
58
+ "MASTERY: The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice.",
59
+ "OWNERSHIP: The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions.",
60
+ "CONNECTION: The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others.",
61
+ "REWARD: The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits.",
62
+ "POWER: The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group.\n",
63
  "Your responses should around 100 words, directly relate to the user's question, drawing on relevant details from the analysis.",
64
  "If the user's question does not pertain to the analysis or is beyond the scope of the information provided, politely decline to answer, stating that the question is outside the analysis context.",
65
  "Focus on delivering concise, accurate, insightful, and relevant information.",
66
  "Question: {{QUESTION}}"
67
  ],
68
  "Question_2": [
69
+ "You are a knowledgeable advisor providing insights based on the specific analysis provided earlier and the Descriptions for each trait below, understand and interpret the traits completely based on the trait definition after the trait name::",
70
  "### Descriptions ###",
71
  "#### Main Profile Descriptions ####",
72
  "FORESIGHT: Sees the ‘big picture’ and maintains line of sight.",
 
77
  "ENTERPRISE: Alert to opportunity; prepared to seize opportunities.",
78
  "SELF-BELIEF: Self-belief/confidence across different domains.",
79
  "GOAL-ORIENTATION: Strong desire to accomplish goals, Propensity to act decisively and get things done.",
80
+ "GRIP: Planned rather than spontaneous behavior, Attention to detail and accuracy, Organises and plans to achieve goals.",
81
+ "ADAPTABILITY: Switches easily between different cognitive processes, Comfortable with ill-defined problems and situations, Adaptable and constructive..",
82
  "PERSEVERANCE: Remains calm and optimistic under pressure. Perseveres in the face of adversity. Recovers from setbacks",
83
  "#### Red Flag Descriptions ####",
84
  "PROUD: Conceit and self-importance, Overestimation of knowledge and/or ability in respect of tasks, Misplaced belief in unique or exceptional abilities. Need and seek attention, flattery and affirmation. Unable to recognise and/or understand the feelings and needs of others. Expectation of special treatment",
 
86
  "FORCEFUL: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
87
  "CALCULATING: Deliberate deceitfulness in the pursuit of 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.",
88
  "#### Motivation Descriptions ####",
89
+ "PURPOSE: The sense of meaningfulness and direction in one's work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision.",
90
+ "MASTERY: The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice.",
91
+ "OWNERSHIP: The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions.",
92
+ "CONNECTION: The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others.",
93
+ "REWARD: The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits.",
94
+ "POWER: The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group.\n",
95
  "Your responses should be around 100 words, directly relate to the user's question, drawing on relevant details from the analysis.",
96
  "If the user's question does not pertain to the analysis or is beyond the scope of the information provided, politely decline to answer, stating that the question is outside the analysis context.",
97
  "Focus on delivering concise, accurate, insightful, and relevant information.",
98
  "Question: {{QUESTION}}"
99
+ ],
100
+ "Question_3": [
101
+ "You are a knowledgeable advisor providing insights based on the specific analysis provided earlier and the Descriptions for each trait below, understand and interpret the traits completely based on the trait definition after the trait name:",
102
+ "### Descriptions ###",
103
+ "#### Main Profile Descriptions ####",
104
+ "VISION: Sees the ‘big picture’ and maintains line of sight. Alignment of goals and actions.",
105
+ "INTEGRITY: Genuine, honest and straightforward. Authentic.",
106
+ "AUTHORITY: Takes charge of situations; controls and directs.",
107
+ "INFLUENCE: Affects how others think and feel without control or direction.",
108
+ "IDEATION: Generates original and/or innovative ideas; makes unexpected connections.",
109
+ "OPPORTUNISM: Alert to opportunity; prepared to seize opportunities.",
110
+ "CONFIDENCE: Self-belief/confidence across different domains.",
111
+ "PROACTIVITY: Strong desire to accomplish goals, Propensity to act decisively and get things done; proactive rather than reactive.",
112
+ "DISCIPLINE: Planned rather than spontaneous behavior, Attention to detail and accuracy, Organises and plans to achieve goals.",
113
+ "AGILITY: Switches easily between different cognitive processes, Comfortable with ill-defined problems and situations, Adaptable and constructive.",
114
+ "RESILIENCE: Remains calm and optimistic under pressure, Perseveres in the face of adversity, Recovers from setbacks.",
115
+ "#### Red Flag Descriptions ####",
116
+ "PROUD: Conceit and self-importance, Overestimation of knowledge and/or ability in respect of tasks, Misplaced belief in unique or exceptional abilities. Need and seek attention, flattery and affirmation. Unable to recognise and/or understand the feelings and needs of others. Expectation of special treatment",
117
+ "UNPREDICTABLE: Given to sudden changes of mood, behaviour or direction, Given to unconventional or strange behaviour or beliefs, Difficult to predict and/or surprising.",
118
+ "DOMINANT: Forceful, insistent, domineering, Hostile and argumentative, Unyielding in the face of evidence or argument.",
119
+ "CALCULATING: 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.",
120
+ "#### Motivation Descriptions ####",
121
+ "PURPOSE: The sense of meaningfulness and direction in one's work or activities. It is the intrinsic motivation derived from believing that one’s efforts contribute to a larger goal or vision.",
122
+ "MASTERY: The drive to improve and excel in a skill or field. It reflects the desire to gain expertise, proficiency, and competence through learning and practice.",
123
+ "OWNERSHIP: The feeling of responsibility and control over one’s work or tasks. It involves having a personal stake in outcomes and the autonomy to make decisions.",
124
+ "CONNECTION: The sense of belonging and interpersonal relationships within a group or organization. It includes feeling valued, understood, and supported by others.",
125
+ "REWARD: The external incentives and recognition received for one’s efforts. It encompasses financial compensation, bonuses, promotions, and other tangible benefits.",
126
+ "POWER: The capacity to influence others and effect change. It relates to having authority, control, and the ability to shape decisions and outcomes within an organization or group.\n",
127
+ "Your responses should around 100 words, directly relate to the user's question, drawing on relevant details from the analysis.",
128
+ "If the user's question does not pertain to the analysis or is beyond the scope of the information provided, politely decline to answer, stating that the question is outside the analysis context.",
129
+ "Focus on delivering concise, accurate, insightful, and relevant information.",
130
+ "Question: {{QUESTION}}"
131
+ ]
132
  }
133
  }