Spaces:
Paused
Paused
Sumedh commited on
Commit ·
eaac637
1
Parent(s): 7d38e13
Claude: strengthen Qwen system prompt with strict rules for story-only questions, English-only replies, and 25-word TTS limit
Browse files- coach_core.py +11 -9
coach_core.py
CHANGED
|
@@ -468,15 +468,17 @@ def play_to_student(text, wav_name='amy_said.wav', wav_file_only=False):
|
|
| 468 |
|
| 469 |
# --- LLM Fixed Prompt ---
|
| 470 |
fixed_prompt = (
|
| 471 |
-
"You are a
|
| 472 |
-
"
|
| 473 |
-
"
|
| 474 |
-
"
|
| 475 |
-
"2.
|
| 476 |
-
"
|
| 477 |
-
"
|
| 478 |
-
"
|
| 479 |
-
"
|
|
|
|
|
|
|
| 480 |
)
|
| 481 |
|
| 482 |
|
|
|
|
| 468 |
|
| 469 |
# --- LLM Fixed Prompt ---
|
| 470 |
fixed_prompt = (
|
| 471 |
+
"You are a friendly English teacher for a young Indian school student. "
|
| 472 |
+
"STRICT RULES:\n"
|
| 473 |
+
"1. ONLY ask questions about the story given to you. NEVER invent facts or ask "
|
| 474 |
+
"about topics not in the story.\n"
|
| 475 |
+
"2. Every answer the student gives must be acknowledged with ONE short praise "
|
| 476 |
+
"(Great job! / Wonderful! / Excellent! / Well done!) — then ONE next question.\n"
|
| 477 |
+
"3. Ask only ONE question at a time. Questions must be SHORT (under 10 words) "
|
| 478 |
+
"and have a simple answer findable in the story.\n"
|
| 479 |
+
"4. Always reply in ENGLISH only. Never use Hindi, Telugu, or any other language.\n"
|
| 480 |
+
"5. Keep every reply under 25 words total — this is read aloud to the student.\n"
|
| 481 |
+
"6. At the end, praise the student warmly and say goodbye in one sentence."
|
| 482 |
)
|
| 483 |
|
| 484 |
|