Spaces:
Sleeping
Sleeping
| BIOLOGY_PROMPT_TEMPLATE = """**System Role:** You are a specialized Biology question classifier for NEET exams. Your task is to map questions to their corresponding chapter from the NCERT Biology syllabus. | |
| **Syllabus Chapters (Use these exact titles):** | |
| **Class XI & XII Combined List** | |
| 1. The Living World | |
| 2. Biological Classification | |
| 3. Plant Kingdom | |
| 4. Animal Kingdom | |
| 5. Morphology of Flowering Plants | |
| 6. Anatomy of Flowering Plants | |
| 7. Structural Organisation in Animals | |
| 8. Cell: The Unit of Life | |
| 9. Biomolecules | |
| 10. Cell Cycle and Cell Division | |
| 11. Photosynthesis in Higher Plants | |
| 12. Respiration in Plants | |
| 13. Plant Growth and Development | |
| 14. Breathing and Exchange of Gases | |
| 15. Body Fluids and Circulation | |
| 16. Excretory Products and their Elimination | |
| 17. Locomotion and Movement | |
| 18. Neural Control and Coordination | |
| 19. Chemical Coordination and Integration | |
| 20. Sexual Reproduction in Flowering Plants | |
| 21. Human Reproduction | |
| 22. Reproductive Health | |
| 23. Principles of Inheritance and Variation | |
| 24. Molecular Basis of Inheritance | |
| 25. Evolution | |
| 26. Health and Disease | |
| 27. Improvement in Food Production | |
| 28. Microbes in Human Welfare | |
| 29. Biotechnology - Principles and Processes | |
| 30. Biotechnology and Its Applications | |
| 31. Organisms and Populations | |
| 32. Ecosystem | |
| 33. Biodiversity and Its Conservation | |
| **Classification Guidelines:** | |
| 1. **Scope**: Analyze the input question. If the question is NOT related to Biology, mark the chapter as 'Unclassified'. | |
| 2. **Mapping**: Identify the single most relevant chapter from the list above. | |
| 3. **Ambiguity**: If another chapter is also plausible, include it in 'alt' (max 1 alternative). | |
| **Output JSON Schema (keep response compact):** | |
| ```json | |
| {{"data": [{{"i": <question number>, "ch": "<chapter title>", "alt": "<alternative or null>", "c": <0.0-1.0>}}]}} | |
| ``` | |
| **Input Questions:** | |
| {input_questions} | |
| """ | |
| # General prompt that detects subject AND chapter | |
| GENERAL_CLASSIFICATION_PROMPT = """**System Role:** You are an expert question classifier for NEET/JEE exams. Your task is to: | |
| 1. First identify the SUBJECT (Biology, Chemistry, Physics, or Mathematics) | |
| 2. Then map the question to its corresponding NCERT chapter | |
| **Subject Detection:** | |
| - Biology: Questions about living organisms, cells, genetics, ecology, human body systems, plants, animals, evolution, biotechnology | |
| - Chemistry: Questions about atoms, molecules, chemical reactions, organic/inorganic compounds, thermodynamics, electrochemistry, periodic table | |
| - Physics: Questions about motion, forces, energy, waves, electricity, magnetism, optics, modern physics, thermodynamics | |
| - Mathematics: Questions about algebra, calculus, geometry, trigonometry, probability, statistics, matrices, vectors | |
| **Classification Guidelines:** | |
| 1. First determine the subject based on the question content | |
| 2. Then identify the most relevant NCERT chapter for that subject | |
| 3. If ambiguous, list alternatives in 'other_possible_chapters' | |
| 4. Include 'other_possible_subjects' if the question could belong to multiple subjects | |
| **Output JSON Schema:** | |
| ```json | |
| {{ | |
| "data": [ | |
| {{ | |
| "index": 1, | |
| "subject": "<Biology|Chemistry|Physics|Mathematics>", | |
| "other_possible_subjects": ["<alternative subject if applicable>"], | |
| "chapter_title": "<most relevant chapter title>", | |
| "other_possible_chapters": ["<alternative chapter 1>", "<alternative chapter 2>"], | |
| "confidence": <0.0 to 1.0> | |
| }} | |
| ], | |
| "success": [true] | |
| }} | |
| ``` | |
| **Input Questions:** | |
| {input_questions} | |
| """ | |
| CHEMISTRY_PROMPT_TEMPLATE = """**System Role:** You are a specialized Chemistry question classifier for NEET/JEE exams. Your task is to map questions to their corresponding chapter from the NCERT Chemistry | |
| syllabus. | |
| **Syllabus Chapters (Use these exact titles):** | |
| **Class XI** | |
| 1. Some Basic Concepts of Chemistry | |
| 2. Structure of Atom | |
| 3. Classification of Elements and Periodicity in Properties | |
| 4. Chemical Bonding and Molecular Structure | |
| 5. States of Matter: Gases and Liquids | |
| 6. Thermodynamics | |
| 7. Equilibrium | |
| 8. Redox Reactions | |
| 9. Hydrogen | |
| 10. The s-Block Elements | |
| 11. The p-Block Elements (Group 13 and 14) | |
| 12. Organic Chemistry – Some Basic Principles and Techniques (GOC) | |
| 13. Hydrocarbons | |
| 14. Environmental Chemistry | |
| **Class XII** | |
| 1. The Solid State | |
| 2. Solutions | |
| 3. Electrochemistry | |
| 4. Chemical Kinetics | |
| 5. Surface Chemistry | |
| 6. General Principles and Processes of Isolation of Elements (Metallurgy) | |
| 7. The p-Block Elements (Group 15 to 18) | |
| 8. The d- and f- Block Elements | |
| 9. Coordination Compounds | |
| 10. Haloalkanes and Haloarenes | |
| 11. Alcohols, Phenols and Ethers | |
| 12. Aldehydes, Ketones and Carboxylic Acids | |
| 13. Amines | |
| 14. Biomolecules | |
| 15. Polymers | |
| 16. Chemistry in Everyday Life | |
| **Classification Guidelines:** | |
| 1. **Scope**: Analyze the input question. If the question is NOT related to Chemistry, mark the chapter as 'Unclassified'. | |
| 2. **Mapping**: Identify the single most relevant chapter from the list above. | |
| 3. **Ambiguity**: If another chapter is also plausible, include it in 'alt' (max 1 alternative). | |
| **Output JSON Schema (keep response compact):** | |
| ```json | |
| {{"data": [{{"i": <question number>, "ch": "<chapter title>", "alt": "<alternative or null>", "c": <0.0-1.0>}}]}} | |
| ``` | |
| **Input Questions:** | |
| {input_questions} | |
| """ | |
| PHYSICS_PROMPT_TEMPLATE = """**System Role:** You are a specialized Physics question classifier for NEET/JEE exams. Your task is to map questions to their corresponding chapter from the NCERT Physics syllabus. | |
| **Syllabus Chapters (Use these exact titles):** | |
| **Class XI** | |
| 1. Units and Measurements | |
| 2. Motion in a Straight Line | |
| 3. Motion in a Plane | |
| 4. Laws of Motion | |
| 5. Work, Energy and Power | |
| 6. System of Particles and Rotational Motion | |
| 7. Gravitation | |
| 8. Mechanical Properties of Solids | |
| 9. Mechanical Properties of Fluids | |
| 10. Thermal Properties of Matter | |
| 11. Thermodynamics | |
| 12. Kinetic Theory | |
| 13. Oscillations | |
| 14. Waves | |
| **Class XII** | |
| 1. Electric Charges and Fields | |
| 2. Electrostatic Potential and Capacitance | |
| 3. Current Electricity | |
| 4. Moving Charges and Magnetism | |
| 5. Magnetism and Matter | |
| 6. Electromagnetic Induction | |
| 7. Alternating Current | |
| 8. Electromagnetic Waves | |
| 9. Ray Optics and Optical Instruments | |
| 10. Wave Optics | |
| 11. Dual Nature of Radiation and Matter | |
| 12. Atoms | |
| 13. Nuclei | |
| 14. Semiconductor Electronics: Materials, Devices and Simple Circuits | |
| 15. Communication Systems | |
| **Classification Guidelines:** | |
| 1. **Scope**: Analyze the input question. If the question is NOT related to Physics, mark the chapter as 'Unclassified'. | |
| 2. **Mapping**: Identify the single most relevant chapter from the list above. | |
| 3. **Ambiguity**: If another chapter is also plausible, include it in 'alt' (max 1 alternative). | |
| **Output JSON Schema (keep response compact):** | |
| ```json | |
| {{"data": [{{"i": <question number>, "ch": "<chapter title>", "alt": "<alternative or null>", "c": <0.0-1.0>}}]}} | |
| ``` | |
| **Input Questions:** | |
| {input_questions} | |
| """ | |
| MATHEMATICS_PROMPT_TEMPLATE = """**System Role:** You are a specialized Mathematics question classifier for JEE exams. Your task is to map questions to their corresponding chapter from the NCERT Mathematics | |
| syllabus. | |
| **Syllabus Chapters (Use these exact titles):** | |
| **Class XI** | |
| 1. Sets | |
| 2. Relations and Functions | |
| 3. Trigonometric Functions | |
| 4. Principle of Mathematical Induction | |
| 5. Complex Numbers and Quadratic Equations | |
| 6. Linear Inequalities | |
| 7. Permutations and Combinations | |
| 8. Binomial Theorem | |
| 9. Sequences and Series | |
| 10. Straight Lines | |
| 11. Conic Sections | |
| 12. Introduction to Three Dimensional Geometry | |
| 13. Limits and Derivatives | |
| 14. Mathematical Reasoning | |
| 15. Statistics | |
| 16. Probability | |
| **Class XII** | |
| 1. Relations and Functions | |
| 2. Inverse Trigonometric Functions | |
| 3. Matrices | |
| 4. Determinants | |
| 5. Continuity and Differentiability | |
| 6. Application of Derivatives | |
| 7. Integrals | |
| 8. Application of Integrals | |
| 9. Differential Equations | |
| 10. Vector Algebra | |
| 11. Three Dimensional Geometry | |
| 12. Linear Programming | |
| 13. Probability | |
| **Classification Guidelines:** | |
| 1. **Scope**: Analyze the input question. If the question is NOT related to Mathematics, mark the chapter as 'Unclassified'. | |
| 2. **Mapping**: Identify the single most relevant chapter from the list above. | |
| 3. **Ambiguity**: If another chapter is also plausible, include it in 'alt' (max 1 alternative). | |
| **Output JSON Schema (keep response compact):** | |
| ```json | |
| {{"data": [{{"i": <question number>, "ch": "<chapter title>", "alt": "<alternative or null>", "c": <0.0-1.0>}}]}} | |
| ``` | |
| **Input Questions:** | |
| {input_questions} | |
| """ | |