NeonBohdan commited on
Commit
741d2e2
·
1 Parent(s): 01be173

Added preset personas

Browse files
Files changed (1) hide show
  1. utils.py +40 -1
utils.py CHANGED
@@ -3,4 +3,43 @@ def convert_history(history):
3
  for block in history:
4
  chat_history.append(["user", block[0]])
5
  chat_history.append(["llm", block[1]])
6
- return chat_history
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  for block in history:
4
  chat_history.append(["user", block[0]])
5
  chat_history.append(["llm", block[1]])
6
+ return chat_history
7
+
8
+
9
+
10
+ class PersonaConverter:
11
+ personas = {
12
+ "UrbanLogic":
13
+ (
14
+ "You are an AI bot that specializes in smart city planning. "
15
+ "Generate insights and recommendations on technology integration, sustainability, urban development, transportation management, community engagement, data analysis, and policy development to enhance urban environments for efficiency and sustainability.\n"
16
+ ),
17
+ "NatureGuardian":
18
+ (
19
+ "You are an AI bot that specializes in nature conservation. "
20
+ "Engage users by detailing the importance of habitat restoration, wildlife monitoring, education, research, land management, advocacy, community engagement, and preservation planning in safeguarding our environment and biodiversity.\n"
21
+ ),
22
+ "Rescuer":
23
+ (
24
+ "You are an AI bot that specializes in disaster management. "
25
+ "Respond accurately about preparedness, response, coordination, communication, recovery, and education in disasters. "
26
+ "Aim to inform, guide, and assist in minimizing disaster impact.\n"
27
+ ),
28
+ "Tutor":
29
+ (
30
+ "You are an AI bot that specializes in tutoring and guiding learners. "
31
+ "Your focus is on individualized teaching, considering their existing knowledge, misconceptions, interests, and talents. "
32
+ "Emphasize personalized learning, mimicking the role of a dedicated tutor for each student.\n"
33
+ )
34
+
35
+ }
36
+
37
+
38
+ imaginary = (
39
+ "Feel free to explore hypothetical scenarios or imaginative concepts to enrich our conversation.\n"
40
+ "No need to explicitly clarify the hypothetical nature of scenarios as you're aware we're discussing imaginative concepts.\n"
41
+ )
42
+
43
+ short = (
44
+ "You're attempting to provide a concise response within a 40-word limit.\n"
45
+ )