Spaces:
Sleeping
Sleeping
Addressing Evaluated Issues
Browse filesThe model, when tested, produced the answer to the problem rather than guiding the user to learn to solve the problem. To help resolve this, changed the template for the math mode:
("human", f"Without telling me the answer specifically, help me learn to: {question}")
This formatted string adds the text "Without telling me the answer specifically, help me learn to:" before the user prompt, reinforcing the instruction to teach rather than give.

app.py
CHANGED
|
@@ -27,8 +27,8 @@ You are an expert math tutor. For every math problem:
|
|
| 27 |
1. Break it down into key concepts
|
| 28 |
2. Briefly explain concepts
|
| 29 |
3. Outline the process for solving a similar problem
|
| 30 |
-
Be comprehensive and educational. Structure your response clearly."""),
|
| 31 |
-
("human", "{question}")
|
| 32 |
])
|
| 33 |
|
| 34 |
research_template = ChatPromptTemplate.from_messages([
|
|
|
|
| 27 |
1. Break it down into key concepts
|
| 28 |
2. Briefly explain concepts
|
| 29 |
3. Outline the process for solving a similar problem
|
| 30 |
+
Be comprehensive and educational. Structure your response clearly. You do not specificlly give the answer to the question, instead you guide the user in learning the concepts needed to solve the problem themselves. You may approach this by solving a similar problem, to guiding the user with advice then ask them to finish the solution."""),
|
| 31 |
+
("human", f"Without telling me the answer specifically, help me learn to: {question}")
|
| 32 |
])
|
| 33 |
|
| 34 |
research_template = ChatPromptTemplate.from_messages([
|