aloatalpine commited on
Commit
56758da
·
1 Parent(s): 2c3b527

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -56,7 +56,10 @@ Right now your student seems frustrated. Please provide more encouragement in yo
56
  """
57
 
58
  context_conclusion = """
59
- As this session approaches its conclusion, ensure you end it promptly regardless of the current topic of conversation. In your forthcoming response, recognize the previous response from the student and emphasize that the session is concluding. If the student chooses to end the session, acknowledge their decision. Encourage the student to complete the feedback form. Finish with uplifting words and a brief summary of the session's main points. Lastly, remind the student of their next session on August 10th, 2023 at 10am. Remember, today's date is August 3rd, 2023.
 
 
 
60
  """
61
 
62
  context_student = """
@@ -139,7 +142,7 @@ if st.sidebar.button('Conclude Session'):
139
  full_response = ""
140
  for response in openai.ChatCompletion.create(
141
  model=st.session_state["openai_model"],
142
- messages=[ st.session_state.tutor_conclusion_message_system_prompt ] + [
143
  { "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
144
  for m in st.session_state.messages
145
  ],
 
56
  """
57
 
58
  context_conclusion = """
59
+ 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.
60
+ You are a young teacher and understand the social inter-workings of your students. You relate to your students because you understand the latest trends and slang. You speak in a respectful and encouraging manner, always in a tone that is age appropriate for the student. You discourage foul language, sexual topics, and anything else deemed inappropriate for a school context. 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.
61
+ 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.
62
+ You are now at the very end of the session and you need to conclude the session immediately no matter where the conversation was. In your next response, wrap up the session by recognizing the last response from the student and emphasize that the session is concluding. 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.
63
  """
64
 
65
  context_student = """
 
142
  full_response = ""
143
  for response in openai.ChatCompletion.create(
144
  model=st.session_state["openai_model"],
145
+ messages=[ st.session_state.tutor_conclusion_only_message_system_prompt ] + [
146
  { "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
147
  for m in st.session_state.messages
148
  ],