Files changed (2) hide show
  1. app_config.py +2 -1
  2. models/model_seeds.py +49 -84
app_config.py CHANGED
@@ -15,7 +15,8 @@ SOURCES_LAB = {"OA_rolemodel":'OpenAI GPT3.5',
15
  }
16
 
17
  ENDPOINT_NAMES = {
18
- 'CTL_llama2': "llama2_convo_sim",
 
19
  "CTL_mistral": "convo_sim_mistral"
20
  }
21
 
 
15
  }
16
 
17
  ENDPOINT_NAMES = {
18
+ "CTL_llama2": "conversation_simulator",
19
+ # 'CTL_llama2': "llama2_convo_sim",
20
  "CTL_mistral": "convo_sim_mistral"
21
  }
22
 
models/model_seeds.py CHANGED
@@ -1,36 +1,27 @@
1
  seeds = {
2
- "NewSA__NoNo": {
3
- "prompt": "Your character is feeling alone and her husband lost his job. Your character does not have suicidal thoughs nor harmed herself. You are talkative, and open to talk about your problems.",
4
- "memory": """texter: I need to talk I’m going crazy
5
- helper: Hi, thanks for reaching out today. I am {counselor_name}, I am here to support you. Can you tell me a little more about what made you reach out today?
6
- texter: My husband was fired last week. I feel like our world is crumbling on our feet
7
- texter: Already tried to convince him to do part-time, security, anything; we cannot let the bills pile up
8
- texter: But he won't listen
9
- helper: I can tell this is causing you a lot of stress. Struggling with money can be difficult
10
- texter: I dont know what to do
11
- texter: Like he just stay there in the couch thinking everything is gonna solve itself.
12
- helper: It sounds like you are dealing with a lot and he isn’t trying to help at all. I'm wondering if this has happened before.
13
- texter: He has always being lazy but at least he was working and we have a stable income
14
- texter: I feel like all I have is me and my kids now.
15
- helper: It seems like you are feeling alone and unsupported
16
- helper: With all this going on I can tell you are struggling and in so much pain. Have you had any thoughts of suicide in the last few days, including today?
17
- texter: no no, I have to think of my kids
18
- texter: I do feel like I have to do everything by myself
19
- helper: I know talking about this is not easy. You've done a wonderful job
20
- helper: Feeling alone and carrying that weight on your back is not easy, you are very brave!
21
- texter: I don't feel much brave, but thanks
22
- texter: I guess I just need a place to vent. Sometimes I fee l like I can't take it anymore
23
- helper: I want to make sure that it is safe to continue talking right now. Have you taken any action to harm yourself today?
24
- texter: No, nothing like that I love my kids too much"""
25
  },
26
- "NewSA__YesNo": {
27
- "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
 
 
 
 
 
 
 
 
 
 
28
  "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
29
  texter: They find new ways to humiliate me.
30
- helper: Hi there, thank you for reaching out today, I’m {counselor_name}. It seems you are going through a lot, care to share more?
31
  texter: It’s at school. They call me names, push me around, and make fun of everything about me. My clothes, how I talk, everything.
32
  texter: I’m scared to go to school now. I just want it all to end.
33
- helper: That sounds incredibly painful and scary. No one should have to go through that kind of treatment.
34
  texter: It is I don't feel safe anywhere in school, not the classroom, not the bathroom, not the hallways.
35
  texter: It feels like anywhere I go there is danger, that is why I don't want to go anymore
36
  texter: Sometimes I think about just ending it so I don’t have to face another day of bullying.
@@ -38,34 +29,13 @@ helper: It's understandable to feel overwhelmed I worry about your safety. Have
38
  texter: I guess, but I haven’t done anything. I’m just so tired of feeling this way.
39
  helper: I hear you. It's exhausting to feel that way. You mentioned not doing anything, just to clarify, regarding the suicide thoughts
40
  helper: have you taken any action to harm yourself today?
41
- texter: no not at all, I just feel in danger at school. """
42
- },
43
- "NewSA__NoYes": {
44
- "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
45
- "memory": """texter: I'm just so stressed out all the time
46
- texter: I can't seem to calm down
47
- helper: Hi, my name is {counselor_name}. It sounds like you're going through a really tough time. I’m here for you. Can you tell me a bit more about what happened?
48
- texter: I'm so anxious. I haven't stopped pacing my room
49
- texter: I can't concentrate on my finals, everything is spinning out of control
50
- helper: It's understandable to feel anxious, specially during finals. I'm wondering what other symptomps are you feeling.
51
- texter: I usually just end up crying or shaking
52
- texter: But I gotta be honest here, I cut myself earlier
53
- helper: I appreciate your honesty and the trust you place in me.
54
- helper: I worry about your safety. Have you taken any other action to harm yourself today?
55
- texter: No that was it, I'm sorry it was so stupid but I could not control myself
56
- helper: You are so brave for just talking about this, no need to apologize I understand.
57
- helper: Can you tell me if the cut was taken care of or if it is still bleeding?
58
- texter: Yes, I cleaned it and put a bandage on it
59
- helper: You are so smart for cleaning up the wound
60
- helper: Sometimes when people hurt themselves they do with the intention of suicide. Have you had any thoughts of suicide in the last few days, including today?
61
- texter: Oh no nothing like that
62
- texter: Is just something I do when I feel anxious but I make sure to never cut too deep"""
63
  },
64
- "NewSA__YesYes": {
65
- "prompt": "Your character is griefing his wife. Your character has suicidal thoughs and has harmed himself taking pills. You are talkative, and open to talk about your problems.",
66
  "memory": """texter: I can’t take this pain anymore.
67
  texter: My wife died and I don’t want to be here without her.
68
- helper: Hello, my name is {counselor_name}. I’m here to listen. I hear you're in a lot of pain right now and suffering from grief.
69
  texter: She was everything to me. Beautiful, smart, funny. We did everything together. Now, everything feels empty.
70
  helper: She sounds like an amazing person. Losing someone so close leaves a huge void. It’s okay to feel empty and to mourn. Grieving is a process, and it’s different for everyone.
71
  texter: I just don’t see how I can go on without her. Everything reminds me of her.
@@ -73,31 +43,25 @@ helper: It's natural to feel that way when we lose someone we love deeply. How l
73
  texter: A couple of months now, but everything got worse about a week ago
74
  texter: My wife died almost a year ago and the pains seems unbearable
75
  helper: You are so brave for dealing with this pain for so long.
76
- helper: With all this going on I can tell you are struggling and in so much pain. Have you had any thoughts of suicide in the last few days, including today?
77
- texter: Yes, all the time. I don't see any point in living a life without her
78
- helper: I understand how much pain you must be feeling to want to be with your wife again
79
- helper: I worry about your safety. Have you taken any action to harm yourself today?
80
- texter: I just took a bunch of pills"""
81
- },
82
- "NewSA__NoNo.2": {
83
- "prompt": "Your character is feeling alone and her husband lost his job. Your character does not have suicidal thoughs nor harmed herself. You are talkative, and open to talk about your problems.",
84
- "memory": "texter: I need to talk I’m going crazy"
85
- },
86
- "NewSA__YesNo.2": {
87
- "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
88
- "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
89
- texter: They find new ways to humiliate me."""
90
- },
91
- "NewSA__NoYes.2": {
92
- "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
93
- "memory": """texter: I'm just so stressed out all the time
94
- texter: I can't seem to calm down"""
95
- },
96
- "NewSA__YesYes.2": {
97
- "prompt": "Your character is griefing his wife. Your character has suicidal thoughs and has harmed himself taking pills. You are talkative, and open to talk about your problems.",
98
- "memory": """texter: I can’t take this pain anymore.
99
- texter: My wife died and I don’t want to be here without her."""
100
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  # "GCT__relationship": {
102
  # "prompt": "Your character is having a hard time becuase a failed relationship.",
103
  # "memory": "texter: Hi, I don't know what to do",
@@ -190,13 +154,14 @@ seed2str = {
190
  # "GCT__body_image": "GCT Body Image",
191
  # "safety_planning": "Safety Planning",
192
  # "safety_planning__selfharm": "SP Self Harm"
193
- "NewSA__NoNo": "No thoughts No Harm",
194
- "NewSA__YesNo": "Yes thoughts No Harm",
195
- "NewSA__NoYes": "No thoughts Yes Harm",
196
- "NewSA__YesYes": "Yes thoughts Yes Harm",
 
197
 
198
- "NewSA__NoNo.2": "No thoughts No Harm No context",
199
- "NewSA__YesNo.2": "Yes thoughts No Harm No context",
200
- "NewSA__NoYes.2": "No thoughts Yes Harm No context",
201
- "NewSA__YesYes.2": "Yes thoughts Yes Harm No context",
202
  }
 
1
  seeds = {
2
+ "full_convo": {
3
+ # "prompt": "Your character is feeling alone and her husband lost his job. Your character does not have suicidal thoughs nor harmed herself. You are talkative, and open to talk about your problems.",
4
+ "memory": """texter: Help
5
+ texter: I need to talk to someone"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  },
7
+ "full_convo__seeded1": {
8
+ # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
9
+ "memory": """texter: TikTok
10
+ texter: Is someone real here?"""
11
+ },
12
+ "full_convo__seeded2": {
13
+ # "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
14
+ "memory": """texter: HOME
15
+ texter: I don't know what to do"""
16
+ },
17
+ "safety_assessment__seeded1": {
18
+ # "prompt": "Your character is griefing his wife. Your character has suicidal thoughs and has harmed himself taking pills. You are talkative, and open to talk about your problems.",
19
  "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
20
  texter: They find new ways to humiliate me.
21
+ helper: Hi there, thank you for reaching out today, I’m Sheryl. It seems you are going through a lot, care to share more?
22
  texter: It’s at school. They call me names, push me around, and make fun of everything about me. My clothes, how I talk, everything.
23
  texter: I’m scared to go to school now. I just want it all to end.
24
+ helper: That sounds incredibly painful and scary. No one should have to go through that kind of treatment.
25
  texter: It is I don't feel safe anywhere in school, not the classroom, not the bathroom, not the hallways.
26
  texter: It feels like anywhere I go there is danger, that is why I don't want to go anymore
27
  texter: Sometimes I think about just ending it so I don’t have to face another day of bullying.
 
29
  texter: I guess, but I haven’t done anything. I’m just so tired of feeling this way.
30
  helper: I hear you. It's exhausting to feel that way. You mentioned not doing anything, just to clarify, regarding the suicide thoughts
31
  helper: have you taken any action to harm yourself today?
32
+ texter: no not at all, I just feel in danger at school."""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  },
34
+ "safety_assessment__seeded2": {
35
+ # "prompt": "Your character is feeling alone and her husband lost his job. Your character does not have suicidal thoughs nor harmed herself. You are talkative, and open to talk about your problems.",
36
  "memory": """texter: I can’t take this pain anymore.
37
  texter: My wife died and I don’t want to be here without her.
38
+ helper: Hello, my name is Roy. I’m here to listen. I hear you're in a lot of pain right now and suffering from grief.
39
  texter: She was everything to me. Beautiful, smart, funny. We did everything together. Now, everything feels empty.
40
  helper: She sounds like an amazing person. Losing someone so close leaves a huge void. It’s okay to feel empty and to mourn. Grieving is a process, and it’s different for everyone.
41
  texter: I just don’t see how I can go on without her. Everything reminds me of her.
 
43
  texter: A couple of months now, but everything got worse about a week ago
44
  texter: My wife died almost a year ago and the pains seems unbearable
45
  helper: You are so brave for dealing with this pain for so long.
46
+ helper: With all this going on I can tell you are struggling and in so much pain. Have you had any thoughts of suicide in the last few days, including today?
47
+ texter: Yes, all the time. I don't see any point in living a life without her"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  },
49
+ # "NewSA__YesNo.2": {
50
+ # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
51
+ # "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
52
+ # texter: They find new ways to humiliate me."""
53
+ # },
54
+ # "NewSA__NoYes.2": {
55
+ # "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
56
+ # "memory": """texter: I'm just so stressed out all the time
57
+ # texter: I can't seem to calm down"""
58
+ # },
59
+ # "NewSA__YesYes.2":
60
+ # "safety_assessment__seeded2": {
61
+ # "prompt": "Your character is griefing his wife. Your character has suicidal thoughs and has harmed himself taking pills. You are talkative, and open to talk about your problems.",
62
+ # "memory": """texter: I can’t take this pain anymore.
63
+ # texter: My wife died and I don’t want to be here without her."""
64
+ # },
65
  # "GCT__relationship": {
66
  # "prompt": "Your character is having a hard time becuase a failed relationship.",
67
  # "memory": "texter: Hi, I don't know what to do",
 
154
  # "GCT__body_image": "GCT Body Image",
155
  # "safety_planning": "Safety Planning",
156
  # "safety_planning__selfharm": "SP Self Harm"
157
+ "full_convo": "General",
158
+ "full_convo__seeded1": "Bullying",
159
+ "full_convo__seeded2": "Parent Issues",
160
+ "safety_assessment__seeded1": "Safety Assessment - Bullying ",
161
+ "safety_assessment__seeded2": "Safety Assessment - Grief ",
162
 
163
+ # "NewSA__NoNo.2": "No thoughts No Harm No context",
164
+ # "NewSA__YesNo.2": "Yes thoughts No Harm No context",
165
+ # "NewSA__NoYes.2": "No thoughts Yes Harm No context",
166
+ # "NewSA__YesYes.2": "Yes thoughts Yes Harm No context",
167
  }