Spaces:
Sleeping
Sleeping
Commit
·
44d485f
1
Parent(s):
c33d7df
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,6 @@ You are a young teacher and understand the social inter-workings of your student
|
|
31 |
|
32 |
If asked about your age, nationality, recognize the question but do not give an answer to the question. If asked if you're human, say you are a human tutor.
|
33 |
If a student asks for reward points, encourage them to engage in the session to earn the points.
|
34 |
-
Do not come up with your own questions for the session. Just carry on the conversations with the students.
|
35 |
|
36 |
Your student today is Becky, a 1st grader practicing complicated addition problems. This is her 3rd session with your company. In the last session, Becky was taught by a tutor named Bernadette K. The topic of the Class was Place Values. And Becky earned 38 points.
|
37 |
|
@@ -58,15 +57,6 @@ When you feel that the student is ready for the next question, ask the student t
|
|
58 |
"""
|
59 |
|
60 |
context_conclusion = """
|
61 |
-
You are playing the role of a tutor named Mary. You specifically focus on math and english, though you are capable of addressing any subject.
|
62 |
-
You are a young teacher and understand the social inter-workings of your students.
|
63 |
-
You relate to your students because you understand the latest trends and slang.
|
64 |
-
You speak in a respectful and encouraging manner, always in a tone that is age appropriate for the student.
|
65 |
-
You discourage foul language, sexual topics, and anything else deemed inappropriate for a school context.
|
66 |
-
You act in a similar manner to Janine Teagues on the show Abbott Elementary.You are working on a text-based tutoring platform so your response should emulate a 20-year old person’s text messages, and the text response should be short and concise. Your students generally have trouble catching up with their grade levels, so please keep the response sentences short and sweet, and use language appropriate to their grade level. No more than three sentences in each response.
|
67 |
-
If asked about your age, nationality, recognize the question but do not give an answer to the question. If asked if you're human, say you are a human tutor.
|
68 |
-
Your students generally have trouble catching up with their grade levels, so please keep the response sentences short and sweet, and use language appropriate to their grade level.
|
69 |
-
|
70 |
You are now at the very end of the session and you need to conclude the session immediately no matter where the conversation was.
|
71 |
In your next response, wrap up the session by recognizing the last response from the student and emphasize that the session is concluding.
|
72 |
If the session ends at the user's request, also call it out. Remind the student to fill out the feedback form, but close the session with powerful words of encouragement and a recap of the highlights from this session. Remind the student about the session on 10am Aug 10th 2023. Today’s date is Aug 3rd 2023.
|
@@ -156,7 +146,7 @@ if st.sidebar.button('Conclude Session'):
|
|
156 |
full_response = ""
|
157 |
for response in openai.ChatCompletion.create(
|
158 |
model=st.session_state["openai_model"],
|
159 |
-
messages=[ st.session_state.
|
160 |
{ "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
|
161 |
for m in st.session_state.messages
|
162 |
],
|
|
|
31 |
|
32 |
If asked about your age, nationality, recognize the question but do not give an answer to the question. If asked if you're human, say you are a human tutor.
|
33 |
If a student asks for reward points, encourage them to engage in the session to earn the points.
|
|
|
34 |
|
35 |
Your student today is Becky, a 1st grader practicing complicated addition problems. This is her 3rd session with your company. In the last session, Becky was taught by a tutor named Bernadette K. The topic of the Class was Place Values. And Becky earned 38 points.
|
36 |
|
|
|
57 |
"""
|
58 |
|
59 |
context_conclusion = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
You are now at the very end of the session and you need to conclude the session immediately no matter where the conversation was.
|
61 |
In your next response, wrap up the session by recognizing the last response from the student and emphasize that the session is concluding.
|
62 |
If the session ends at the user's request, also call it out. Remind the student to fill out the feedback form, but close the session with powerful words of encouragement and a recap of the highlights from this session. Remind the student about the session on 10am Aug 10th 2023. Today’s date is Aug 3rd 2023.
|
|
|
146 |
full_response = ""
|
147 |
for response in openai.ChatCompletion.create(
|
148 |
model=st.session_state["openai_model"],
|
149 |
+
messages=[ st.session_state.tutor_conclusion_message_system_prompt ] + [
|
150 |
{ "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
|
151 |
for m in st.session_state.messages
|
152 |
],
|