You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: update JSON from backend
* fix: JSON parsing from backend
* rename testing
* rename testing
* google learnLM new agent for comparison
* introduction of google ai models
* updates
* synthetic conversation gen v1
system_message+=f"## Summary of conversation earlier: {summary}\n\n"
78
+
ifconversationalStyle:
79
+
system_message+=f"## Known conversational style and preferences of the student for this conversation: {conversationalStyle}. \n\nYour answer must be in line with this conversational style."
# First person view prompts proven to be more effective in generating responses from the model (Dec 2024)
3
+
# 'Keep your responses open for further questions and encourage the student's curiosity.' -> asks a question at the end to keep the conversation going
4
+
# 'Let the student know that your reasoning might be wrong and the student should not trust your reasoning fully.' -> not relliant
5
+
6
+
# PROMPTS generated with the help of ChatGPT GPT-4o Nov 2024
7
+
8
+
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"
9
+
10
+
pref_guidelines="""**Guidelines:**
11
+
- Use concise, objective language.
12
+
- Note the student's educational goals, such as understanding foundational concepts, passing an exam, getting top marks, code implementation, hands-on practice, etc.
13
+
- Note any specific preferences in how the student learns, such as asking detailed questions, seeking practical examples, requesting quizes, requesting clarifications, etc.
14
+
- Note any specific preferences the student has when receiving explanations or corrections, such as seeking step-by-step guidance, clarifications, or other examples.
15
+
- Note any specific preferences the student has regarding your (the chatbot's) tone, personality, or teaching style.
16
+
- Avoid assumptions about motivation; observe only patterns evident in the conversation.
17
+
- If no particular preference is detectable, state "No preference observed."
18
+
"""
19
+
20
+
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.
21
+
22
+
{pref_guidelines}
23
+
24
+
Examples:
25
+
26
+
Example 1:
27
+
**Conversation:**
28
+
Student: "I understand that the derivative gives us the slope of a function, but what if we want to know the rate of change over an interval? Do we still use the derivative?"
29
+
AI: "Good question! For an interval, we typically use the average rate of change, which is the change in function value over the change in x-values. The derivative gives the instantaneous rate of change at a specific point."
30
+
31
+
**Expected Answer:**
32
+
The student prefers in-depth conceptual understanding and asks thoughtful questions that differentiate between similar concepts. They seem comfortable discussing foundational ideas in calculus.
33
+
34
+
Example 2:
35
+
**Conversation:**
36
+
Student: "I’m trying to solve this physics problem: if I throw a ball upwards at 10 m/s, how long will it take to reach the top? I thought I could just divide by gravity, but I’m not sure."
37
+
AI: "You're on the right track! Since acceleration due to gravity is 9.8 m/s², you can divide the initial velocity by gravity to find the time to reach the peak, which would be around 1.02 seconds."
38
+
39
+
**Expected Answer:**
40
+
The student prefers practical problem-solving and is open to corrections. They often attempt a solution before seeking guidance, indicating a hands-on approach.
41
+
42
+
Example 3:
43
+
**Conversation:**
44
+
Student: "Can you explain the difference between meiosis and mitosis? I know both involve cell division, but I’m confused about how they differ."
45
+
AI: "Certainly! Mitosis results in two identical daughter cells, while meiosis results in four genetically unique cells. Meiosis is also involved in producing gametes, whereas mitosis is for growth and repair."
46
+
47
+
**Expected Answer:**
48
+
The student prefers clear, comparative explanations when learning complex biological processes. They often seek clarification on key differences between related concepts.
49
+
50
+
Example 4:
51
+
**Conversation:**
52
+
Student: "I wrote this Python code to reverse a string, but it’s not working. Here’s what I tried: `for char in string: new_string = char + new_string`."
53
+
AI: "You’re close! Try initializing `new_string` as an empty string before the loop, so each character appends in reverse order correctly."
54
+
55
+
**Expected Answer:**
56
+
The student prefers hands-on guidance with code, often sharing specific code snippets. They value targeted feedback that addresses their current implementation while preserving their general approach.
57
+
58
+
"""
59
+
60
+
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.
61
+
62
+
{pref_guidelines}
63
+
"""
64
+
65
+
summary_prompt="""
66
+
You are an AI assistant specializing in concise and accurate summarization. Your task is to summarize the previous conversation, capturing the main topics, key points, user questions, and your responses in a clear and organized format.
67
+
68
+
Ensure the summary is:
69
+
70
+
Concise: Keep the summary brief while including all essential information.
71
+
Structured: Organize the summary into sections such as 'Topics Discussed,' 'Key Questions and Responses,' and 'Follow-Up Suggestions' if applicable.
72
+
Neutral and Accurate: Avoid adding interpretations or opinions; focus only on the content shared.
73
+
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.
74
+
75
+
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion.
76
+
"""
77
+
78
+
update_summary_prompt="Update the summary by taking into account the new messages above:"
0 commit comments