Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -309,34 +309,33 @@ async def generate_roadmap(study_input: StudyInput):
|
|
309 |
- The days of the week when you do revision : {study_input.revision_days}
|
310 |
- The days of the week when you give tests : {study_input.test_days}
|
311 |
"""
|
312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
# Prepare system prompt
|
314 |
sys_prompt = f"""
|
315 |
You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
|
316 |
The roadmap should be tailored based on the following student-specific details:
|
317 |
|
318 |
The roadmap must be provided in the following format:
|
319 |
-
{
|
320 |
-
"schedule": [
|
321 |
-
"days": [
|
322 |
-
{{
|
323 |
-
"dayNumber": int,
|
324 |
-
"subjects": [
|
325 |
-
{{
|
326 |
-
"name": "string",
|
327 |
-
"tasks": [
|
328 |
-
{{
|
329 |
-
"type": "string",
|
330 |
-
"topic": "string",
|
331 |
-
"time": "string"
|
332 |
-
}}
|
333 |
-
]
|
334 |
-
}}
|
335 |
-
]
|
336 |
-
}}
|
337 |
-
]
|
338 |
-
]
|
339 |
-
}}
|
340 |
|
341 |
Do not include anything other than the roadmap, and ensure the focus remains strictly on the subjects {phy}, {chem}, and {maths} and associated chapters.
|
342 |
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
|
|
|
309 |
- The days of the week when you do revision : {study_input.revision_days}
|
310 |
- The days of the week when you give tests : {study_input.test_days}
|
311 |
"""
|
312 |
+
output_structure = """{
|
313 |
+
"schedule": [
|
314 |
+
{
|
315 |
+
"dayNumber": int,
|
316 |
+
"subjects": [
|
317 |
+
{
|
318 |
+
"name": "string",
|
319 |
+
"tasks": [
|
320 |
+
{
|
321 |
+
"type": "string",
|
322 |
+
"topic": "string",
|
323 |
+
"time": "string"
|
324 |
+
}
|
325 |
+
]
|
326 |
+
}
|
327 |
+
]
|
328 |
+
}
|
329 |
+
]
|
330 |
+
}
|
331 |
+
"""
|
332 |
# Prepare system prompt
|
333 |
sys_prompt = f"""
|
334 |
You are required to generate a highly personalized roadmap for a student studying Physics, Chemistry, and Mathematics for the JEE Main exam.
|
335 |
The roadmap should be tailored based on the following student-specific details:
|
336 |
|
337 |
The roadmap must be provided in the following format:
|
338 |
+
{output_structure}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
Do not include anything other than the roadmap, and ensure the focus remains strictly on the subjects {phy}, {chem}, and {maths} and associated chapters.
|
341 |
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
|