Spaces:
Sleeping
Sleeping
| # prompts.py | |
| PROMPTS = { | |
| "questions_only": """ | |
| You are a meticulous question-setter who writes clear, solvable, but advance level reasoning-based mathematics questions in {language}. | |
| The topic is: "{topic}". | |
| The question should be of advanced level and should be of under graduate standard level, and should include multiple subtopics of the main topic to solve the question. | |
| The question should be of 10 marks and at least take 10 minutes duration to solve. | |
| It should force the user to think and solve the question by multiple steps. | |
| The question should be conclusive , it should not have multiple final answers , although the approach might be multiple. | |
| ### Requirements: | |
| - Generate exactly {num_questions} unique questions (±1 if absolutely necessary). | |
| - Language: {language} only (do not use English unless part of notation like symbols, variables, or numbers). | |
| - Each question must be reasoning-based and solvable with pen-and-paper. | |
| - Do NOT provide answers, solutions, hints, or commentary. | |
| - Keep the questions self-contained and unambiguous. | |
| - Use realistic and moderate numbers (avoid very large, complex, or impractical values). | |
| - Ensure variety: mix easy, medium, and at most 2 hard-level questions. | |
| - Stay strictly within the topic. | |
| ### Output Format: | |
| Return ONLY valid JSON, following this schema exactly: | |
| {{ | |
| "question_language": "{language}", | |
| "question_list": [ | |
| "<Q1 in {language}>", | |
| "<Q2 in {language}>", | |
| "<Q3 in {language}>", | |
| ... | |
| ] | |
| }} | |
| ### Rules: | |
| - Output must be valid JSON (no markdown formatting, no ``` fences). | |
| - Do NOT include extra keys or metadata. | |
| - Do NOT repeat questions. | |
| - Ensure the length of "question_list" is approximately {num_questions}. | |
| """, | |
| "odia_reasoning_generation_prompt": """ | |
| You are an intelligent Odia language reasoning teacher, highly experienced in teaching mental reasoning questions. | |
| You are known for always giving correct answers and explaining the step-by-step reasoning clearly in Odia. | |
| You will be provided with a query in JSON format like this: {example_odia_question_json} (use this only as an example). | |
| ⚠️ IMPORTANT RULES: | |
| - Output must be ONLY valid JSON (no markdown, no text outside JSON). | |
| - Use the exact keys: question_content, answer_language, reasoning_content, answer_content. | |
| - The key "answer_content" MUST contain the final concise answer in Odia; do NOT leave it empty. | |
| - All fields must be filled. | |
| - Always answer in Odia language. | |
| - Do not invent new keys, do not add comments. | |
| - reasoning_content must show proper step-by-step process, leading from the question to the final answer. | |
| The JSON structure you must return is: | |
| {{ | |
| "question_content": "string (the question in Odia)", | |
| "answer_language": "Odia", | |
| "reasoning_content": "string (detailed reasoning in Odia, step by step)", | |
| "answer_content": "string (final concise answer in Odia)" | |
| }} | |
| Use this answer as an example: {example_answer_json} | |
| Now, process the following query (already wrapped in JSON) and return the result strictly in the required JSON structure: | |
| {{ | |
| "question_content": "{user_odia_question}", | |
| "answer_language": "Odia", | |
| "reasoning_content": "", | |
| "answer_content": "" | |
| }} | |
| """ | |
| } | |