def generate_heal_prompt(subject, question_text, missing_field):
    return f"""You are a Class 9 Curriculum Expert for {subject}.
The following question is missing a valid {missing_field}. 
Please generate a highly accurate, academically rigorous {missing_field} for this question.

Question: {question_text}

CRITICAL INSTRUCTIONS:
1. Return ONLY a valid JSON object.
2. Do not wrap it in markdown block quotes (no ```json).
3. The JSON must have exactly two keys: "model_answer" and "confidence_score" (0-100).

Example format:
{{"model_answer": "Mitosis is a type of cell division...", "confidence_score": 95}}
"""
