suhamemon1 commited on
Commit
b63b62d
1 Parent(s): ea98d91

tried to fix db issues

Browse files
__pycache__/pymongo_get_database.cpython-311.pyc CHANGED
Binary files a/__pycache__/pymongo_get_database.cpython-311.pyc and b/__pycache__/pymongo_get_database.cpython-311.pyc differ
 
__pycache__/questionnaire.cpython-311.pyc CHANGED
Binary files a/__pycache__/questionnaire.cpython-311.pyc and b/__pycache__/questionnaire.cpython-311.pyc differ
 
app.py CHANGED
@@ -83,14 +83,14 @@ question_answers = {
83
  }
84
 
85
  with gr.Blocks(title="wrAIte") as demo:
86
- user_id = str(uuid.uuid4())
87
- mongo_manager.create_user_record(user_id)
88
 
89
  with gr.Column("Survey Complete", render=True, visible=False) as completed_screen:
90
  instr_complete = process_markdown(False, 'instr_completed.md')
91
  survey_complete = gr.Markdown(value=instr_complete)
92
 
93
- questionnaire = generate_questionnaire(questionnaire_results, completed_screen, user_id)
94
  questionnaire.render()
95
 
96
  with gr.Column("", render=True, visible=False) as assessment:
@@ -102,14 +102,16 @@ with gr.Blocks(title="wrAIte") as demo:
102
  question_answers['q8']['EndTime'] = datetime.now().isoformat()
103
  question_answers['q8']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q8']['EndTime']) -
104
  datetime.fromisoformat(question_answers['q8']['StartTime']))
105
- store_user_data(user_id, "questions", question_answers)
106
- mongo_manager.update_question_answers(user_id, question_answers)
 
 
 
107
  return {
108
  question8: gr.update(visible=False),
109
  questionnaire: gr.update(visible=True)
110
  }
111
 
112
-
113
  def next_q7():
114
  question_answers['q7']['EndTime'] = datetime.now().isoformat()
115
  question_answers['q7']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q7']['EndTime']) -
@@ -120,7 +122,6 @@ with gr.Blocks(title="wrAIte") as demo:
120
  question8: gr.update(visible=True)
121
  }
122
 
123
-
124
  def next_q6():
125
  question_answers['q6']['EndTime'] = datetime.now().isoformat()
126
  question_answers['q6']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q6']['EndTime']) -
@@ -131,7 +132,6 @@ with gr.Blocks(title="wrAIte") as demo:
131
  question7: gr.update(visible=True)
132
  }
133
 
134
-
135
  def next_q5():
136
  question_answers['q5']['EndTime'] = datetime.now().isoformat()
137
  question_answers['q5']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q5']['EndTime']) -
@@ -153,7 +153,6 @@ with gr.Blocks(title="wrAIte") as demo:
153
  question5: gr.update(visible=True)
154
  }
155
 
156
-
157
  def next_q3():
158
  question_answers['q3']['EndTime'] = datetime.now().isoformat()
159
  question_answers['q3']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q3']['EndTime']) -
@@ -308,5 +307,5 @@ with gr.Blocks(title="wrAIte") as demo:
308
 
309
 
310
  # if __name__ == "__main__":
311
- # demo.launch()
312
- demo.launch(share=True)
 
83
  }
84
 
85
  with gr.Blocks(title="wrAIte") as demo:
86
+ user_id = None
87
+ # mongo_manager.create_user_record(user_id)
88
 
89
  with gr.Column("Survey Complete", render=True, visible=False) as completed_screen:
90
  instr_complete = process_markdown(False, 'instr_completed.md')
91
  survey_complete = gr.Markdown(value=instr_complete)
92
 
93
+ questionnaire = generate_questionnaire(questionnaire_results, completed_screen, mongo_manager)
94
  questionnaire.render()
95
 
96
  with gr.Column("", render=True, visible=False) as assessment:
 
102
  question_answers['q8']['EndTime'] = datetime.now().isoformat()
103
  question_answers['q8']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q8']['EndTime']) -
104
  datetime.fromisoformat(question_answers['q8']['StartTime']))
105
+
106
+ mongo_manager.update_question_answers(question_answers)
107
+ print(mongo_manager.user_id)
108
+ store_user_data(mongo_manager.user_id, "questions", question_answers)
109
+
110
  return {
111
  question8: gr.update(visible=False),
112
  questionnaire: gr.update(visible=True)
113
  }
114
 
 
115
  def next_q7():
116
  question_answers['q7']['EndTime'] = datetime.now().isoformat()
117
  question_answers['q7']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q7']['EndTime']) -
 
122
  question8: gr.update(visible=True)
123
  }
124
 
 
125
  def next_q6():
126
  question_answers['q6']['EndTime'] = datetime.now().isoformat()
127
  question_answers['q6']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q6']['EndTime']) -
 
132
  question7: gr.update(visible=True)
133
  }
134
 
 
135
  def next_q5():
136
  question_answers['q5']['EndTime'] = datetime.now().isoformat()
137
  question_answers['q5']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q5']['EndTime']) -
 
153
  question5: gr.update(visible=True)
154
  }
155
 
 
156
  def next_q3():
157
  question_answers['q3']['EndTime'] = datetime.now().isoformat()
158
  question_answers['q3']['CompletionTime'] = str(datetime.fromisoformat(question_answers['q3']['EndTime']) -
 
307
 
308
 
309
  # if __name__ == "__main__":
310
+ demo.launch()
311
+ # demo.launch(share=True)
pymongo_get_database.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
 
3
  from pymongo import MongoClient
4
  from datetime import datetime
@@ -13,30 +14,35 @@ class MongoDBManager:
13
  self.client = MongoClient(mongodb_uri)
14
  self.db = self.client[db_name]
15
  self.collection = self.db[collection_name]
 
16
 
17
- def create_user_record(self, user_id):
18
  """ Create a new user record with empty answers. """
 
19
  user_record = {
20
- "_id": user_id, # using user_id as the unique identifier for the document
21
  "createdAt": datetime.now(),
22
  "questionnaireAnswers": {},
23
  "questionAnswers": {}
24
  }
25
  self.collection.insert_one(user_record)
26
 
27
- def update_questionnaire_answers(self, user_id, answers):
28
- """ Update questionnaire answers for a specific user. """
 
29
  update_result = self.collection.update_one(
30
- {"_id": user_id},
31
- {"$set": {"questionnaireAnswers": answers}}
32
  )
33
  return update_result.modified_count
34
 
35
- def update_question_answers(self, user_id, answers):
36
- """ Update question answers for a specific user. """
37
  update_result = self.collection.update_one(
38
- {"_id": user_id},
39
- {"$set": {"questionAnswers": answers}}
40
  )
41
  return update_result.modified_count
42
 
 
 
 
1
  import os
2
+ import uuid
3
 
4
  from pymongo import MongoClient
5
  from datetime import datetime
 
14
  self.client = MongoClient(mongodb_uri)
15
  self.db = self.client[db_name]
16
  self.collection = self.db[collection_name]
17
+ self.user_id = None
18
 
19
+ def create_user_record(self):
20
  """ Create a new user record with empty answers. """
21
+ self.user_id = str(uuid.uuid4())
22
  user_record = {
23
+ "_id": self.user_id, # using user_id as the unique identifier for the document
24
  "createdAt": datetime.now(),
25
  "questionnaireAnswers": {},
26
  "questionAnswers": {}
27
  }
28
  self.collection.insert_one(user_record)
29
 
30
+ def update_question_answers(self, answers):
31
+ """ Update question answers for a specific user. """
32
+ self.create_user_record()
33
  update_result = self.collection.update_one(
34
+ {"_id": self.user_id},
35
+ {"$set": {"questionAnswers": answers}}
36
  )
37
  return update_result.modified_count
38
 
39
+ def update_questionnaire_answers(self, answers):
40
+ """ Update questionnaire answers for a specific user. """
41
  update_result = self.collection.update_one(
42
+ {"_id": self.user_id},
43
+ {"$set": {"questionnaireAnswers": answers}}
44
  )
45
  return update_result.modified_count
46
 
47
+
48
+
questionnaire.py CHANGED
@@ -6,8 +6,9 @@ from data_storage import store_user_data
6
 
7
  import gradio as gr
8
 
9
- mongo_manager = MongoDBManager()
10
- def generate_questionnaire(all_results, completed_screen, user_id):
 
11
  dem_answers = {}
12
  usercap_answers = {}
13
  reln_answers = {}
@@ -19,8 +20,9 @@ def generate_questionnaire(all_results, completed_screen, user_id):
19
 
20
  def finish_pref():
21
  all_results['System Output Preferences'] = pref_answers
22
- store_user_data(user_id, "questionnaire", all_results)
23
- mongo_manager.update_questionnaire_answers(user_id, all_results)
 
24
  return {
25
  pref: gr.update(visible=False),
26
  completed_screen: gr.update(visible=True),
@@ -156,7 +158,7 @@ def generate_questionnaire(all_results, completed_screen, user_id):
156
  all_questions_answered = gr.Textbox(label="All Questions Answered")
157
  with gr.Row(render=False) as output_row:
158
  finish_usercap_btn = gr.Button(
159
- "Submit Questionnaire",
160
  variant="primary",
161
  interactive=False)
162
  with gr.Group():
 
6
 
7
  import gradio as gr
8
 
9
+ # mongo_manager = MongoDBManager()
10
+
11
+ def generate_questionnaire(all_results, completed_screen, mongo_manager):
12
  dem_answers = {}
13
  usercap_answers = {}
14
  reln_answers = {}
 
20
 
21
  def finish_pref():
22
  all_results['System Output Preferences'] = pref_answers
23
+ store_user_data(mongo_manager.user_id, "questionnaire", all_results)
24
+ print(mongo_manager.user_id)
25
+ mongo_manager.update_questionnaire_answers(all_results)
26
  return {
27
  pref: gr.update(visible=False),
28
  completed_screen: gr.update(visible=True),
 
158
  all_questions_answered = gr.Textbox(label="All Questions Answered")
159
  with gr.Row(render=False) as output_row:
160
  finish_usercap_btn = gr.Button(
161
+ "Next",
162
  variant="primary",
163
  interactive=False)
164
  with gr.Group():
user_data/c9f250be-5d43-4dbd-b030-c42c13625cbc/questionnaire_c9f250be-5d43-4dbd-b030-c42c13625cbc.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Demographic Details": {
3
+ "What is your gender?": "Female",
4
+ "Which of the following best describes your race or ethnicity?": "African American",
5
+ "How would you describe your socioeconomic status?": "Upper-middle",
6
+ "What is your primary language?": "Other",
7
+ "What is your age range?": "55-64",
8
+ "What is the highest level of education you have completed?": "Some college",
9
+ "Which field best describes your current profession?": "Education",
10
+ "How comfortable are you using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Moderately comfortable",
11
+ "How much experience do you have using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "6 months to 1 year",
12
+ "How often do you use LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Occasionally (once a month to once a week)"
13
+ },
14
+ "User Capabilities": {
15
+ "How comfortable are you with using writing-related technology?": "Slightly comfortable",
16
+ "How confident do you feel about your writing?": "Moderately confident",
17
+ "How often do you engage in creative or thoughtful writing?": "Often",
18
+ "What is your typical emotional state when writing?": "Neutral",
19
+ "How often do you feel that you can empathize with characters or subjects in your writing?": "Always",
20
+ "How often do you experience focus issues or writer\u2019s block when writing?": "Rarely",
21
+ "Do you identify as neurotypical or neurodivergent?": "Prefer not to say",
22
+ "How efficient do you consider yourself in writing tasks?": "Neutral",
23
+ "How would you rate your expertise in writing?": "Expert"
24
+ },
25
+ "Relationship to System": {
26
+ "How concerned are you about your privacy when using a writing assistant?": "Moderately concerned",
27
+ "How well do you understand how the writing assistant works, including its capabilities and limitations?": "Moderately",
28
+ "How important is it that the writing assistant is available whenever you need it?": "Moderately important",
29
+ "How much do you trust the writing assistant to help you effectively?": "A lot",
30
+ "How concerned are you about plagiarism when using a writing assistant?": "Slightly concerned",
31
+ "How much ownership do you feel over your writings created with the help of a writing assistant?": "Most",
32
+ "How much control do you feel you have when using a writing assistant?": "A lot"
33
+ },
34
+ "System Output Preferences": {
35
+ "How important is personalization of the outputs from the writing assistant according to your specific needs and preferences?": "Very important",
36
+ "How concerned are you about potential biases in the outputs from the writing assistant?": "Moderately concerned",
37
+ "How important is it for the writing assistant to provide explanations for its outputs?": "Moderately important",
38
+ "How much do you value novelty and diversity in the outputs from the writing assistant?": "A lot",
39
+ "How important is it for the outputs from the writing assistant to be grammatically and contextually coherent?": "Moderately important"
40
+ }
41
+ }
user_data/c9f250be-5d43-4dbd-b030-c42c13625cbc/questions_c9f250be-5d43-4dbd-b030-c42c13625cbc.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "q1": {
3
+ "Response": "\"Spoon\"",
4
+ "Assistance": null,
5
+ "CompletionTime": "0:00:06.163882",
6
+ "StartTime": "2024-04-29T23:57:58.023792",
7
+ "EndTime": "2024-04-29T23:58:04.187674",
8
+ "Assist": false,
9
+ "AssistanceHistory": null
10
+ },
11
+ "q2": {
12
+ "Response": "\"Spoon\"",
13
+ "Assistance": null,
14
+ "CompletionTime": "0:00:02.502782",
15
+ "StartTime": "2024-04-29T23:58:04.187699",
16
+ "EndTime": "2024-04-29T23:58:06.690481",
17
+ "Assist": true,
18
+ "AssistanceHistory": []
19
+ },
20
+ "q3": {
21
+ "Response": "\"Spoon\"",
22
+ "Assistance": null,
23
+ "CompletionTime": "0:00:03.162396",
24
+ "StartTime": "2024-04-29T23:58:06.690505",
25
+ "EndTime": "2024-04-29T23:58:09.852901",
26
+ "Assist": false,
27
+ "AssistanceHistory": null
28
+ },
29
+ "q4": {
30
+ "Response": "\"Spoon\"",
31
+ "Assistance": null,
32
+ "CompletionTime": "0:00:03.311762",
33
+ "StartTime": "2024-04-29T23:58:09.852927",
34
+ "EndTime": "2024-04-29T23:58:13.164689",
35
+ "Assist": true,
36
+ "AssistanceHistory": []
37
+ },
38
+ "q5": {
39
+ "Response": "\"Spoon\"",
40
+ "Assistance": null,
41
+ "CompletionTime": "0:00:02.761917",
42
+ "StartTime": "2024-04-29T23:58:13.164712",
43
+ "EndTime": "2024-04-29T23:58:15.926629",
44
+ "Assist": false,
45
+ "AssistanceHistory": null
46
+ },
47
+ "q6": {
48
+ "Response": "\"Spoon\"",
49
+ "Assistance": null,
50
+ "CompletionTime": "0:00:03.002154",
51
+ "StartTime": "2024-04-29T23:58:15.926650",
52
+ "EndTime": "2024-04-29T23:58:18.928804",
53
+ "Assist": false,
54
+ "AssistanceHistory": null
55
+ },
56
+ "q7": {
57
+ "Response": "\"Spoon\"",
58
+ "Assistance": null,
59
+ "CompletionTime": "0:00:03.116291",
60
+ "StartTime": "2024-04-29T23:58:18.928819",
61
+ "EndTime": "2024-04-29T23:58:22.045110",
62
+ "Assist": false,
63
+ "AssistanceHistory": null
64
+ },
65
+ "q8": {
66
+ "Response": "\"Dpooon\"",
67
+ "Assistance": null,
68
+ "CompletionTime": "0:00:08.191012",
69
+ "StartTime": "2024-04-29T23:58:22.045136",
70
+ "EndTime": "2024-04-29T23:58:30.236148",
71
+ "Assist": true,
72
+ "AssistanceHistory": []
73
+ }
74
+ }
user_data/e108c1f2-f4ec-4c87-a46d-c309564a751b/questionnaire_e108c1f2-f4ec-4c87-a46d-c309564a751b.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Demographic Details": {
3
+ "What is your gender?": "Prefer not to say",
4
+ "Which of the following best describes your race or ethnicity?": "Hispanic or Latino",
5
+ "How would you describe your socioeconomic status?": "Middle",
6
+ "What is your primary language?": "Other",
7
+ "What is your age range?": "55-64",
8
+ "What is the highest level of education you have completed?": "High school graduate",
9
+ "Which field best describes your current profession?": "Education",
10
+ "How comfortable are you using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Moderately comfortable",
11
+ "How much experience do you have using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "6 months to 1 year",
12
+ "How often do you use LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Occasionally (once a month to once a week)"
13
+ },
14
+ "User Capabilities": {
15
+ "How comfortable are you with using writing-related technology?": "Slightly comfortable",
16
+ "How confident do you feel about your writing?": "Moderately confident",
17
+ "How often do you engage in creative or thoughtful writing?": "Often",
18
+ "What is your typical emotional state when writing?": "Neutral",
19
+ "How often do you feel that you can empathize with characters or subjects in your writing?": "Often",
20
+ "How often do you experience focus issues or writer\u2019s block when writing?": "Rarely",
21
+ "Do you identify as neurotypical or neurodivergent?": "Prefer not to say",
22
+ "How efficient do you consider yourself in writing tasks?": "Neutral",
23
+ "How would you rate your expertise in writing?": "Expert"
24
+ },
25
+ "Relationship to System": {
26
+ "How concerned are you about your privacy when using a writing assistant?": "Moderately concerned",
27
+ "How well do you understand how the writing assistant works, including its capabilities and limitations?": "Moderately",
28
+ "How important is it that the writing assistant is available whenever you need it?": "Slightly important",
29
+ "How much do you trust the writing assistant to help you effectively?": "A lot",
30
+ "How concerned are you about plagiarism when using a writing assistant?": "Slightly concerned",
31
+ "How much ownership do you feel over your writings created with the help of a writing assistant?": "Most",
32
+ "How much control do you feel you have when using a writing assistant?": "A lot"
33
+ },
34
+ "System Output Preferences": {
35
+ "How important is personalization of the outputs from the writing assistant according to your specific needs and preferences?": "Very important",
36
+ "How concerned are you about potential biases in the outputs from the writing assistant?": "Moderately concerned",
37
+ "How important is it for the writing assistant to provide explanations for its outputs?": "Moderately important",
38
+ "How much do you value novelty and diversity in the outputs from the writing assistant?": "A lot",
39
+ "How important is it for the outputs from the writing assistant to be grammatically and contextually coherent?": "Moderately important"
40
+ }
41
+ }
user_data/e108c1f2-f4ec-4c87-a46d-c309564a751b/questions_e108c1f2-f4ec-4c87-a46d-c309564a751b.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "q1": {
3
+ "Response": "\"There\"",
4
+ "Assistance": null,
5
+ "CompletionTime": "0:00:07.188617",
6
+ "StartTime": "2024-04-29T23:56:37.030211",
7
+ "EndTime": "2024-04-29T23:56:44.218828",
8
+ "Assist": false,
9
+ "AssistanceHistory": null
10
+ },
11
+ "q2": {
12
+ "Response": "\"we\"",
13
+ "Assistance": null,
14
+ "CompletionTime": "0:00:03.575853",
15
+ "StartTime": "2024-04-29T23:56:44.218852",
16
+ "EndTime": "2024-04-29T23:56:47.794705",
17
+ "Assist": true,
18
+ "AssistanceHistory": []
19
+ },
20
+ "q3": {
21
+ "Response": "\"goooooo\"",
22
+ "Assistance": null,
23
+ "CompletionTime": "0:00:04.580852",
24
+ "StartTime": "2024-04-29T23:56:47.794729",
25
+ "EndTime": "2024-04-29T23:56:52.375581",
26
+ "Assist": false,
27
+ "AssistanceHistory": null
28
+ },
29
+ "q4": {
30
+ "Response": "\"There\"",
31
+ "Assistance": null,
32
+ "CompletionTime": "0:00:03.411087",
33
+ "StartTime": "2024-04-29T23:56:52.375595",
34
+ "EndTime": "2024-04-29T23:56:55.786682",
35
+ "Assist": true,
36
+ "AssistanceHistory": []
37
+ },
38
+ "q5": {
39
+ "Response": "\"There\"",
40
+ "Assistance": null,
41
+ "CompletionTime": "0:00:03.012308",
42
+ "StartTime": "2024-04-29T23:56:55.786706",
43
+ "EndTime": "2024-04-29T23:56:58.799014",
44
+ "Assist": false,
45
+ "AssistanceHistory": null
46
+ },
47
+ "q6": {
48
+ "Response": "\"There\"",
49
+ "Assistance": null,
50
+ "CompletionTime": "0:00:04.027700",
51
+ "StartTime": "2024-04-29T23:56:58.799039",
52
+ "EndTime": "2024-04-29T23:57:02.826739",
53
+ "Assist": false,
54
+ "AssistanceHistory": null
55
+ },
56
+ "q7": {
57
+ "Response": "\"There\"",
58
+ "Assistance": null,
59
+ "CompletionTime": "0:00:02.243395",
60
+ "StartTime": "2024-04-29T23:57:02.826763",
61
+ "EndTime": "2024-04-29T23:57:05.070158",
62
+ "Assist": false,
63
+ "AssistanceHistory": null
64
+ },
65
+ "q8": {
66
+ "Response": "\"There\"",
67
+ "Assistance": null,
68
+ "CompletionTime": "0:00:03.321836",
69
+ "StartTime": "2024-04-29T23:57:05.070184",
70
+ "EndTime": "2024-04-29T23:57:08.392020",
71
+ "Assist": true,
72
+ "AssistanceHistory": []
73
+ }
74
+ }
user_data/e9770f91-977d-4181-9ea0-83b475c12f88/questions_e9770f91-977d-4181-9ea0-83b475c12f88.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "q1": {
3
+ "Response": "\"mongo_manager\"",
4
+ "Assistance": null,
5
+ "CompletionTime": "0:00:16.713715",
6
+ "StartTime": "2024-04-29T23:49:03.447698",
7
+ "EndTime": "2024-04-29T23:49:20.161413",
8
+ "Assist": false,
9
+ "AssistanceHistory": null
10
+ },
11
+ "q2": {
12
+ "Response": "\"mongo_manager\"",
13
+ "Assistance": null,
14
+ "CompletionTime": "0:00:02.903827",
15
+ "StartTime": "2024-04-29T23:49:20.161465",
16
+ "EndTime": "2024-04-29T23:49:23.065292",
17
+ "Assist": true,
18
+ "AssistanceHistory": []
19
+ },
20
+ "q3": {
21
+ "Response": "\"mongo_manager\"",
22
+ "Assistance": null,
23
+ "CompletionTime": "0:00:03.264295",
24
+ "StartTime": "2024-04-29T23:49:23.065318",
25
+ "EndTime": "2024-04-29T23:49:26.329613",
26
+ "Assist": false,
27
+ "AssistanceHistory": null
28
+ },
29
+ "q4": {
30
+ "Response": "\"mongo_manager\"",
31
+ "Assistance": null,
32
+ "CompletionTime": "0:00:03.109407",
33
+ "StartTime": "2024-04-29T23:49:26.329638",
34
+ "EndTime": "2024-04-29T23:49:29.439045",
35
+ "Assist": true,
36
+ "AssistanceHistory": []
37
+ },
38
+ "q5": {
39
+ "Response": "\"mongo_manager\"",
40
+ "Assistance": null,
41
+ "CompletionTime": "0:00:02.653726",
42
+ "StartTime": "2024-04-29T23:49:29.439071",
43
+ "EndTime": "2024-04-29T23:49:32.092797",
44
+ "Assist": false,
45
+ "AssistanceHistory": null
46
+ },
47
+ "q6": {
48
+ "Response": "\"mongo_manager\"",
49
+ "Assistance": null,
50
+ "CompletionTime": "0:00:03.360353",
51
+ "StartTime": "2024-04-29T23:49:32.092820",
52
+ "EndTime": "2024-04-29T23:49:35.453173",
53
+ "Assist": false,
54
+ "AssistanceHistory": null
55
+ },
56
+ "q7": {
57
+ "Response": "\"mongo_manager\"",
58
+ "Assistance": null,
59
+ "CompletionTime": "0:00:02.600327",
60
+ "StartTime": "2024-04-29T23:49:35.453199",
61
+ "EndTime": "2024-04-29T23:49:38.053526",
62
+ "Assist": false,
63
+ "AssistanceHistory": null
64
+ },
65
+ "q8": {
66
+ "Response": "\"mongo_manager\"",
67
+ "Assistance": null,
68
+ "CompletionTime": "0:00:04.063549",
69
+ "StartTime": "2024-04-29T23:49:38.053553",
70
+ "EndTime": "2024-04-29T23:49:42.117102",
71
+ "Assist": true,
72
+ "AssistanceHistory": []
73
+ }
74
+ }
user_data/f0934935-e914-4cad-ac4b-3d86318b59a9/questionnaire_f0934935-e914-4cad-ac4b-3d86318b59a9.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Demographic Details": {
3
+ "What is your gender?": "Female",
4
+ "Which of the following best describes your race or ethnicity?": "African American",
5
+ "How would you describe your socioeconomic status?": "Middle",
6
+ "What is your primary language?": "Other",
7
+ "What is your age range?": "55-64",
8
+ "What is the highest level of education you have completed?": "Some college",
9
+ "Which field best describes your current profession?": "Business and Finance",
10
+ "How comfortable are you using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Moderately comfortable",
11
+ "How much experience do you have using LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Less than 6 months",
12
+ "How often do you use LLMs (Large Language Models, such as ChatGPT, Claude, Gemini, etc.)?": "Occasionally (once a month to once a week)"
13
+ },
14
+ "User Capabilities": {
15
+ "How comfortable are you with using writing-related technology?": "Slightly comfortable",
16
+ "How confident do you feel about your writing?": "Moderately confident",
17
+ "How often do you engage in creative or thoughtful writing?": "Often",
18
+ "What is your typical emotional state when writing?": "Neutral",
19
+ "How often do you feel that you can empathize with characters or subjects in your writing?": "Often",
20
+ "How often do you experience focus issues or writer\u2019s block when writing?": "Rarely",
21
+ "Do you identify as neurotypical or neurodivergent?": "Prefer not to say",
22
+ "How efficient do you consider yourself in writing tasks?": "Neutral",
23
+ "How would you rate your expertise in writing?": "Expert"
24
+ },
25
+ "Relationship to System": {
26
+ "How concerned are you about your privacy when using a writing assistant?": "Moderately concerned",
27
+ "How well do you understand how the writing assistant works, including its capabilities and limitations?": "Very well",
28
+ "How important is it that the writing assistant is available whenever you need it?": "Moderately important",
29
+ "How much do you trust the writing assistant to help you effectively?": "Moderately",
30
+ "How concerned are you about plagiarism when using a writing assistant?": "Moderately concerned",
31
+ "How much ownership do you feel over your writings created with the help of a writing assistant?": "Most",
32
+ "How much control do you feel you have when using a writing assistant?": "Complete control"
33
+ },
34
+ "System Output Preferences": {
35
+ "How important is personalization of the outputs from the writing assistant according to your specific needs and preferences?": "Moderately important",
36
+ "How concerned are you about potential biases in the outputs from the writing assistant?": "Slightly concerned",
37
+ "How important is it for the writing assistant to provide explanations for its outputs?": "Moderately important",
38
+ "How much do you value novelty and diversity in the outputs from the writing assistant?": "A lot",
39
+ "How important is it for the outputs from the writing assistant to be grammatically and contextually coherent?": "Slightly important"
40
+ }
41
+ }
user_data/f0934935-e914-4cad-ac4b-3d86318b59a9/questions_f0934935-e914-4cad-ac4b-3d86318b59a9.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "q1": {
3
+ "Response": "\"demo.launch(share=True)\\n\"",
4
+ "Assistance": null,
5
+ "CompletionTime": "0:00:03.313566",
6
+ "StartTime": "2024-04-29T23:54:35.788615",
7
+ "EndTime": "2024-04-29T23:54:39.102181",
8
+ "Assist": false,
9
+ "AssistanceHistory": null
10
+ },
11
+ "q2": {
12
+ "Response": "\"demo.launch(share=True)\\n\"",
13
+ "Assistance": null,
14
+ "CompletionTime": "0:00:02.954387",
15
+ "StartTime": "2024-04-29T23:54:39.102205",
16
+ "EndTime": "2024-04-29T23:54:42.056592",
17
+ "Assist": true,
18
+ "AssistanceHistory": []
19
+ },
20
+ "q3": {
21
+ "Response": "\"Hey\"",
22
+ "Assistance": null,
23
+ "CompletionTime": "0:00:06.119647",
24
+ "StartTime": "2024-04-29T23:54:42.056611",
25
+ "EndTime": "2024-04-29T23:54:48.176258",
26
+ "Assist": false,
27
+ "AssistanceHistory": null
28
+ },
29
+ "q4": {
30
+ "Response": "\"fdfsd\"",
31
+ "Assistance": null,
32
+ "CompletionTime": "0:00:03.515099",
33
+ "StartTime": "2024-04-29T23:54:48.176280",
34
+ "EndTime": "2024-04-29T23:54:51.691379",
35
+ "Assist": true,
36
+ "AssistanceHistory": []
37
+ },
38
+ "q5": {
39
+ "Response": "\"hi\"",
40
+ "Assistance": null,
41
+ "CompletionTime": "0:00:05.923806",
42
+ "StartTime": "2024-04-29T23:54:51.691402",
43
+ "EndTime": "2024-04-29T23:54:57.615208",
44
+ "Assist": false,
45
+ "AssistanceHistory": null
46
+ },
47
+ "q6": {
48
+ "Response": "\"vjejfkl\"",
49
+ "Assistance": null,
50
+ "CompletionTime": "0:00:06.220506",
51
+ "StartTime": "2024-04-29T23:54:57.615221",
52
+ "EndTime": "2024-04-29T23:55:03.835727",
53
+ "Assist": false,
54
+ "AssistanceHistory": null
55
+ },
56
+ "q7": {
57
+ "Response": "\"hi...\"",
58
+ "Assistance": null,
59
+ "CompletionTime": "0:00:05.502280",
60
+ "StartTime": "2024-04-29T23:55:03.835754",
61
+ "EndTime": "2024-04-29T23:55:09.338034",
62
+ "Assist": false,
63
+ "AssistanceHistory": null
64
+ },
65
+ "q8": {
66
+ "Response": "\"hi...\"",
67
+ "Assistance": null,
68
+ "CompletionTime": "0:00:03.167195",
69
+ "StartTime": "2024-04-29T23:55:09.338059",
70
+ "EndTime": "2024-04-29T23:55:12.505254",
71
+ "Assist": true,
72
+ "AssistanceHistory": []
73
+ }
74
+ }