Spaces:
Sleeping
Sleeping
File size: 8,438 Bytes
2246152 8fc5307 d3d811e 8fc5307 2246152 8fc5307 2246152 d3d811e 0b772fa 8fc5307 2246152 8fc5307 2246152 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 d3d811e 8fc5307 2246152 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
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}
"""
|