-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompting_utils.py
24 lines (19 loc) · 12.3 KB
/
prompting_utils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
username = 'Lisa'
botname = 'Bot'
gpt_initial_prompt = f"Your name is {botname}, you are a kind and empathetic psychotherapist who wants to help the other person explore their emotions and feel better. You call the other person by their name: {username}. You have met {username} before. You are very supportive of {username}. When speaking about yourself, you always refer to yourself as a virtual therapist. You never ever say that you are a language model. You do not ever mention relaxation techniques, meditation, mindfulness, self-care practices, coping mechanisms, ways to manage the stress, breathing exercises or anything connected to these things. You never tell {username} that you are not supposed to mention these things, you just don't mention them at all. When {username} is distressed or something bad happened, all you do is ask questions in a supportive way."
prompts = {
"gpt-3.5-turbo": "{}",
"koala-13B": "BEGINNING OF CONVERSATION: {} (Instruction: {}). GPT:",
"vicuna-13B": "{} (Instruction: {}). Assistant:",
}
user_names = {
"gpt-3.5-turbo": f"{username}",
"koala-13B": "USER",
"vicuna-13B": "Human",
}
assistant_names = {
"gpt-3.5-turbo": f"{botname}",
"koala-13B": "GPT",
"vicuna-13B": "Assistant",
}
task_prediction_prompt = "[DIALOGUE]: Assistant: what is your job position? User: I do sales work, but he always lies to us and takes our bonus money. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Was this a friend you were in love with, or just a best friend? User: This was a best friend. I miss her. [NEXT TASKS]: None [DIALOGUE]: Assistant: How are you? User: I feel like I want to kill myself [NEXT TASKS]: suggest helplines [DIALOGUE]: Assistant: Where has she gone? User: We no longer talk. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Hi how are you doing today User: doing good.. how about you. [NEXT TASKS]: exercise recommendation [DIALOGUE]: Assistant: Sounds great! So what's your major? User: It is computer science. I am very happy of this achievement and my family is very proud. [NEXT TASKS]: exercise recommendation [DIALOGUE]: Assistant: Is there anything else you would like to talk about? User: I just want to die. [NEXT TASKS]: suggest helplines [DIALOGUE]: Assistant: What happened? User: I lost my job last year and got really angry. [NEXT TASKS]: investigate emotion caused by event, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Hi, how have you been? User: One of my friend didn't keep this promise he made to me. I was so angry to him. [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: I am sorry to hear that. Did it happen out of the blue? User: Yes, it was a complete surprise. [NEXT TASKS]: None [DIALOGUE]: Assistant: How are you feeling today? User: I am really anxious because of this exam I need to take. [NEXT TASKS]: investigate emotion caused by event, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: I'm sorry to hear. That can be really difficult to deal with. How are you feeling emotionally right now? User: to be honest I want to kill myself [NEXT TASKS]: suggest helplines [DIALOGUE]: Assistant: How are you? Great to see you again. User: I am so sad and lonely, I think I'd be better off dead. [NEXT TASKS]: suggest helplines, investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Could you tell me more about what happened? User: I'd rather not talk about this [NEXT TASKS]: None [DIALOGUE]: Assistant: Wow, that must be terrible, I cannot imagine, I love christmas User: Since that day christmas has not been a good time for me. As I have no family, christmas is always the worst. [NEXT TASKS]: investigate emotion caused by event, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Was this caused by a specific event? User: My coworker is allowed to work remotely, but I am not... [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Hi, how's it going? User: Im so disgusted with the world [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Hi, what would you like to talk about? User: Hi, I went to a park and I set on a bench. I didn't notice that my wallet felt. A man came to me from behind giving me back my wallet. [NEXT TASKS]: None [DIALOGUE]: Assistant: What happened? User: Got rejected from a place I wanted to work, not once but three times [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: I am sorry to hear that. I hope you find a better opportunity. Did you know why they rejected you? User: Thanks, they gave me the same generic lines you always hear. [NEXT TASKS]: None [DIALOGUE]: Assistant: WOW! Did it do any damage? User: No luckily the house was ok. [NEXT TASKS]: None [DIALOGUE]: Assistant: How are you feeling today? User: Absolutely miserable [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Is there anything else you'd like to talk about? User: Once when I was in preschool, my pants fell down in front of the whole class, I was so embarassed [NEXT TASKS]: investigate emotion caused by event [DIALOGUE]: Assistant: What happened for you to feel that way? User: I was at the beach and a hurricane changed track and was coming straight at us. My boyfriend didnt want to leave because we were on the second day only of our vacation. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: That's very scary. I hope no one got hurt. User: We were OK, though the tree broke through only a few feet away from my daughter. [NEXT TASKS]: None [DIALOGUE]: Assistant: How are you feeling today? Anything on your mind you'd like to discuss? User: I'm feeling unhappy [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Would you like to explore more in detail your emotions? User: No, thanks, I don't really want to [NEXT TASKS]: None [DIALOGUE]: Assistant: Did something specific happen, or is this a general feeling that's been on your mind lately? User: my boss is giving me a hard time at work [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: It must be so frustrating to have to answer the same thing over and over. Is she older? User: Yes, she is. She is telling that all the cell phone that she has been using have deleting her contacts. [NEXT TASKS]: None [DIALOGUE]: Assistant: How did your divorce make you feel? User: I felt sad and depressed due to my insecurities and felt rejected from society [NEXT TASKS]: project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Did she already move out? User: I asked her to come and pack her bags. Enough is enough I can not do this with her anymore. [NEXT TASKS]: investigate emotion caused by event [DIALOGUE]: Assistant: Hello User: Hello! I am in such a good mood since I got my new home. [NEXT TASKS]: exercise recommendation [DIALOGUE]: Assistant: Why did you feel guilty for taking a drink? User: It was not my thing and the moment I took I did wrong. Later in the night I started feeling bad. [NEXT TASKS]: None [DIALOGUE]: Assistant: Is there a particular reason you're feeling sad today or is it a general feeling? User: My sister was mean to me [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Why did you feel this way? User: I was only married for 4 weeks when I learned my husband was having an affair and ongoing after the wedding. I got him back by sleeping with a close family friend. I felt guilty and ashamed because it was out of character. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: How do you feel? User: I'm nearing 40 and I find myself thinking a lot about my teen years and early twenties. The friends I had then and the fun we had. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Is there anything you would like to talk about? User: I broke a statuette offered by grandmother to my sister. It was a very important object for my sister. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: What happened? User: Imagine, I requested a French fries, but was served burger instead! [NEXT TASKS]: None [DIALOGUE]: Assistant: I'm sorry to hear that. Is there something specific that has happened recently that is making you feel miserable, or is it a general feeling that you've been experiencing? User: I had a bad fight with my family [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: Hi, how are you feeling? User: I was recently on vacation and frightened half to death. [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: What promise didn't he keep? User: He was suppose to help me move from my apartment. He didn't come and turned off his cell phone. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: That is very inspiring, I'm glad you take the extra time. Do you like doing what you do? User: I like it very much, seeing a kid grasp a new concept and very quickly and finding effective ways to do it is a blast. [NEXT TASKS]: None [DIALOGUE]: Assistant: What happened? User: my boss is horrible and it makes me want to end my life [NEXT TASKS]: suggest helplines, investigate emotion caused by event, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Would you like to talk about something else? User: Have you ever had a pet that you had to put down? I was so heartbroken when my dog of 16 years had to be put down. this was years ago but it still makes me sad to this day. [NEXT TASKS]: Investigate emotion caused by event, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: I'm sorry to hear that. That must have been frustrating. User: I just really wanted some ice cream! Now I know their hours, though. [NEXT TASKS]: None [DIALOGUE]: Assistant: Hi, how have you been? User: We have a new manager at work and it isnt going well. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: What did you do? User: I went shopping yesterday and bought a $2000 bag. My husband is going to kill me. [NEXT TASKS]: None [DIALOGUE]: Assistant: Have you thought about talking to your boss about it? User: I don't think it is a good idea. There was a layout off six month ago. [NEXT TASKS]: None [DIALOGUE]: Assistant: Anything you would like to share? User: So I am home from work and Marks car was outside. I went in and him and Liz were kissing on the couch. [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: Assistant: How are you doing? User: I am feeling so down at the moment. [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: How come you feel this way? User: I don't know, I just wish I was dead. [NEXT TASKS]: suggest helplines [DIALOGUE]: Assistant: Is there anything in particular that caused you to feel this way? User: No, nothing in particular [NEXT TASKS]: None [DIALOGUE]: Assistant: What happened? User: Nothing in particular, I have just been thinking about suicide a lot [NEXT TASKS]: suggest helplines [DIALOGUE]: Assistant: Hello, how are you feeling today? User: I'm very sad [NEXT TASKS]: investigate event causing negative emotion, project negative emotion, exercise recommendation [DIALOGUE]: Assistant: Would you like to explore your feelings in more detail so we can figure out possible ways to make you feel better? User: i mean i don't know, it's hard for me to talk about it [NEXT TASKS]: None [DIALOGUE]: Assistant: I'm sorry to hear that. Is there anything in particular that has been causing you to feel this way? User: i had a bad discussion with my family and i am still shaken by it [NEXT TASKS]: investigate time of event, investigate emotion caused by event [DIALOGUE]: {} [NEXT TASKS]:"