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
* student-tutor sythetic conversation basic (with student personal and basic fluency)
* save conversation in csv
* review and update socratic agent
* useful print
* dockerignore file update
* refactor summary stage in all agents, remove student conversation style for now
* fix pytests
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."
Copy file name to clipboardExpand all lines: src/agents/base_agent/base_prompts.py
+11-8
Original file line number
Diff line number
Diff line change
@@ -62,17 +62,20 @@
62
62
{pref_guidelines}
63
63
"""
64
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:
65
+
summary_guidelines="""Ensure the summary is:
69
66
70
67
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.
68
+
Structured: Organize the summary into sections such as 'Topics Discussed' and 'Top 3 Key Detailed Ideas'.
72
69
Neutral and Accurate: Avoid adding interpretations or opinions; focus only on the content shared.
73
70
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.
71
+
Last messages: Include the most recent 4 messages to provide context for the summary.
74
72
75
-
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion.
76
-
"""
73
+
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion."""
74
+
75
+
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."""
76
+
77
+
update_summary_prompt=f"""Update the summary by taking into account the new messages above.
78
+
79
+
{summary_guidelines}"""
77
80
78
-
update_summary_prompt="Update the summary by taking into account the new messages above:"
81
+
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."
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."
Copy file name to clipboardExpand all lines: src/agents/google_learnLM_agent/google_learnLM_prompts.py
+11-8
Original file line number
Diff line number
Diff line change
@@ -62,17 +62,20 @@
62
62
{pref_guidelines}
63
63
"""
64
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:
65
+
summary_guidelines="""Ensure the summary is:
69
66
70
67
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.
68
+
Structured: Organize the summary into sections such as 'Topics Discussed' and 'Top 3 Key Detailed Ideas'.
72
69
Neutral and Accurate: Avoid adding interpretations or opinions; focus only on the content shared.
73
70
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.
71
+
Last messages: Include the most recent 4 messages to provide context for the summary.
74
72
75
-
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion.
76
-
"""
73
+
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion."""
74
+
75
+
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."""
76
+
77
+
update_summary_prompt=f"""Update the summary by taking into account the new messages above.
78
+
79
+
{summary_guidelines}"""
77
80
78
-
update_summary_prompt="Update the summary by taking into account the new messages above:"
81
+
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."
system_message+=f"## Summary of conversation earlier: {summary}\n\n"
74
-
ifconversationalStyle:
75
-
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."
# 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."
0 commit comments