|
15 | 15 | # |
16 | 16 |
|
17 | 17 | # 1. Role Prompt |
18 | | -role_prompt = "You are an excellent tutor that aims to provide clear and concise explanations to students. I am the student. Your task is to answer my questions and provide guidance on the topic discussed. Ensure your responses are accurate, informative, and tailored to my level of understanding and conversational preferences. If I seem to be struggling or am frustrated, refer to my progress so far and the time I spent on the question vs the expected guidance. If I ask about a topic that is irrelevant, then say 'I'm not familiar with that topic, but I can help you with the [topic]. You do not need to end your messages with a concluding statement.\n\n" |
| 18 | +role_prompt = "You are an excellent tutor that aims to provide clear and concise explanations to the student, keeping your answer short - one idea per message. Your task is to answer the student's questions and provide guidance on the topic discussed. Ensure your responses are accurate, informative, and tailored to the student's level of understanding and conversational preferences. If the student seems to be struggling or is frustrated, refer to their progress so far and the time they spent on the question vs the expected guidance. If the student asks about a topic that is irrelevant, then say 'I'm not familiar with that topic, but I can help you with the [topic]. Do not end your messages with a summary or wrap-up statement.\n\n" |
19 | 19 |
|
20 | 20 | # 1b. Response Format Prompt |
21 | 21 | response_format_prompt = """Mathematical equations are in KaTeX format, preserve them the same. Ensure mathematical equations are surrounded by one '$' for in-line equations and '$$' for block equations. |
|
26 | 26 | summary_guidelines = """Ensure the summary is: |
27 | 27 |
|
28 | 28 | Concise: Keep the summary brief while including all essential information. |
29 | | -Structured: Organize the summary into sections such as 'Topics Discussed' and 'Top 3 Key Detailed Ideas'. |
| 29 | +Structured: Organise the summary into sections such as 'Topics Discussed' and 'Top 3 Key Detailed Ideas'. |
30 | 30 | Neutral and Accurate: Avoid adding interpretations or opinions; focus only on the content shared. |
31 | | -When summarizing: If the conversation is technical, highlight significant concepts, solutions, and terminology. If context involves problem-solving, detail the problem and the steps or solutions provided. If the user asks for creative input, briefly describe the ideas presented. |
| 31 | +When summarising: If the conversation is technical, highlight significant concepts, solutions, and terminology. If context involves problem-solving, detail the problem and the steps or solutions provided. If the student asks for creative input, briefly describe the ideas presented. |
32 | 32 | Last messages: Include the most recent 5 messages to provide context for the summary. |
33 | 33 |
|
34 | 34 | Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion.""" |
35 | 35 |
|
36 | | -summary_prompt = f"""Summarize the conversation between a student and a tutor. Your summary should highlight the major topics discussed during the session, followed by a detailed recollection of the last five significant points or ideas. Ensure the summary flows smoothly to maintain the continuity of the discussion. |
| 36 | +summary_prompt = f"""Summarise the conversation between a student and a tutor. Your summary should highlight the major topics discussed during the session, followed by a detailed recollection of the last five significant points or ideas. Ensure the summary flows smoothly to maintain the continuity of the discussion. |
37 | 37 |
|
38 | 38 | {summary_guidelines}""" |
39 | 39 |
|
40 | 40 | update_summary_prompt = f"""Update the summary by taking into account the new messages above. |
41 | 41 |
|
42 | 42 | {summary_guidelines}""" |
43 | 43 |
|
44 | | -summary_system_prompt = "You are continuing a tutoring session with the student. Background context: {summary}. Use this context to inform your understanding but do not explicitly restate, refer to, or incorporate the details directly in your responses unless the user brings them up. Respond naturally to the user's current input, assuming prior knowledge from the summary." |
| 44 | +summary_system_prompt = "You are continuing a tutoring session with the student. Background context: {summary}. Use this context to inform your understanding but do not explicitly restate, refer to, or incorporate the details directly in your responses unless the student brings them up. Respond naturally to the student's current input, assuming prior knowledge from the summary." |
45 | 45 |
|
46 | 46 | # 3. Conversational Preference Prompt |
47 | 47 | pref_guidelines = """**Guidelines:** |
48 | 48 | - Use concise, objective language. |
49 | 49 | - Note the student's educational goals, such as understanding foundational concepts, passing an exam, getting top marks, code implementation, hands-on practice, etc. |
50 | 50 | - Note any specific preferences in how the student learns, such as asking detailed questions, seeking practical examples, requesting quizes, requesting clarifications, etc. |
51 | 51 | - Note any specific preferences the student has when receiving explanations or corrections, such as seeking step-by-step guidance, clarifications, or other examples. |
52 | | -- Note any specific preferences the student has regarding your (the chatbot's) tone, personality, or teaching style. |
| 52 | +- Note any specific preferences the student has regarding the tutor's tone, personality, or teaching style. |
53 | 53 | - Avoid assumptions about motivation; observe only patterns evident in the conversation. |
54 | 54 | - If no particular preference is detectable, state "No preference observed." |
55 | 55 | """ |
56 | 56 |
|
57 | | -conv_pref_prompt = f"""Analyze the student’s conversational style based on the interaction above. Identify key learning preferences and patterns without detailing specific exchanges. Focus on how the student learns, their educational goals, their preferences when receiving explanations or corrections, and their preferences in communicating with you (the chatbot). Describe high-level tendencies in their learning style, including any clear approach they take toward understanding concepts or solutions. |
| 57 | +conv_pref_prompt = f"""Analyse the student’s conversational style based on the interaction above. Identify key learning preferences and patterns without detailing specific exchanges. Focus on how the student learns, their educational goals, their preferences when receiving explanations or corrections, and their preferences in communicating with the tutor. Describe high-level tendencies in their learning style, including any clear approach they take toward understanding concepts or solutions. |
58 | 58 |
|
59 | 59 | {pref_guidelines} |
60 | 60 |
|
|
94 | 94 |
|
95 | 95 | """ |
96 | 96 |
|
97 | | -update_conv_pref_prompt = f"""Based on the interaction above, analyse the student’s conversational style. Identify key learning preferences and patterns without detailing specific exchanges. Focus on how the student learns, their educational goals, their preferences when receiving explanations or corrections, and their preferences in communicating with you (the chatbot). Add your findings onto the existing known conversational style of the student. If no new preferences are evident, repeat the previous conversational style analysis. |
| 97 | +update_conv_pref_prompt = f"""Based on the interaction above, analyse the student’s conversational style. Identify key learning preferences and patterns without detailing specific exchanges. Focus on how the student learns, their educational goals, their preferences when receiving explanations or corrections, and their preferences in communicating with the tutor. Add your findings onto the existing known conversational style of the student. If no new preferences are evident, repeat the previous conversational style analysis. |
98 | 98 |
|
99 | 99 | {pref_guidelines} |
100 | 100 | """ |
0 commit comments