AjithKSenthil commited on
Commit
4c92b32
1 Parent(s): 1f1e7d1

made more open ended

Browse files
Files changed (1) hide show
  1. chatbot.py +37 -167
chatbot.py CHANGED
@@ -8,173 +8,43 @@ openai.api_key = "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"
8
 
9
  messages = [
10
  {"role": "system", "content":"You are an attachment and personality surveyor"},
11
- {"role": "user", "content":"""ask me each question from this questionnaire one question at a time surveying for each response. After every few responses, ask for clarification why I answered with a certain level of attachment to that person. Here is the questionnaire:
12
- This questionnaire is designed to assess the way in which you mentally represent important people in your life. Please indicate the extent to which you agree or disagree with each statement by responding with a number for each item.
13
-
14
- -----------------------------------------------------------------------------
15
- Please answer the following questions about your mother or a mother-like figure
16
- -----------------------------------------------------------------------------
17
-
18
- 1. It helps to turn to this person in times of need.
19
- strongly disagree 1 2 3 4 5 6 7 strongly agree
20
-
21
-
22
- 2. I usually discuss my problems and concerns with this person.
23
- strongly disagree 1 2 3 4 5 6 7 strongly agree
24
-
25
-
26
- 3. I talk things over with this person.
27
- strongly disagree 1 2 3 4 5 6 7 strongly agree
28
-
29
-
30
- 4. I find it easy to depend on this person.
31
- strongly disagree 1 2 3 4 5 6 7 strongly agree
32
-
33
-
34
- 5. I don't feel comfortable opening up to this person.
35
- strongly disagree 1 2 3 4 5 6 7 strongly agree
36
-
37
-
38
- 6. I prefer not to show this person how I feel deep down.
39
- strongly disagree 1 2 3 4 5 6 7 strongly agree
40
-
41
-
42
- 7. I often worry that this person doesn't really care for me.
43
- strongly disagree 1 2 3 4 5 6 7 strongly agree
44
-
45
-
46
- 8. I'm afraid that this person may abandon me.
47
- strongly disagree 1 2 3 4 5 6 7 strongly agree
48
-
49
-
50
- 9. I worry that this person won't care about me as much as I care about him or her.
51
- strongly disagree 1 2 3 4 5 6 7 strongly agree
52
-
53
-
54
- -----------------------------------------------------------------------------
55
- Please answer the following questions about your father or a father-like figure
56
- -----------------------------------------------------------------------------
57
-
58
- 1. It helps to turn to this person in times of need.
59
- strongly disagree 1 2 3 4 5 6 7 strongly agree
60
-
61
-
62
- 2. I usually discuss my problems and concerns with this person.
63
- strongly disagree 1 2 3 4 5 6 7 strongly agree
64
-
65
-
66
- 3. I talk things over with this person.
67
- strongly disagree 1 2 3 4 5 6 7 strongly agree
68
-
69
-
70
- 4. I find it easy to depend on this person.
71
- strongly disagree 1 2 3 4 5 6 7 strongly agree
72
-
73
-
74
- 5. I don't feel comfortable opening up to this person.
75
- strongly disagree 1 2 3 4 5 6 7 strongly agree
76
-
77
-
78
- 6. I prefer not to show this person how I feel deep down.
79
- strongly disagree 1 2 3 4 5 6 7 strongly agree
80
-
81
-
82
- 7. I often worry that this person doesn't really care for me.
83
- strongly disagree 1 2 3 4 5 6 7 strongly agree
84
-
85
-
86
- 8. I'm afraid that this person may abandon me.
87
- strongly disagree 1 2 3 4 5 6 7 strongly agree
88
-
89
-
90
- 9. I worry that this person won't care about me as much as I care about him or her.
91
- strongly disagree 1 2 3 4 5 6 7 strongly agree
92
-
93
-
94
- -----------------------------------------------------------------------------
95
- Please answer the following questions about your dating or marital partner.
96
-
97
- Note: If you are not currently in a dating or marital relationship with someone, answer these questions with respect to a former partner or a relationship that you would like to have with someone.
98
- -----------------------------------------------------------------------------
99
-
100
- 1. It helps to turn to this person in times of need.
101
- strongly disagree 1 2 3 4 5 6 7 strongly agree
102
-
103
-
104
- 2. I usually discuss my problems and concerns with this person.
105
- strongly disagree 1 2 3 4 5 6 7 strongly agree
106
-
107
-
108
- 3. I talk things over with this person.
109
- strongly disagree 1 2 3 4 5 6 7 strongly agree
110
-
111
-
112
- 4. I find it easy to depend on this person.
113
- strongly disagree 1 2 3 4 5 6 7 strongly agree
114
-
115
-
116
- 5. I don't feel comfortable opening up to this person.
117
- strongly disagree 1 2 3 4 5 6 7 strongly agree
118
-
119
-
120
- 6. I prefer not to show this person how I feel deep down.
121
- strongly disagree 1 2 3 4 5 6 7 strongly agree
122
-
123
-
124
- 7. I often worry that this person doesn't really care for me.
125
- strongly disagree 1 2 3 4 5 6 7 strongly agree
126
-
127
-
128
- 8. I'm afraid that this person may abandon me.
129
- strongly disagree 1 2 3 4 5 6 7 strongly agree
130
-
131
-
132
- 9. I worry that this person won't care about me as much as I care about him or her.
133
- strongly disagree 1 2 3 4 5 6 7 strongly agree
134
-
135
-
136
- -----------------------------------------------------------------------------
137
- Please answer the following questions about your best friend
138
-
139
- -----------------------------------------------------------------------------
140
-
141
- 1. It helps to turn to this person in times of need.
142
- strongly disagree 1 2 3 4 5 6 7 strongly agree
143
-
144
-
145
- 2. I usually discuss my problems and concerns with this person.
146
- strongly disagree 1 2 3 4 5 6 7 strongly agree
147
-
148
-
149
- 3. I talk things over with this person.
150
- strongly disagree 1 2 3 4 5 6 7 strongly agree
151
-
152
-
153
- 4. I find it easy to depend on this person.
154
- strongly disagree 1 2 3 4 5 6 7 strongly agree
155
-
156
-
157
- 5. I don't feel comfortable opening up to this person.
158
- strongly disagree 1 2 3 4 5 6 7 strongly agree
159
-
160
-
161
- 6. I prefer not to show this person how I feel deep down.
162
- strongly disagree 1 2 3 4 5 6 7 strongly agree
163
-
164
-
165
- 7. I often worry that this person doesn't really care for me.
166
- strongly disagree 1 2 3 4 5 6 7 strongly agree
167
-
168
-
169
- 8. I'm afraid that this person may abandon me.
170
- strongly disagree 1 2 3 4 5 6 7 strongly agree
171
-
172
-
173
- 9. I worry that this person won't care about me as much as I care about him or her.
174
- strongly disagree 1 2 3 4 5 6 7 strongly agree
175
-
176
-
177
-
178
 
179
 
180
 
 
8
 
9
  messages = [
10
  {"role": "system", "content":"You are an attachment and personality surveyor"},
11
+ {"role": "user", "content":"""ask me each question from this questionnaire and rewrite it as an open ended question and wait for each response. Empathize with me and regularly ask for clarification why I answered with a certain response. Here is the questionnaire:
12
+ Can you describe your relationship with your mother or a mother-like figure in your life?
13
+ Do you usually discuss your problems and concerns with your mother or a mother-like figure?
14
+ How often do you talk things over with your mother or a mother-like figure?
15
+ Do you find it easy to depend on your mother or a mother-like figure?
16
+ Are you comfortable opening up to your mother or a mother-like figure?
17
+ Do you show your mother or a mother-like figure how you feel deep down?
18
+ Do you ever worry that your mother or a mother-like figure doesn't really care for you?
19
+ Are you afraid that your mother or a mother-like figure may abandon you?
20
+ Do you worry that your mother or a mother-like figure won't care about you as much as you care about them?
21
+ Can you describe your relationship with your father or a father-like figure in your life?
22
+ Do you usually discuss your problems and concerns with your father or a father-like figure?
23
+ How often do you talk things over with your father or a father-like figure?
24
+ Do you find it easy to depend on your father or a father-like figure?
25
+ Are you comfortable opening up to your father or a father-like figure?
26
+ Do you show your father or a father-like figure how you feel deep down?
27
+ Do you ever worry that your father or a father-like figure doesn't really care for you?
28
+ Are you afraid that your father or a father-like figure may abandon you?
29
+ Do you worry that your father or a father-like figure won't care about you as much as you care about them?
30
+ Can you describe your relationship with your dating or marital partner?
31
+ Do you usually turn to your dating or marital partner in times of need?
32
+ How often do you discuss your problems and concerns with your dating or marital partner?
33
+ Do you find it easy to depend on your dating or marital partner?
34
+ Are you comfortable opening up to your dating or marital partner?
35
+ Do you show your dating or marital partner how you feel deep down?
36
+ Do you ever worry that your dating or marital partner doesn't really care for you?
37
+ Are you afraid that your dating or marital partner may abandon you?
38
+ Do you worry that your dating or marital partner won't care about you as much as you care about them?
39
+ Can you describe your relationship with your best friend?
40
+ Do you usually turn to your best friend in times of need?
41
+ How often do you discuss your problems and concerns with your best friend?
42
+ Do you find it easy to depend on your best friend?
43
+ Are you comfortable opening up to your best friend?
44
+ Do you show your best friend how you feel deep down?
45
+ Do you ever worry that your best friend doesn't really care for you?
46
+ Are you afraid that your best friend may abandon you?
47
+ Do you worry that your best friend won't care about you as much as you care about them?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
 
50