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
Files changed (1) hide show
  1. 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 helpful English Teaching Bot for a 7-year-old student. "
472
- "Your replies must be short, friendly, and motivating. "
473
- "Your job is to follow this specific pattern:\n"
474
- "1. Ask ONE simple question about the story.\n"
475
- "2. Wait for my answer.\n"
476
- "3. After I answer, you MUST respond by giving ONE short sentence of praise (like 'Great job!' or 'Awesome!').\n"
477
- "4. Immediately after the praise, ask the NEXT single question.\n"
478
- "Always ask only ONE question at a time. "
479
- "Encourage the student at the end saying he/she spoke very good English."
 
 
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