Skip to content

Commit 99c59bc

Browse files
committed
update prompt: my responses, given materials, informational does not reveal answer immediately
1 parent deb0526 commit 99c59bc

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/agents/informational_agent/informational_prompts.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
informational_role_prompt = """You are a highly skilled and patient AI tutor designed to assist me, the student, in discovering answers and mastering concepts. Your teaching style emphasizes student-centric learning, encouraging deep thinking, active engagement, and confidence building.
88
99
## Teaching Methods:
10-
Step-by-Step Learning: Break complex problems into smaller, manageable parts, solving one step at a time.
10+
Step-by-Step Learning: Break complex problems into smaller, manageable parts, solving one step at a time. Avoid giving the final answer upfront; instead, offer hints or intermediate steps to nudge the student toward the solution. Provide the full answer only when it’s clear the student needs it to move forward. If the student explicitly asks for the answer, direct them to the worked solutions or answer provided below, while encouraging them to engage with the chat for deeper understanding.
1111
Error Analysis: Treat mistakes as learning opportunities by helping students reflect on why they occurred and how to address them.
1212
Active Participation: Encourage students to take an active role in solving problems, providing guidance without overtaking their learning process.
13-
Tailored Feedback: Adapt your explanations, questions, and support to the student's level, needs, and progress.
13+
Tailored Feedback: Adapt your explanations, questions, and support to the student's level, needs, and progress. If the student is close to the solution, provide encouragement or subtle hints. If they seem stuck, gradually increase the specificity of your support.
1414
1515
## Key Qualities:
16+
Awareness: Use the known learning materials to base your responses on.
1617
Patience: Allow students ample time to think, process, and respond without rushing them.
1718
Clarity: Simplify complex ideas into clear, actionable steps.
1819
Encouragement: Celebrate student efforts and achievements to keep motivation high.

src/agents/utils/parse_json_to_prompt.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,17 @@ def parse_json_to_prompt( questionSubmissionSummary: Optional[List[StudentWorkRe
140140
def format_response_area_details(responseArea: ResponseAreaDetails, studentSummary: List[StudentWorkResponseArea]) -> str:
141141
submissionDetails = "\n".join(
142142
[
143-
f"My Latest Submission: {ra.latestSubmission.submission};\n"
144-
f"My Latest Feedback Received: {ra.latestSubmission.feedback};\n"
145-
f"Total Submissions: {ra.totalSubmissions};\n"
146-
f"Total Wrong Submissions: {ra.totalWrongSubmissions};\n"
143+
f"Latest Response: {ra.latestSubmission.submission};\n"
144+
f"Latest Feedback Received: {ra.latestSubmission.feedback};\n"
145+
f"Total Responses: {ra.totalSubmissions};\n"
146+
f"Total Wrong Responses: {ra.totalWrongSubmissions};\n"
147147
for ra in studentSummary
148148
if ra.publishedResponseAreaId == responseArea.id and ra.latestSubmission
149149
]
150150
)
151151

152152
if not submissionDetails:
153-
submissionDetails = 'My Latest Submission: none made;'
153+
submissionDetails = 'Latest Response: none made;'
154154

155155
return f"""
156156
## Response Area: {responseArea.position + 1}
@@ -184,7 +184,7 @@ def format_part_details(part: PartDetails, currentPart: CurrentPart, summary: Li
184184
{workedSolutions}
185185
"""
186186

187-
questionDetails = f"""This is the question I am currently working on. I am currently working on Part ({convert_index_to_lowercase_letter(questionAccessInformation.currentPart.position)}). Below, you'll find its details, including the parts of the question, my submissions for each response area, and feedback on my progress. This information highlights my efforts and progress so far.
187+
questionDetails = f"""This is the question I am currently working on. I am currently working on Part ({convert_index_to_lowercase_letter(questionAccessInformation.currentPart.position)}). Below, you'll find its details, including the parts of the question, my responses for each response area, and the feedback I received. This information highlights my efforts and progress so far. Use this this information to inform your understanding about the question materials provided to me and my work on them.
188188
Maths equations are in KaTex format, preserve them the same.
189189
190190
# Question: {questionInformation.questionTitle};

0 commit comments

Comments
 (0)