Rakshitjan commited on
Commit
16f75b9
·
verified ·
1 Parent(s): da92dbc

Upload 6 files

Browse files
Files changed (6) hide show
  1. Chemistry.json +267 -0
  2. Dockerfile +14 -0
  3. Maths.json +357 -0
  4. Physics.json +276 -0
  5. main.py +173 -0
  6. requirements.txt +3 -0
Chemistry.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chapters": [
3
+ {
4
+ "chapter": "Some Basic Concepts in Chemistry",
5
+ "total_hours": "8",
6
+ "subtopics": [
7
+ {"subtopic": "Matter and its nature", "subtopic_hours": "1"},
8
+ {"subtopic": "Dalton's Atomic Theory", "subtopic_hours": "1"},
9
+ {"subtopic": "Concept of atom, molecule, element, and compound", "subtopic_hours": "1"},
10
+ {"subtopic": "Laws of chemical combination", "subtopic_hours": "1"},
11
+ {"subtopic": "Atomic and molecular masses", "subtopic_hours": "1"},
12
+ {"subtopic": "Mole concept", "subtopic_hours": "1"},
13
+ {"subtopic": "Molar mass", "subtopic_hours": "1"},
14
+ {"subtopic": "Percentage composition", "subtopic_hours": "1"},
15
+ {"subtopic": "Empirical and Molecular Formulae", "subtopic_hours": "1"},
16
+ {"subtopic": "Chemical equations and stoichiometry", "subtopic_hours": "1"}
17
+ ]
18
+ },
19
+ {
20
+ "chapter": "Atomic Structure",
21
+ "total_hours": "12",
22
+ "subtopics": [
23
+ {"subtopic": "Nature of electromagnetic radiation", "subtopic_hours": "1"},
24
+ {"subtopic": "Photoelectric effect", "subtopic_hours": "1"},
25
+ {"subtopic": "Spectrum of thehydrogen atom", "subtopic_hours": "1"},
26
+ {"subtopic": "Bohr model of a hydrogen atom - itspostulates, derivation of the relations for the energy of the electron and radii of the different orbits, limitations of Bohr's model", "subtopic_hours": "1"},
27
+ {"subtopic": "Dual nature of matter", "subtopic_hours": "1"},
28
+ {"subtopic": "de Broglie's relationship", "subtopic_hours": "1"},
29
+ {"subtopic": "Heisenberg uncertainty principle", "subtopic_hours": "1"},
30
+ {"subtopic": "Elementary ideas of quantum mechanics", "subtopic_hours": "1"},
31
+ {"subtopic": "The quantum mechanical model of the atom", "subtopic_hours": "1"},
32
+ {"subtopic": "Concept of atomic orbitals as one-electron wave functions", "subtopic_hours": "1"},
33
+ {"subtopic": "Various quantum numbers (principal, angular momentum, and magnetic quantum numbers) and their significance", "subtopic_hours": "1"},
34
+ {"subtopic": "Shapes of s, p, and d - orbitals, electron spin, and spin quantum number:", "subtopic_hours": "1"},
35
+ {"subtopic": "Aufbau principle, Pauli's exclusion principle and Hund's rule", "subtopic_hours": "1"},
36
+ {"subtopic": "Electronic configuration of elements, and extra stability of half-filled and completely filled orbitals", "subtopic_hours": "1"}
37
+ ]
38
+ },
39
+ {
40
+ "chapter": "Chemical Bonding and Molecular Structure",
41
+ "total_hours": "21",
42
+ "subtopics": [
43
+ {"subtopic": "Kossel-Lewis approach to chemical bond formation", "subtopic_hours": "1.7"},
44
+ {"subtopic": "Ionic Bonding: Formation of ionic bonds, factors affecting the formation of ionic bonds", "subtopic_hours": "1.7"},
45
+ {"subtopic": "Ionic Bonding: Calculation of lattice enthalpy", "subtopic_hours": "1.7"},
46
+ {"subtopic": "Covalent Bonding: Concept of electronegativity, Fajans rule, dipole moment", "subtopic_hours": "1.7"},
47
+ {"subtopic": "Covalent Bonding: Valence Shell Electron Pair Repulsion (VSEPR) theory and shapes of simple molecules.", "subtopic_hours": "1.7"},
48
+ {"subtopic": "Quantum mechanical approach to covalent bonding: Valence bond theory - its important features", "subtopic_hours": "1.7"},
49
+ {"subtopic": "The concept of hybridization involving s, p, and d orbitals, Resonance.", "subtopic_hours": "1.7"},
50
+ {"subtopic": "Resonance.", "subtopic_hours": "1.7"},
51
+ {"subtopic": "Molecular Orbital Theory - Its important features. LCAOs", "subtopic_hours": "1.7"},
52
+ {"subtopic": "Molecular Orbital Theory - Types of molecular orbitals(bonding, antibonding), sigma and pi-bonds", "subtopic_hours": "1.7"},
53
+ {"subtopic": "Orbital electronic configurations of homonuclear diatomic molecules", "subtopic_hours": "1.7"},
54
+ {"subtopic": "The concept of bond order, bond length, and bond energy", "subtopic_hours": "1.7"},
55
+ {"subtopic": "Idea of metallic bonding", "subtopic_hours":"1.7"},
56
+ {"subtopic": "Hydrogen bonding and its applications", "subtopic_hours":"1.7"}
57
+ ]
58
+ },
59
+ {
60
+ "chapter": "Chemical Thermodynamics",
61
+ "total_hours": "15",
62
+ "subtopics": [
63
+ {"subtopic": "Fundamentals of thermodynamics: System and surroundings, extensive and intensive properties", "subtopic_hours": "2.1"},
64
+ {"subtopic": "Fundamentals of thermodynamics: State functions, Entropy, types of processes", "subtopic_hours": "2.1"},
65
+ {"subtopic": "Fundamentals of thermodynamics: System and surroundings, extensive and intensive properties, state functions, Entropy, types of processes", "subtopic_hours": "2.1"},
66
+ {"subtopic": "The first law of thermodynamics - Concept of work, heat internal energy and enthalpy, heat capacity", "subtopic_hours": "2.1"},
67
+ {"subtopic": "Hess law of constant heat summation", "subtopic_hours": ""},
68
+ {"subtopic": "Enthalpies of bond dissociation, combustion, formation, atomization, sublimation, phase transition, hydration, ionization, and solution.", "subtopic_hours": "2.1"},
69
+ {"subtopic": "The second law of thermodynamics - Spontaneity of processes; S of the universe and G of the system as criteria for spontaneity", "subtopic_hours": "2.1"}
70
+ ]
71
+ },
72
+ {
73
+ "chapter": "Solutions",
74
+ "total_hours": "15",
75
+ "subtopics": [
76
+ {"subtopic": "Different methods for expressing the concentration of solution - molality, molarity, mole fraction, percentage", "subtopic_hours": "3"},
77
+ {"subtopic": "Raoults Law - Ideal and non-ideal solutions", "subtopic_hours": "3"},
78
+ {"subtopic": "Vapour pressure - composition, plots for ideal and nonideal solutions", "subtopic_hours": "3"},
79
+ {"subtopic": "Colligative properties of dilute solutions - a relative lowering of vapour pressure, depression of freezing point, the elevation of boiling point and osmotic pressure;", "subtopic_hours": "3"},
80
+ {"subtopic": "Determination of molecular mass using colligative properties; Abnormal value of molar mass, vant Hoff factor and its significance", "subtopic_hours": "3"}
81
+ ]
82
+ },
83
+ {
84
+ "chapter": "Equilibrium",
85
+ "total_hours": "18",
86
+ "subtopics": [
87
+ {"subtopic": "Equilibria involving physical processes: Solid-liquid, liquid-gas and solid-gas equilibria, Henry's law", "subtopic_hours": "2.5"},
88
+ {"subtopic": "Equilibrium involving chemical processes: Law of chemical equilibrium, equilibrium constants (Kp and Kc) and their significance", "subtopic_hours": "2.5"},
89
+ {"subtopic": "The significance of G in chemical equilibrium", "subtopic_hours": "2.5"},
90
+ {"subtopic": "Factors affecting equilibrium concentration, pressure, temperature, the effect of catalyst; Le Chateliers principle.", "subtopic_hours": "2.5"},
91
+ {"subtopic": "Ionic equilibrium: Weak and strong electrolytes, ionization of electrolytes, various concepts of acids and bases (Arrhenius. Bronsted - Lowry and Lewis) and their ionization", "subtopic_hours": "2.5"},
92
+ {"subtopic": "Acid-base equilibria (including multistage ionization) and ionization constants, ionization of water. pH scale, common ion effect, hydrolysis of salts and pH of their solutions", "subtopic_hours": "2.5"},
93
+ {"subtopic": "The solubility of sparingly soluble salts and solubility products, and buffer solutions.", "subtopic_hours": "2.5"}
94
+ ]
95
+ },
96
+ {
97
+ "chapter": "Redox Reactions and Electrochemistry",
98
+ "total_hours": "18",
99
+ "subtopics": [
100
+ {"subtopic": "Electronic concepts of oxidation and reduction, redox reactions, oxidation number, rules for assigning oxidation number, and balancing of redox reactions.", "subtopic_hours": "2"},
101
+ {"subtopic": "Electrolytic and metallic conduction, conductance in electrolytic solutions,", "subtopic_hours": "2"},
102
+ {"subtopic": "Molar conductivities and their variation with concentration: Kohlrausch law ", "subtopic_hours": "2"},
103
+ {"subtopic": "Electrochemical cells - Electrolytic and Galvanic cells, different types of electrodes,", "subtopic_hours": "2"},
104
+ {"subtopic": "Electrode potentials including standard electrode potential, half-cell and cell reactions", "subtopic_hours": "2"},
105
+ {"subtopic": "EMF of a Galvanic cell and its measurement: Nernst equation and its applications", "subtopic_hours": "2"},
106
+ {"subtopic": "Relationship between cell potential and Gibbs' energy change", "subtopic_hours": "2"},
107
+ {"subtopic": "Dry cell and lead accumulator, Fuel cells.", "subtopic_hours": "2"}
108
+ ]
109
+ },
110
+ {
111
+ "chapter": "Chemical Kinetics",
112
+ "total_hours": "8",
113
+ "subtopics": [
114
+ {"subtopic": "Rate of a chemical reaction, factors affecting the rate of reactions: concentration, temperature, pressure, and catalyst", "subtopic_hours": "2"},
115
+ {"subtopic": "Elementary and complex reactions, order and molecularity of reactions, rate law, rate constant and its units", "subtopic_hours": "2"},
116
+ {"subtopic": "Differential and integral forms of zero and first-order reactions, their characteristics and half-lives", "subtopic_hours": "2"},
117
+ {"subtopic": "The effect of temperature on the rate of reactions, Arrhenius theory, activation energy and its calculation, collision theory of bimolecular gaseous reactions", "subtopic_hours": "2"}
118
+ ]
119
+ },
120
+ {
121
+ "chapter": "Classification of Elements and Periodicity in Properties",
122
+ "total_hours": "14",
123
+ "subtopics": [
124
+ {"subtopic": "Modern periodic law and present form of the periodic table", "subtopic_hours": "7"},
125
+ {"subtopic": "s, p. d and f block elements, periodic trends in properties of elements atomic and ionic radii, ionization enthalpy, electron gain enthalpy, valence, oxidation states, and chemical reactivity", "subtopic_hours": "7"}
126
+ ]
127
+ },
128
+ {
129
+ "chapter": "P Block Elements",
130
+ "total_hours": "17",
131
+ "subtopics": [
132
+ {"subtopic": "Electronic configuration and general trends in physical and chemical properties of elements across the periods and down the groups for Group-13 to Group-18 Elements", "subtopic_hours": "8.5"},
133
+ {"subtopic": "Unique behaviour of the first element in each group", "subtopic_hours": "8.5"}
134
+ ]
135
+ },
136
+ {
137
+ "chapter": "D and F Block Elements",
138
+ "total_hours": "6",
139
+ "subtopics": [
140
+ {"subtopic": "Electronic configuration, occurrence and characteristics, general trends in properties of the first-row transition elements", "subtopic_hours": "1.5"},
141
+ {"subtopic": "Preparation, properties, and uses of K2Cr2O7, and KMnO4.", "subtopic_hours": "1.5"},
142
+ {"subtopic": "Lanthanoids - Electronic configuration, oxidation states, and lanthanoid contraction", "subtopic_hours": "1.5"},
143
+ {"subtopic": "Actinoids - Electronic configuration and oxidation states", "subtopic_hours": "1.5"}
144
+ ]
145
+ },
146
+ {
147
+ "chapter": "Coordination Compounds",
148
+ "total_hours": "14",
149
+ "subtopics": [
150
+ {"subtopic": "Introduction to coordination compounds", "subtopic_hours": "2"},
151
+ {"subtopic": "Werner's theory; ligands, coordination number, denticity, chelation", "subtopic_hours": "2"},
152
+ {"subtopic": "IUPAC nomenclature of mononuclear co-ordination compounds", "subtopic_hours": "2"},
153
+ {"subtopic": "Isomerism", "subtopic_hours": "2"},
154
+ {"subtopic": "Bonding-Valence bond approach and basic ideas of Crystal field theory", "subtopic_hours": "2"},
155
+ {"subtopic": "Colour and magnetic properties", "subtopic_hours": "2"},
156
+ {"subtopic": "Importance of co-ordination compounds", "subtopic_hours": "2"}
157
+ ]
158
+ },
159
+ {
160
+ "chapter": "Purification and Characteristics of Organic Compounds",
161
+ "total_hours": "3",
162
+ "subtopics": [
163
+ {"subtopic": "Purification - Crystallization, sublimation, distillation, differential extraction, and chromatography", "subtopic_hours": "0.75"},
164
+ {"subtopic": "Qualitative analysis - Detection of nitrogen, sulphur, phosphorus, and halogens", "subtopic_hours": "0.75"},
165
+ {"subtopic": "Quantitative analysis - Estimation of carbon, hydrogen, nitrogen, halogens, sulphur, and phosphorus.", "subtopic_hours": "0.75"},
166
+ {"subtopic": "Calculations of empirical formulae and molecular formulae", "subtopic_hours": "0.75"}
167
+ ]
168
+ },
169
+ {
170
+ "chapter": "Some Basic Principles of Organic Chemistry",
171
+ "total_hours": "20",
172
+ "subtopics": [
173
+ {"subtopic": "Tetravalency of carbon: Shapes of simple molecules - hybridization", "subtopic_hours": "2"},
174
+ {"subtopic": "Classification of organic compounds based on functional groups - halogens, oxygen, nitrogen, and sulphur", "subtopic_hours": "2"},
175
+ {"subtopic": "Isomerism - structural and stereoisomerism.", "subtopic_hours": "2"},
176
+ {"subtopic": "Nomenclature (Trivial and IUPAC)", "subtopic_hours": "2"},
177
+ {"subtopic": "Covalent bond fission - Homolytic and heterolytic", "subtopic_hours": "2"},
178
+ {"subtopic": "Free radicals, carbocations, and carbanions", "subtopic_hours": "2"},
179
+ {"subtopic": "Stability of carbocations and free radicals, electrophiles, and nucleophiles.", "subtopic_hours": "2"},
180
+ {"subtopic": "Inductive effect, electromeric effect, resonance, and hyperconjugation.", "subtopic_hours": "2"},
181
+ {"subtopic": "Common types of organic reactions - Substitution, addition, elimination, and rearrangement", "subtopic_hours": "2"}
182
+ ]
183
+ },
184
+ {
185
+ "chapter": "Hydrocarbons",
186
+ "total_hours": "20",
187
+ "subtopics": [
188
+ {"subtopic": "Classification, isomerism, IUPAC nomenclature.", "subtopic_hours": "1.25"},
189
+ {"subtopic": "General methods of preparation, properties, and reactions", "subtopic_hours": "1.25"},
190
+ {"subtopic": "Alkanes - Conformations: Sawhorse and Newman projections", "subtopic_hours": "1.25"},
191
+ {"subtopic": "Alkanes - Mechanism of halogenation of alkanes.", "subtopic_hours": "1.25"},
192
+ {"subtopic": "Alkenes - Geometrical isomerism", "subtopic_hours": "1.25"},
193
+ {"subtopic": "Alkenes - Mechanism of electrophilic addition", "subtopic_hours": "1.25"},
194
+ {"subtopic": "Alkenes - Addition of hydrogen, halogens, water, hydrogen halides (Markownikoffs and peroxide effect)", "subtopic_hours": "1.25"},
195
+ {"subtopic": "Alkenes - Ozonolysis and polymerization.", "subtopic_hours": "1.25"},
196
+ {"subtopic": "Alkynes - Acidic character", "subtopic_hours": "1.25"},
197
+ {"subtopic": "Alkynes - Addition of hydrogen, halogens, water, and hydrogen halides", "subtopic_hours": "1.25"},
198
+ {"subtopic": "Alkynes - Polymerization", "subtopic_hours": "1.25"},
199
+ {"subtopic": "Aromatic hydrocarbons - Nomenclature", "subtopic_hours": "1.25"},
200
+ {"subtopic": "Aromatic hydrocarbons - Benzene structure and aromaticity", "subtopic_hours": "1.25"},
201
+ {"subtopic": "Aromatic hydrocarbons - Mechanism of electrophilic substitution: halogenation, nitration.", "subtopic_hours": "1.25"},
202
+ {"subtopic": "Friedel-Craft's alkylation and acylation", "subtopic_hours": "1.25"},
203
+ {"subtopic": "Directive influence of the functional group in monosubstituted benzene", "subtopic_hours": "1.25"}
204
+ ]
205
+ },
206
+ {
207
+ "chapter": "Organic Compounds Containing Halogens",
208
+ "total_hours": "8",
209
+ "subtopics": [
210
+ {"subtopic": "General methods of preparation, properties, and reactions", "subtopic_hours": "2"},
211
+ {"subtopic": "Nature of C-X bond", "subtopic_hours": "2"},
212
+ {"subtopic": "Mechanisms of substitution reactions", "subtopic_hours": "2"},
213
+ {"subtopic": "Uses: Environmental effects of chloroform, iodoform freons, and DDT.", "subtopic_hours": "2"}
214
+ ]
215
+ },
216
+ {
217
+ "chapter": "Organic Compounds Containing Oxygen",
218
+ "total_hours": "17",
219
+ "subtopics": [
220
+ {"subtopic": "General methods of preparation, properties, reactions, and uses", "subtopic_hours": "1"},
221
+ {"subtopic": "Alcohols: Identification of primary, secondary, and tertiary alcohols", "subtopic_hours": "1"},
222
+ {"subtopic": "Alcohols: mechanism of dehydration", "subtopic_hours": "1"},
223
+ {"subtopic": "Phenols: Acidic nature, electrophilic substitution reactions", "subtopic_hours": "1"},
224
+ {"subtopic": "Phenols: halogenation, nitration, sulphonation, Reimer - Tiemann reaction.", "subtopic_hours": "1"},
225
+ {"subtopic": "Ethers: Structure.", "subtopic_hours": "1"},
226
+ {"subtopic": "Aldehyde and Ketones: Nature of carbonyl group;", "subtopic_hours": "1"},
227
+ {"subtopic": "Aldehyde and Ketones: Nucleophilic addition to >C=O group", "subtopic_hours": "1"},
228
+ {"subtopic": "Aldehyde and Ketones: Relative reactivities of aldehydes and ketones", "subtopic_hours": "1"},
229
+ {"subtopic": "Aldehyde and Ketones: Nucleophilic addition reactions (addition of HCN. NH3, and its derivatives", "subtopic_hours": "1"},
230
+ {"subtopic": "Aldehyde and Ketones: Oxidation using Grignard Reagent", "subtopic_hours": "1"},
231
+ {"subtopic": "Aldehyde and Ketones: Reduction (Wolf Kishner and Clemmensen)", "subtopic_hours": "1"},
232
+ {"subtopic": "Aldehyde and Ketones: the acidity of -H", "subtopic_hours": "1"},
233
+ {"subtopic": "Aldehyde and Ketones: aldol condensation", "subtopic_hours": "1"},
234
+ {"subtopic": "Aldehyde and Ketones: Cannizzaro reaction, Haloform reaction", "subtopic_hours": "1"},
235
+ {"subtopic": "Aldehyde and Ketones: Chemical tests to distinguish between aldehydes and Ketones.", "subtopic_hours": "1"},
236
+ {"subtopic": "Carboxylic Acids: Acidic strength and factors affecting it", "subtopic_hours": "1"}
237
+
238
+
239
+ ]
240
+ },
241
+ {
242
+ "chapter": "Organic Compounds Containing Nitrogen",
243
+ "total_hours": "4",
244
+ "subtopics": [
245
+ {"subtopic": "General methods of preparation. Properties, reactions, and uses", "subtopic_hours": "1"},
246
+ {"subtopic": "Amines: Nomenclature, classification, structure and basic nature", "subtopic_hours": "1"},
247
+ {"subtopic": "Identificationof primary, secondary, and tertiary amines", "subtopic_hours": "1"},
248
+ {"subtopic": "Diazonium Salts: Importance in synthetic organic chemistry.", "subtopic_hours": "1"}
249
+ ]
250
+ },
251
+ {
252
+ "chapter": "Biomolecules",
253
+ "total_hours": "10",
254
+ "subtopics": [
255
+ {"subtopic": "General introduction and importance of biomolecules", "subtopic_hours": "1"},
256
+ {"subtopic": "Carbohydrates - Classification: aldoses and ketoses", "subtopic_hours": "1"},
257
+ {"subtopic": "Carbohydrates - Monosaccharides and constituent monosaccharides of oligosaccharides", "subtopic_hours": "1"},
258
+ {"subtopic": "Proteins - Elementary idea of amino acids, peptide bond, polypeptides", "subtopic_hours": "1"},
259
+ {"subtopic": "Proteins - Primary, secondary, tertiary, and quaternary structure (qualitative idea only)", "subtopic_hours": "1"},
260
+ {"subtopic": "Proteins - Denaturation of proteins, enzymes.", "subtopic_hours": "1"},
261
+ {"subtopic": "Vitamins - Classification and functions.", "subtopic_hours": "1"},
262
+ {"subtopic": "Nucleic Acids - Chemical constitution of DNA and RNA.", "subtopic_hours": "1"},
263
+ {"subtopic": "Hormones (General introduction)", "subtopic_hours":"1"}
264
+ ]
265
+ }
266
+ ]
267
+ }
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+
6
+ WORKDIR /code
7
+
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ COPY . .
13
+
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
Maths.json ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chapters": [
3
+ {
4
+ "chapter": "Sets, Relations and Functions",
5
+ "total_hours": "4",
6
+ "subtopics": [
7
+ {
8
+ "subtopic": "Sets and their representation",
9
+ "subtopic_hours": "0.5"
10
+ },
11
+ { "subtopic": "Union", "subtopic_hours": "0.5" },
12
+ {
13
+ "subtopic": "Intersection and complement of sets and their algebraic properties",
14
+ "subtopic_hours": "0.5"
15
+ },
16
+ { "subtopic": "Power set", "subtopic_hours": "0.5" },
17
+ { "subtopic": "Relation", "subtopic_hours": "0.5" },
18
+ { "subtopic": "Type of relations", "subtopic_hours": "0.5" },
19
+ { "subtopic": "equivalence relations", "subtopic_hours": "0.5" },
20
+ { "subtopic": "Functions", "subtopic_hours": "0.5" },
21
+ {
22
+ "subtopic": "one-one, into and onto functions",
23
+ "subtopic_hours": "0.5"
24
+ },
25
+ { "subtopic": "the composition of functions.", "subtopic_hours": "0.5" }
26
+ ]
27
+ },
28
+ {
29
+ "chapter": "Complex Numbers and Quadratic Equations",
30
+ "total_hours": "20",
31
+ "subtopics": [
32
+ {
33
+ "subtopic": "Complex numbers as ordered pairs of reals",
34
+ "subtopic_hours": "2"
35
+ },
36
+ {
37
+ "subtopic": "Representation of complex numbers in the form a + ib and their representation in a plane",
38
+ "subtopic_hours": "2"
39
+ },
40
+ { "subtopic": "Argand diagram", "subtopic_hours": "2" },
41
+ { "subtopic": "algebra of complex number", "subtopic_hours": "2" },
42
+ {
43
+ "subtopic": "modulus and argument (or amplitude) of a complex number",
44
+ "subtopic_hours": "2"
45
+ },
46
+ {
47
+ "subtopic": "square root of a complex number",
48
+ "subtopic_hours": "2"
49
+ },
50
+ {
51
+ "subtopic": "Quadratic equations in real and complex number system and their solutions",
52
+ "subtopic_hours": "2"
53
+ },
54
+ {
55
+ "subtopic": "Relations between roots and coefficient, nature of roots",
56
+ "subtopic_hours": "2"
57
+ },
58
+ {
59
+ "subtopic": "the formation of quadratic equations with given roots.",
60
+ "subtopic_hours": "2"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "chapter": "Matrices and Determinants",
66
+ "total_hours": "11",
67
+ "subtopics": [
68
+ { "subtopic": "Matrices", "subtopic_hours": "1.5" },
69
+ { "subtopic": "algebra of matrices", "subtopic_hours": "1.5" },
70
+ { "subtopic": "type of matrices", "subtopic_hours": "1.5" },
71
+ {
72
+ "subtopic": "determinants and matrices of order two and three",
73
+ "subtopic_hours": "1.5"
74
+ },
75
+ { "subtopic": "evaluation of determinants", "subtopic_hours": "1.5" },
76
+ {
77
+ "subtopic": "area of triangles using determinants",
78
+ "subtopic_hours": "1.5"
79
+ },
80
+ {
81
+ "subtopic": "Adjoint and evaluation of inverse of a square matrix using determinants and elementary transformations",
82
+ "subtopic_hours": "1.5"
83
+ },
84
+ {
85
+ "subtopic": "Test of consistency and solution of simultaneous linear equations in two or three variables using determinants and matrices.",
86
+ "subtopic_hours": "1.5"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "chapter": "Permutations and Combinations",
92
+ "total_hours": "10",
93
+ "subtopics": [
94
+ {
95
+ "subtopic": "The fundamental principle of counting",
96
+ "subtopic_hours": "3"
97
+ },
98
+ {
99
+ "subtopic": "permutation as an arrangement and combination as section",
100
+ "subtopic_hours": "3"
101
+ },
102
+ {
103
+ "subtopic": "Meaning of P(n,r) and C(n,r), simple applications.",
104
+ "subtopic_hours": "3"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "chapter": "Binomial Theorem and it's Simple Application",
110
+ "total_hours": "10",
111
+ "subtopics": [
112
+ {
113
+ "subtopic": "Binomial theorem for a positive integral index",
114
+ "subtopic_hours": "3"
115
+ },
116
+ { "subtopic": "general term and middle term", "subtopic_hours": "3" },
117
+ { "subtopic": "simple applications.", "subtopic_hours": "3" }
118
+ ]
119
+ },
120
+ {
121
+ "chapter": "Sequence and Series",
122
+ "total_hours": "10",
123
+ "subtopics": [
124
+ {
125
+ "subtopic": "Arithmetic and Geometric progressions",
126
+ "subtopic_hours": "3"
127
+ },
128
+ {
129
+ "subtopic": "insertion of arithmetic, geometric means between two given numbers",
130
+ "subtopic_hours": "3"
131
+ },
132
+ { "subtopic": "Relation between A.M and G.M", "subtopic_hours": "3" }
133
+ ]
134
+ },
135
+ {
136
+ "chapter": "Limits,Continuity and Differentiability",
137
+ "total_hours": "20",
138
+ "subtopics": [
139
+ { "subtopic": "Real - valued functions", "subtopic_hours": "2" },
140
+ { "subtopic": "algebra of functions", "subtopic_hours": "2" },
141
+ {
142
+ "subtopic": "Polynomials , rational, trigonometric, logarithmic and exponential functions, inverse function",
143
+ "subtopic_hours": "2"
144
+ },
145
+ { "subtopic": "Graphs of simple functions.", "subtopic_hours": "2" },
146
+ {
147
+ "subtopic": "Limits, continuity and differentiability.",
148
+ "subtopic_hours": "2"
149
+ },
150
+ {
151
+ "subtopic": "Differentiation of the sum difference, product and quotient of two functions.",
152
+ "subtopic_hours": "2"
153
+ },
154
+ {
155
+ "subtopic": "Differentiation of trigonometric, inverse trigonometric, logarithmic, exponential, composite and implicit functions",
156
+ "subtopic_hours": "2"
157
+ },
158
+ {
159
+ "subtopic": "derivatives of order up to two.",
160
+ "subtopic_hours": "2"
161
+ },
162
+ {
163
+ "subtopic": "Applications of derivatives: Rate of change of quantities",
164
+ "subtopic_hours": "2"
165
+ },
166
+ {
167
+ "subtopic": "monotonic increasing and Decreasing functions, Maxima and minima of functions of one variable.",
168
+ "subtopic_hours": "2"
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ "chapter": "Integral Calculus",
174
+ "total_hours": "26",
175
+ "subtopics": [
176
+ { "subtopic": "Integral as an anti-derivative", "subtopic_hours": "3" },
177
+ {
178
+ "subtopic": "Fundamental Integrals involving algebraic, trigonometric, exponential and logarithms functions.",
179
+ "subtopic_hours": "3"
180
+ },
181
+ {
182
+ "subtopic": "Integration by substitution, by parts and by partial functions.",
183
+ "subtopic_hours": "3"
184
+ },
185
+ {
186
+ "subtopic": "Integration using trigonometric identities.",
187
+ "subtopic_hours": "3"
188
+ },
189
+ {
190
+ "subtopic": "Evaluation of simple integrals of the type",
191
+ "subtopic_hours": "3"
192
+ },
193
+ {
194
+ "subtopic": "The fundamental theorem of calculus, properties of definite integrals.",
195
+ "subtopic_hours": "3"
196
+ },
197
+ {
198
+ "subtopic": "Evaluation of definite integrals",
199
+ "subtopic_hours": "3"
200
+ },
201
+ {
202
+ "subtopic": "determining areas of the regions bounded by simple curves in standard form.",
203
+ "subtopic_hours": "3"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "chapter": "Differential Equations",
209
+ "total_hours": "8",
210
+ "subtopics": [
211
+ {
212
+ "subtopic": "Ordinary differential equations, their order and degree",
213
+ "subtopic_hours": "2.5"
214
+ },
215
+ {
216
+ "subtopic": "solution of differential equation by the method of separation of variables",
217
+ "subtopic_hours": "2.5"
218
+ },
219
+ {
220
+ "subtopic": "solution of a homogeneous and linear differential equation of the type: dy/dx + p(x)y = q(x)",
221
+ "subtopic_hours": "2.5"
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "chapter": "Co-ordinate Geometry",
227
+ "total_hours": "47",
228
+ "subtopics": [
229
+ {
230
+ "subtopic": "Cartesian system of rectangular coordinates in a plane",
231
+ "subtopic_hours": "3.5"
232
+ },
233
+ {
234
+ "subtopic": "distance formula, sections formula, locus and its equation",
235
+ "subtopic_hours": "3.5"
236
+ },
237
+ {
238
+ "subtopic": "the slope of a line, parallel and perpendicular lines",
239
+ "subtopic_hours": "3.5"
240
+ },
241
+ {
242
+ "subtopic": "intercepts of a line on the co-ordinate axis.",
243
+ "subtopic_hours": "3.5"
244
+ },
245
+ {
246
+ "subtopic": "Straight line : Various forms of equations of a line, intersection of lines, angles between two lines",
247
+ "subtopic_hours": "3.5"
248
+ },
249
+ {
250
+ "subtopic": "conditions for concurrence of three lines",
251
+ "subtopic_hours": "3.5"
252
+ },
253
+ {
254
+ "subtopic": "the distance of a point from a line, coordinate of the centroid, orthocentre and circumcentre of a triangle.",
255
+ "subtopic_hours": "3.5"
256
+ },
257
+ {
258
+ "subtopic": "Circle: A standard form of equations of a circle",
259
+ "subtopic_hours": "3.5"
260
+ },
261
+ {
262
+ "subtopic": "the general form of the equation of a circle, its radius and central, equation of a circle when the endpoints of a diameter are given",
263
+ "subtopic_hours": "3.5"
264
+ },
265
+ {
266
+ "subtopic": "points of intersection of a line and a circle with the centre at the origin",
267
+ "subtopic_hours": "3.5"
268
+ },
269
+ {
270
+ "subtopic": "equations of conic sections : parabola",
271
+ "subtopic_hours": "3.5"
272
+ },
273
+ {
274
+ "subtopic": "equations of conic sections : ellipse",
275
+ "subtopic_hours": "3.5"
276
+ },
277
+ {
278
+ "subtopic": "equations of conic sections : Hyperbola",
279
+ "subtopic_hours": "3.5"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "chapter": "Three Dimensional Geometry",
285
+ "total_hours": "7",
286
+ "subtopics": [
287
+ { "subtopic": "Coordinate of a point in space", "subtopic_hours": "2" },
288
+ {
289
+ "subtopic": "the distance between two points, section formula, directions ratios and direction cosines",
290
+ "subtopic_hours": "2"
291
+ },
292
+ {
293
+ "subtopic": "the angle between two intersecting lines",
294
+ "subtopic_hours": "2"
295
+ },
296
+ {
297
+ "subtopic": "Skew lines, the shortest distance between them and its equation",
298
+ "subtopic_hours": "2"
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ "chapter": "Vector Algebra",
304
+ "total_hours": "11",
305
+ "subtopics": [
306
+ { "subtopic": "Vectors and scalars", "subtopic_hours": "3" },
307
+ { "subtopic": "the addition of vectors", "subtopic_hours": "3" },
308
+ {
309
+ "subtopic": "components of a vector in two dimensions and three-dimensional space",
310
+ "subtopic_hours": "3"
311
+ },
312
+ { "subtopic": "scalar and vector products", "subtopic_hours": "3" }
313
+ ]
314
+ },
315
+ {
316
+ "chapter": "Statistics and Probability",
317
+ "total_hours": "4",
318
+ "subtopics": [
319
+ { "subtopic": "Measures of discretion", "subtopic_hours": "0.5" },
320
+ {
321
+ "subtopic": "calculation of mean, median, mode of grouped and ungrouped data calculation of standard deviation",
322
+ "subtopic_hours": "0.5"
323
+ },
324
+ {
325
+ "subtopic": "variance and mean deviation for grouped and ungrouped data.",
326
+ "subtopic_hours": "0.5"
327
+ },
328
+ {
329
+ "subtopic": "Probability: Probability of an event",
330
+ "subtopic_hours": "0.5"
331
+ },
332
+ {
333
+ "subtopic": "addition and multiplication theorems of probability",
334
+ "subtopic_hours": "0.5"
335
+ },
336
+ {
337
+ "subtopic": "Baye's theorem, probability distribution of a random variate.",
338
+ "subtopic_hours": "0.5"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "chapter": "Trigonometry",
344
+ "total_hours": "23",
345
+ "subtopics": [
346
+ {
347
+ "subtopic": "Trigonometrical identities and trigonometrical functions",
348
+ "subtopic_hours": "12"
349
+ },
350
+ {
351
+ "subtopic": "inverse trigonometrical functions and their properties.",
352
+ "subtopic_hours": "12"
353
+ }
354
+ ]
355
+ }
356
+ ]
357
+ }
Physics.json ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chapters": [
3
+ {
4
+ "chapter": "Physics and Measurement",
5
+ "total_hours": "4",
6
+ "subtopics": [
7
+ {"subtopic": "Units of measurements, System of Units, SI Units", "subtopic_hours": "1"},
8
+ {"subtopic": "Fundamental and derived units", "subtopic_hours": "1"},
9
+ {"subtopic": "Least count, significant figures, Errors in measurements", "subtopic_hours": "1"},
10
+ {"subtopic": "Dimensions of Physics quantities, dimensional analysis, and its applications", "subtopic_hours": "1"}
11
+ ]
12
+ },
13
+ {
14
+ "chapter": "Kinematics",
15
+ "total_hours": "17",
16
+ "subtopics": [
17
+ {"subtopic": "Frame of reference, motion in a straight line, Position-time graph, speed and velocity", "subtopic_hours": "4.5"},
18
+ {"subtopic": "Uniform and non-uniform motion, average speed and instantaneous velocity", "subtopic_hours": "4.5"},
19
+ {"subtopic": "Uniformly accelerated motion, velocity-time, position-time graph", "subtopic_hours": "4.5"},
20
+ {"subtopic": "Scalars and Vectors, Vector Addition and subtraction, scalar and vector products", "subtopic_hours": "4.5"}
21
+ ]
22
+ },
23
+ {
24
+ "chapter": "Laws of Motion",
25
+ "total_hours": "12",
26
+ "subtopics": [
27
+ {"subtopic": "Force and inertia, Newton’s First law of motion", "subtopic_hours": "2.5"},
28
+ {"subtopic": "Momentum, Newton’s Second Law of motion, Impulses", "subtopic_hours": "2.5"},
29
+ {"subtopic": "Newton’s Third Law of motion. Law of conservation of linear momentum and its applications", "subtopic_hours": "2.5"},
30
+ {"subtopic": "Static and Kinetic friction, laws of friction, rolling friction", "subtopic_hours": "2.5"},
31
+ {"subtopic": "Dynamics of uniform circular motion: centripetal force and its applications", "subtopic_hours": "2.5"}
32
+ ]
33
+ },
34
+ {
35
+ "chapter": "Work, Energy and Power",
36
+ "total_hours": "9",
37
+ "subtopics": [
38
+ {"subtopic": "Work done by a constant force and a variable force", "subtopic_hours": "2"},
39
+ {"subtopic": "Kinetic and potential energies, work-energy theorem, power", "subtopic_hours": "2"},
40
+ {"subtopic": "Potential energy of spring, conservation of mechanical energy", "subtopic_hours": "2"},
41
+ {"subtopic": "Conservative and non-conservative forces", "subtopic_hours": "2"},
42
+ {"subtopic": "Elastic and inelastic collisions in one and two dimensions", "subtopic_hours": "2"}
43
+ ]
44
+ },
45
+ {
46
+ "chapter": "Rotational Motion",
47
+ "total_hours": "13",
48
+ "subtopics": [
49
+ {"subtopic": "Centre of mass of a two-particle system, Centre of mass of a rigid body", "subtopic_hours": "2"},
50
+ {"subtopic": "Basic concepts of rotational motion; moment of a force; torque, angular momentum", "subtopic_hours": "2"},
51
+ {"subtopic": "Conservation of angular momentum and its applications", "subtopic_hours": "2"},
52
+ {"subtopic": "Moment of inertia, radius of gyration, values of moments of inertia for simple geometrical objects", "subtopic_hours": "2"},
53
+ {"subtopic": "Parallel and perpendicular axes theorems, and their applications", "subtopic_hours": "2"},
54
+ {"subtopic": "Equilibrium of rigid bodies, rigid body rotation and equations of rotational motion", "subtopic_hours": "2"},
55
+ {"subtopic": "Comparison of linear and rotational motions", "subtopic_hours": "2"}
56
+ ]
57
+ },
58
+ {
59
+ "chapter": "Gravitation",
60
+ "total_hours": "6",
61
+ "subtopics": [
62
+ {"subtopic": "The universal law of gravitation", "subtopic_hours": "1"},
63
+ {"subtopic": "Acceleration due to gravity and its variation with altitude and depth", "subtopic_hours": "1"},
64
+ {"subtopic": "Kepler’s law of planetary motion", "subtopic_hours": "1"},
65
+ {"subtopic": "Gravitational potential energy; gravitational potential", "subtopic_hours": "1"},
66
+ {"subtopic": "Escape velocity", "subtopic_hours": "1"},
67
+ {"subtopic": "Motion of a satellite, orbital velocity, time period, and energy of satellite", "subtopic_hours": "1"}
68
+ ]
69
+ },
70
+ {
71
+ "chapter": "Properties of Solids and Liquids",
72
+ "total_hours": "24",
73
+ "subtopics": [
74
+ {"subtopic": "Elastic behavior, Stress-strain relationship, Hooke's Law", "subtopic_hours": "2.5"},
75
+ {"subtopic": "Young's modulus, bulk modulus, and modulus of rigidity", "subtopic_hours": "2.5"},
76
+ {"subtopic": "Pressure due to a fluid column; Pascal's law and its applications", "subtopic_hours": "2.5"},
77
+ {"subtopic": "Effect of gravity on fluid pressure", "subtopic_hours": "2.5"},
78
+ {"subtopic": "Viscosity. Stokes' law. terminal velocity, streamline, and turbulent flow.critical velocity", "subtopic_hours": "2.5"},
79
+ {"subtopic": "Bernoulli's principle and its applications", "subtopic_hours": "2.5"},
80
+ {"subtopic": "Surface energy and surface tension, angle of contact, excess of pressure across a curved surface", "subtopic_hours": "2.5"},
81
+ {"subtopic": "Application of surface tension - drops, bubbles, and capillary rise", "subtopic_hours": "2.5"},
82
+ {"subtopic": "Heat, temperature, thermal expansion; specific heat capacity, calorimetry; change of state, latent heat", "subtopic_hours": "2.5"},
83
+ {"subtopic": "Heat transfer conduction, convection, and radiation", "subtopic_hours": "2.5"}
84
+ ]
85
+ },
86
+ {
87
+ "chapter": "Thermodynamics",
88
+ "total_hours": "6",
89
+ "subtopics": [
90
+ {"subtopic": "Thermal equilibrium, zeroth law of thermodynamics, the concept of temperature", "subtopic_hours": "1.5"},
91
+ {"subtopic": "Heat, work, and internal energy", "subtopic_hours": "1.5"},
92
+ {"subtopic": "The first law of thermodynamics, isothermal and adiabatic processes", "subtopic_hours": "1.5"},
93
+ {"subtopic": "The second law of thermodynamics: reversible and irreversible processes", "subtopic_hours": "1.5"}
94
+ ]
95
+ },
96
+ {
97
+ "chapter": "Kinetic Theory of Gases",
98
+ "total_hours": "5",
99
+ "subtopics": [
100
+ {"subtopic": "Equation of state of a perfect gas, work done on compressing a gas", "subtopic_hours": "1"},
101
+ {"subtopic": "Kinetic theory of gases - assumptions, the concept of pressure", "subtopic_hours": "1"},
102
+ {"subtopic": "Kinetic interpretation of temperature: RMS speed of gas molecules: Degrees of freedom", "subtopic_hours": "1"},
103
+ {"subtopic": "Law of equipartition of energy and applications to specific heat capacities of gases", "subtopic_hours": "1"},
104
+ {"subtopic": "Mean free path", "subtopic_hours": "1"},
105
+ {"subtopic": "Avogadro's number", "subtopic_hours": "1"}
106
+ ]
107
+ },
108
+ {
109
+ "chapter": "Oscillations and Waves",
110
+ "total_hours": "17",
111
+ "subtopics": [
112
+ {"subtopic": "Oscillations and periodic motion time period, frequency, displacement as a function of time", "subtopic_hours": "1.5"},
113
+ {"subtopic": "Periodic functions", "subtopic_hours": "1.5"},
114
+ {"subtopic": "Simple harmonic motion (S.H.M.) and its equation; phase", "subtopic_hours": "1.5"},
115
+ {"subtopic": "Oscillations of a spring - restoring force and force constant: energy in S.H.M. - Kinetic and potential energies", "subtopic_hours": "1.5"},
116
+ {"subtopic": "Simple pendulum - derivation of expression for its time period", "subtopic_hours": "1.5"},
117
+ {"subtopic": "Wave motion", "subtopic_hours": "1.5"},
118
+ {"subtopic": "Longitudinal and transverse waves, speed of the traveling wave", "subtopic_hours": "1.5"},
119
+ {"subtopic": "Displacement relation for a progressive wave", "subtopic_hours": "1.5"},
120
+ {"subtopic": "Principle of superposition of waves, reflection of waves", "subtopic_hours": "1.5"},
121
+ {"subtopic": "Standing waves in strings and organ pipes, fundamental mode, and harmonics", "subtopic_hours": "1.5"},
122
+ {"subtopic": "Beats", "subtopic_hours": "1.5"}
123
+ ]
124
+ },
125
+ {
126
+ "chapter": "Electrostatics",
127
+ "total_hours": "24",
128
+ "subtopics": [
129
+ {"subtopic": "Electric charges: Conservation of charge", "subtopic_hours": "1.5"},
130
+ {"subtopic": "Coulomb's law forces between two point charges, forces between multiple charges: superposition principle and continuous charge distribution", "subtopic_hours": "1.5"},
131
+ {"subtopic": "Electric field: Electric field due to a point charge, Electric field lines", "subtopic_hours": "1.5"},
132
+ {"subtopic": "Electric dipole, Electric field due to a dipole", "subtopic_hours": "1.5"},
133
+ {"subtopic": "Torque on a dipole in a uniform electric field", "subtopic_hours": "1.5"},
134
+ {"subtopic": "Electric flux", "subtopic_hours": "1.5"},
135
+ {"subtopic": "Gauss's law and its applications to find field due to infinitely long uniformly charged straight wire uniformly charged infinite plane sheet, and uniformly charged thin spherical shell", "subtopic_hours": "1.5"},
136
+ {"subtopic": "Electric potential and its calculation for a point charge, electric dipole and system of charges: Equipotential surfaces, Electrical potential energy of a system of two point charges and electric dipole in an electrostatic field", "subtopic_hours": "1.5"},
137
+ {"subtopic": "Conductors and insulators", "subtopic_hours": "1.5"},
138
+ {"subtopic": "Free charges and bound charges inside a conductor", "subtopic_hours": "1.5"},
139
+ {"subtopic": "Dielectrics and electric polarization", "subtopic_hours": "1.5"},
140
+ {"subtopic": "Capacitance, combination of capacitors in series and in parallel", "subtopic_hours": "1.5"},
141
+ {"subtopic": "Capacitance of a parallel plate capacitor with and without dielectric medium between the plates", "subtopic_hours": "1.5"},
142
+ {"subtopic": "Energy stored in a capacitor", "subtopic_hours": "1.5"},
143
+ {"subtopic": "Van de Graaff generator", "subtopic_hours": "1.5"}
144
+ ]
145
+ },
146
+ {
147
+ "chapter": "Current Electricity",
148
+ "total_hours": "11",
149
+ "subtopics": [
150
+ {"subtopic": "Electric current", "subtopic_hours": "1"},
151
+ {"subtopic": "Flow of electric charges in a metallic conductor", "subtopic_hours": "1"},
152
+ {"subtopic": "Ohm's law, electrical resistance, V-I characteristics (linear and non-linear)", "subtopic_hours": "1"},
153
+ {"subtopic": "Electrical energy and power, electrical resistivity and conductivity", "subtopic_hours": "1"},
154
+ {"subtopic": "Carbon resistors, color code for carbon resistors", "subtopic_hours": "1"},
155
+ {"subtopic": "Series and parallel combinations of resistors", "subtopic_hours": "1"},
156
+ {"subtopic": "Temperature dependence of resistance", "subtopic_hours": "1"},
157
+ {"subtopic": "Kirchhoff's laws and simple applications", "subtopic_hours": "1"},
158
+ {"subtopic": "Wheatstone bridge", "subtopic_hours": "1"},
159
+ {"subtopic": "Metre bridge", "subtopic_hours": "1"},
160
+ {"subtopic": "Potentiometer - principle and its applications", "subtopic_hours": "1"}
161
+ ]
162
+ },
163
+ {
164
+ "chapter": "Magnetic Effects of Current and Magnetism",
165
+ "total_hours": "11",
166
+ "subtopics": [
167
+ {"subtopic": "Biot - Savart law and its application to current-carrying circular loop", "subtopic_hours": "1"},
168
+ {"subtopic": "Ampere's law and its applications to infinitely long current carrying straight wire and solenoid", "subtopic_hours": "1"},
169
+ {"subtopic": "Force on a moving charge in uniform magnetic and electric fields", "subtopic_hours": "1"},
170
+ {"subtopic": "Cyclotron", "subtopic_hours": "1"},
171
+ {"subtopic": "Force on a current-carrying conductor in a uniform magnetic field", "subtopic_hours": "1"},
172
+ {"subtopic": "Force between two parallel current-carrying conductors - definition of ampere", "subtopic_hours": "1"},
173
+ {"subtopic": "Torque experienced by a current loop in a magnetic field: moving coil galvanometer, its current sensitivity, and conversion to ammeter and voltmeter", "subtopic_hours": "1"},
174
+ {"subtopic": "Current loop as a magnetic dipole and its magnetic dipole moment", "subtopic_hours": "1"},
175
+ {"subtopic": "Magnetic dipole moment of a revolving electron", "subtopic_hours": "1"},
176
+ {"subtopic": "Magnetic field intensity due to a magnetic dipole (bar magnet) along its axis and perpendicular to its axis", "subtopic_hours": "1"},
177
+ {"subtopic": "Torque on a magnetic dipole (bar magnet) in a uniform magnetic field", "subtopic_hours": "1"},
178
+ {"subtopic": "Bar magnet as an equivalent solenoid, magnetic field lines", "subtopic_hours": "1"},
179
+ {"subtopic": "Earth's magnetic field and magnetic elements", "subtopic_hours": "1"},
180
+ {"subtopic": "Para-, dia- and ferro - magnetic substances", "subtopic_hours": "1"},
181
+ {"subtopic": "Magnetic susceptibility and permeability, Hysteresis", "subtopic_hours": "1"},
182
+ {"subtopic": "Electromagnets and permanent magnets", "subtopic_hours": "1"}
183
+ ]
184
+ },
185
+ {
186
+ "chapter": "Electromagnetic Induction and Alternating Currents",
187
+ "total_hours": "18",
188
+ "subtopics": [
189
+ {"subtopic": "Electromagnetic induction; Faraday's laws, Induced emf and current; Lenz's Law", "subtopic_hours": "2"},
190
+ {"subtopic": "Eddy currents", "subtopic_hours": "2"},
191
+ {"subtopic": "Self and mutual inductance", "subtopic_hours": "2"},
192
+ {"subtopic": "Alternating currents, peak and RMS value of alternating current/voltage", "subtopic_hours": "2"},
193
+ {"subtopic": "Reactance and impedance; LC oscillations (qualitative treatment only)", "subtopic_hours": "2"},
194
+ {"subtopic": "LCR series circuit, resonance; power in AC circuits, wattless current", "subtopic_hours": "2"},
195
+ {"subtopic": "AC generator and transformer", "subtopic_hours": "2"},
196
+ {"subtopic": "Electromagnetic waves: Characteristics of electromagnetic waves", "subtopic_hours": "2"},
197
+ {"subtopic": "Transverse nature of electromagnetic waves", "subtopic_hours": "2"},
198
+ {"subtopic": "Electromagnetic spectrum (radio waves, microwaves, infrared, visible, ultraviolet, X-rays, gamma rays) including elementary facts about their uses", "subtopic_hours": "2"}
199
+ ]
200
+ },
201
+ {
202
+ "chapter": "Optics",
203
+ "total_hours": "34",
204
+ "subtopics": [
205
+ {"subtopic": "Reflection and refraction of light at plane and spherical surfaces, mirror formula", "subtopic_hours": "2"},
206
+ {"subtopic": "Total internal reflection and its applications", "subtopic_hours": "2"},
207
+ {"subtopic": "Deviation and dispersion of light by a prism; Lens Formula", "subtopic_hours": "2"},
208
+ {"subtopic": "Magnification; Power of a Lens", "subtopic_hours": "2"},
209
+ {"subtopic": "Combination of thin lenses in contact", "subtopic_hours": "2"},
210
+ {"subtopic": "Microscope and astronomical telescope (reflecting and refracting) and their magnifying powers", "subtopic_hours": "2"},
211
+ {"subtopic": "Wave optics: wavefront and Huygens' principle", "subtopic_hours": "2"},
212
+ {"subtopic": "Reflection and refraction of plane wave at a plane surface using wavefronts", "subtopic_hours": "2"},
213
+ {"subtopic": "Proof of laws of reflection and refraction using Huygens' principle", "subtopic_hours": "2"},
214
+ {"subtopic": "Interference, Young's double slit experiment and expression for fringe width", "subtopic_hours": "2"},
215
+ {"subtopic": "Coherent sources and sustained interference of light", "subtopic_hours": "2"},
216
+ {"subtopic": "Diffraction due to a single slit", "subtopic_hours": "2"},
217
+ {"subtopic": "Rayleigh's criterion of resolution", "subtopic_hours": "2"},
218
+ {"subtopic": "Resolving power of microscopes and astronomical telescopes", "subtopic_hours": "2"},
219
+ {"subtopic": "Polarization", "subtopic_hours": "2"},
220
+ {"subtopic": "Plane polarized light; Brewster's law, uses of plane polarized light and Polaroids", "subtopic_hours": "2"}
221
+ ]
222
+ },
223
+ {
224
+ "chapter": "Dual Nature of Matter and Radiation",
225
+ "total_hours": "6",
226
+ "subtopics": [
227
+ {"subtopic": "Dual nature of radiation", "subtopic_hours": "1.5"},
228
+ {"subtopic": "Photoelectric effect, Hertz and Lenard's observations; Einstein's photoelectric equation", "subtopic_hours": "1.5"},
229
+ {"subtopic": "Particle nature of light; Matter waves-wave nature of particles, de Broglie relation", "subtopic_hours": "1.5"},
230
+ {"subtopic": "Davisson-Germer experiment", "subtopic_hours": "1.5"}
231
+ ]
232
+ },
233
+ {
234
+ "chapter": "Atoms and Nuclei",
235
+ "total_hours": "15",
236
+ "subtopics": [
237
+ {"subtopic": "Alpha-particle scattering experiments", "subtopic_hours": "1.5"},
238
+ {"subtopic": "Rutherford's model of atom", "subtopic_hours": "1.5"},
239
+ {"subtopic": "Bohr model, energy levels, hydrogen spectrum", "subtopic_hours": "1.5"},
240
+ {"subtopic": "Composition and size of nucleus, atomic masses, isotopes, isobars", "subtopic_hours": "1.5"},
241
+ {"subtopic": "Radioactivity", "subtopic_hours": "1.5"},
242
+ {"subtopic": "Alpha, beta and gamma particles/rays and their properties", "subtopic_hours": "1.5"},
243
+ {"subtopic": "Radioactive decay law, half-life and mean life of radioactivity, binding energy per nucleon and its variation with mass number", "subtopic_hours": "1.5"},
244
+ {"subtopic": "Mass-energy relation, mass defect", "subtopic_hours": "1.5"},
245
+ {"subtopic": "Fission and fusion", "subtopic_hours": "1.5"}
246
+ ]
247
+ },
248
+ {
249
+ "chapter": "Electronic Devices",
250
+ "total_hours": "10",
251
+ "subtopics": [
252
+ {"subtopic": "Semiconductors; semiconductor diode: I-V characteristics in forward and reverse bias", "subtopic_hours": "1.5"},
253
+ {"subtopic": "Diode as a rectifier; special purpose p-n junction diodes: LEDs, photodiodes, solar cells, and Zener diode and their characteristics", "subtopic_hours": "1.5"},
254
+ {"subtopic": "Zener diode as a voltage regulator", "subtopic_hours": "1.5"},
255
+ {"subtopic": "Junction transistor, transistor action", "subtopic_hours": "1.5"},
256
+ {"subtopic": "Characteristics of a transistor, transistor as an amplifier (common emitter configuration) and oscillator", "subtopic_hours": "1.5"},
257
+ {"subtopic": "Logic gates (OR, AND, NOT, NAND and NOR)", "subtopic_hours": "1.5"},
258
+ {"subtopic": "Transistor as a switch", "subtopic_hours": "1.5"}
259
+ ]
260
+ },
261
+ {
262
+ "chapter": "Communication Systems",
263
+ "total_hours": "10",
264
+ "subtopics": [
265
+ {"subtopic": "Propagation of electromagnetic waves in the atmosphere; Sky and space wave propagation", "subtopic_hours": "1"},
266
+ {"subtopic": "Need for modulation", "subtopic_hours": "1"},
267
+ {"subtopic": "Amplitude modulation, production and detection of amplitude modulation", "subtopic_hours": "1"},
268
+ {"subtopic": "Basic elements of a communication system (block diagram only)", "subtopic_hours": "1"},
269
+ {"subtopic": "Bandwidth of signals (speech, TV and digital data)", "subtopic_hours": "1"},
270
+ {"subtopic": "Bandwidth of transmission medium", "subtopic_hours": "1"},
271
+ {"subtopic": "Basic concepts of Analog and Digital communication", "subtopic_hours": "1"},
272
+ {"subtopic": "Introduction to mobile telephony", "subtopic_hours": "1"}
273
+ ]
274
+ }
275
+ ]
276
+ }
main.py ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from fastapi import FastAPI, HTTPException
3
+ from pydantic import BaseModel
4
+ import openai
5
+ from typing import List, Dict, Any
6
+ import os
7
+
8
+ app = FastAPI()
9
+
10
+ # Pydantic models for request body
11
+ class StudyInput(BaseModel):
12
+ overall_study_pattern: str
13
+ memorization_study_pattern: str
14
+ problem_solving_study_pattern: str
15
+ visualization_study_pattern: str
16
+ obstacle_study_pattern: str
17
+ new_topic_approach: str
18
+ old_topic_approach: str
19
+ topic_ratio: str
20
+ hours_of_study: str
21
+ hours_of_study_weekends: str
22
+ revision_days: str
23
+ test_days: str
24
+ physicsStartIndex: int
25
+ chemistryStartIndex: int
26
+ mathematicsStartIndex: int
27
+ completed_phy_chapters: List[str]
28
+ completed_chem_chapters: List[str]
29
+ completed_maths_chapters: List[str]
30
+
31
+ # Function to remove completed chapters
32
+ def remove_completed_chapters(subject_data, completed_chapters):
33
+ subject_data["chapters"] = [chapter for chapter in subject_data["chapters"]
34
+ if chapter["chapter"] not in completed_chapters]
35
+ return subject_data
36
+
37
+ # Function to get data at index
38
+ def get_data_at_index(json_data, index):
39
+ if 0 <= index < len(json_data['chapters']):
40
+ return json_data['chapters'][index]
41
+ else:
42
+ return {}
43
+
44
+ @app.post("/generate_roadmap")
45
+ async def generate_roadmap(study_input: StudyInput):
46
+ # Load JSON data for each subject
47
+ # Note: You'll need to adjust the file paths or include these JSON files in your Docker image
48
+ with open('Physics.json', 'r', encoding='utf-8') as file:
49
+ phy = json.load(file)
50
+ with open('Chemistry.json', 'r', encoding='utf-8') as file:
51
+ chem = json.load(file)
52
+ with open('Maths.json', 'r', encoding='utf-8') as file:
53
+ maths = json.load(file)
54
+
55
+ # Remove completed chapters
56
+ phy = remove_completed_chapters(phy, study_input.completed_phy_chapters)
57
+ chem = remove_completed_chapters(chem, study_input.completed_chem_chapters)
58
+ maths = remove_completed_chapters(maths, study_input.completed_maths_chapters)
59
+
60
+ # Get data at specified indices
61
+ phy = get_data_at_index(phy, study_input.physicsStartIndex)
62
+ chem = get_data_at_index(chem, study_input.chemistryStartIndex)
63
+ maths = get_data_at_index(maths, study_input.mathematicsStartIndex)
64
+ # Prepare user persona
65
+ user_persona = f"""
66
+ You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
67
+ The roadmap should be tailored based on the following student-specific details:
68
+
69
+ 1. *Study Preferences:*
70
+ - Study Pattern: {study_input.overall_study_pattern}
71
+ - Memorization Approach: {study_input.memorization_study_pattern}
72
+ - Problem-Solving Approach: {study_input.problem_solving_study_pattern}
73
+ - Visualization Approach: {study_input.visualization_study_pattern}
74
+
75
+ 2. *Handling Challenges:*
76
+ - If unable to understand a topic: {study_input.obstacle_study_pattern}
77
+ - Approach to New Topics: {study_input.new_topic_approach}
78
+ - Approach to Previously Encountered Topics: {study_input.old_topic_approach}
79
+
80
+ 3. *Study Hours:*
81
+ - Weekdays: {study_input.hours_of_study} hours/day
82
+ - Weekends: {study_input.hours_of_study_weekends} hours/day
83
+ - Time Allocation Ratio (Physics:Chemistry:Mathematics): {study_input.topic_ratio}
84
+ - By weekdays I mean day 1, day 2 , day 3 , day 4 , day 5
85
+ - By weekends I mean day 6 , day 7
86
+ 4. *Revision and Test Strategy:*
87
+ - The days of the week when you do revision : {study_input.revision_days}
88
+ - The days of the week when you give tests : {study_input.test_days}
89
+ """
90
+ output_structure = """{
91
+ "schedule": [
92
+ {
93
+ "dayNumber": int,
94
+ "subjects": [
95
+ {
96
+ "name": "string",
97
+ "tasks": [
98
+ {
99
+ "type": "string",
100
+ "topic": "string",
101
+ "time": "string"
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ }
107
+ ]
108
+ }
109
+ """
110
+ # Prepare system prompt
111
+ sys_prompt = f"""
112
+ You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
113
+ The roadmap should be tailored based on the following student-specific details:
114
+
115
+ The roadmap must be provided in the following format:
116
+ {output_structure}
117
+
118
+ Do not include anything other than the roadmap, and ensure the focus remains strictly on the subjects {phy}, {chem}, and {maths} and associated chapters.
119
+ MAKE SURE THAT YOU MAKE THE ROADMAP FOR ALL THE THREE CHAPTERS EACH OF PHYSICS , CHEMISTRY AND MATHS TO COMPLETE THOSE CHAPTERS WITH 4 ASPECTS i.e "CONCEPT UNDERSTANDING","QUESTION PRACTICE","REVISION","TEST". ALSO INCLUDE TIME FOR EACH TASK THAT YOU GENERATE
120
+ MAKE SURE THAT WE FIRST COMPLETE 1) CONCEPT UNDERSTANDING , 2) QUESTION PRACTICE FOR EVERY SUBTOPIC AND THEN REVISION AND TEST FOR WHOLE CHAPTER TOGETHER.
121
+ MAKE SURE THAT WE INCULDE EACH SUBTOPIC OF EACH CHAPTER FROM {phy},{chem} and {maths} IS FINISHED
122
+ YOU ARE NOT CONSTRAINED TO CREATE A ROADMAP FOR ONLY 'X' NUMBER OF DAYS , YOU CAN EXTEND TILL THE TOPICS ARE FINISHED BUT ONLY STICK TO THE TIMEFRAME ALLOTED FOR EACH SUBJECT AND DO NOT GO ABOVE OR BELOW THAT TIME FRAME.
123
+ Make sure you make the roadmap for 7-10 days only.
124
+ """
125
+
126
+ # Make OpenAI API call
127
+ openai.api_key = os.getenv("KEY") # Replace with your actual API key or use environment variables
128
+ try:
129
+ response = openai.ChatCompletion.create(
130
+ model="gpt-4o-mini",
131
+ messages=[
132
+ {
133
+ "role": "system",
134
+ "content": sys_prompt + "MAKE SURE YOU VERY VERY STRUCTLY FOLLOW THE JSON STRUCTURE BECAUSE I WILL PARSE YOUR OUTPUT TO JSON"
135
+ },
136
+ {
137
+ "role": "user",
138
+ "content": user_persona
139
+ }
140
+ ]
141
+ )
142
+
143
+ answer = response['choices'][0]['message']['content'].strip()
144
+
145
+ # Second OpenAI API call
146
+ response = openai.ChatCompletion.create(
147
+ model="gpt-4o-mini",
148
+ messages=[
149
+ {
150
+ "role": "system",
151
+ "content": f'''
152
+ you created a very good roadmap {answer} but you make sure that you dont forget any subtopics from Physics : {phy}, Chemistry : {chem} and Maths : {maths}. ensure that the style is same as the previous roadmap.
153
+ MAKE SURE YOU VERY VERY STRUCTLY FOLLOW THE JSON STRUCTURE BECAUSE I WILL PARSE YOUR OUTPUT TO JSON.
154
+ DO not include json at the top of the answer
155
+ '''
156
+ },
157
+ {
158
+ "role": "user",
159
+ "content": "Generate"
160
+ }
161
+ ]
162
+ )
163
+
164
+ final_answer = response['choices'][0]['message']['content'].strip()
165
+ parsed_json = json.loads(final_answer)
166
+
167
+ return parsed_json
168
+ except Exception as e:
169
+ raise HTTPException(status_code=500, detail=str(e))
170
+
171
+ if __name__ == "__main__":
172
+ import uvicorn
173
+ uvicorn.run(app, host="0.0.0.0", port=8000)
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ openai==0.28.0