ayushmodi001 commited on
Commit
089ffdb
·
1 Parent(s): 4a1b9af

customized prompts

Browse files
Files changed (1) hide show
  1. app/context_generator.py +4 -4
app/context_generator.py CHANGED
@@ -58,7 +58,7 @@ For each topic, provide a separate context with the following structure:
58
  1. A concise introduction to the topic
59
  2. Key technical concepts and principles
60
  3. if the difficulty is hard give context paragraph from the very detail of the topic which even a 15+ years of experienced shouldn't know about. For easy 1-2 years of experience should be able to answer medium should be somewhere in between.
61
- 4.scenario specific texts eg: To encrypt a large dataset, symmetric encryption is preferred because of its superior speed compared to the computational overhead of asymmetric encryption.
62
  5. Important considerations or limitations.
63
  6. make sure the context will be used to genearte mcqs in future so make sure to include context that would yield mcqs that are harder to answer and make the users think thrice before answering a question.
64
  7. Don't include any special chars like ,/ etc that wouldn't be parsed by python's basic json parser as it would cause an erorr in the system
@@ -114,12 +114,11 @@ The JSON must be valid and properly formatted. Each topic's context should be 3-
114
  Generate a detailed and comprehensive context about the technical topic: {topics[0]}.
115
  The difficulty level for the context should be '{difficulty}'.
116
  Since this is a single focused topic, provide 3-4 detailed paragraphs that thoroughly explore this topic.
 
117
  Include technical definitions, key concepts, practical applications, and any relevant examples.
118
  make sure the context will be used to genearte mcqs in future so make sure to include context that would yield mcqs that are harder to answer and make the users think thrice before answering a question.
119
- 7. Don't include any special chars like ,/ etc that wouldn't be parsed by python's basic json parser as it would cause an erorr in the system
120
  Make sure to include depth rather than breadth, focusing on the most important aspects of {topics[0]}.
121
- make sure the context will be used to genearte mcqs in future so make sure to include context that would yield mcqs that are harder to answer and make the users think thrice before answering a question.
122
- Don't include any special chars like ,/ etc that wouldn't be parsed by python's basic json parser as it would cause an erorr in the system.
123
  **Instructions for '{difficulty}' difficulty:**
124
  {difficulty_instruction}
125
 
@@ -140,6 +139,7 @@ Since there are multiple topics, allocate approximately equal space to each topi
140
  5. Make sure if the difficulty is hard the context includes super hard insights about the topic i mean hard then comes harder and then comes super hard.
141
  6. If the topic includes programming language include some programing snippets but make sure json parser is able to parse it on my end iam using python's basic json parser which may not be able to handle all special characters.
142
  7. If a topic isn't provided instead a subject or skill is provided like "Javascript" select the topics on your own and generate a relevant context which follows 1 to 6 points as well.
 
143
 
144
  The context should still flow as a unified text but ensure balanced coverage of all topics.
145
  Make sure to include some special application based insights to the context as the context will be used for mcq generation later on so there will be a mix of knowledge and application based mcqs from the context.
 
58
  1. A concise introduction to the topic
59
  2. Key technical concepts and principles
60
  3. if the difficulty is hard give context paragraph from the very detail of the topic which even a 15+ years of experienced shouldn't know about. For easy 1-2 years of experience should be able to answer medium should be somewhere in between.
61
+ 4.scenario specific texts eg: A developer is tasked with designing an API for a new social media platform. Considering factors like scalability and efficient data fetching, GraphQL would be a suitable choice.
62
  5. Important considerations or limitations.
63
  6. make sure the context will be used to genearte mcqs in future so make sure to include context that would yield mcqs that are harder to answer and make the users think thrice before answering a question.
64
  7. Don't include any special chars like ,/ etc that wouldn't be parsed by python's basic json parser as it would cause an erorr in the system
 
114
  Generate a detailed and comprehensive context about the technical topic: {topics[0]}.
115
  The difficulty level for the context should be '{difficulty}'.
116
  Since this is a single focused topic, provide 3-4 detailed paragraphs that thoroughly explore this topic.
117
+ scenario specific texts eg: A developer is tasked with designing an API for a new social media platform. Considering factors like scalability and efficient data fetching, GraphQL would be a suitable choice.
118
  Include technical definitions, key concepts, practical applications, and any relevant examples.
119
  make sure the context will be used to genearte mcqs in future so make sure to include context that would yield mcqs that are harder to answer and make the users think thrice before answering a question.
120
+ Don't include any special chars like ,/ etc that wouldn't be parsed by python's basic json parser as it would cause an erorr in the system
121
  Make sure to include depth rather than breadth, focusing on the most important aspects of {topics[0]}.
 
 
122
  **Instructions for '{difficulty}' difficulty:**
123
  {difficulty_instruction}
124
 
 
139
  5. Make sure if the difficulty is hard the context includes super hard insights about the topic i mean hard then comes harder and then comes super hard.
140
  6. If the topic includes programming language include some programing snippets but make sure json parser is able to parse it on my end iam using python's basic json parser which may not be able to handle all special characters.
141
  7. If a topic isn't provided instead a subject or skill is provided like "Javascript" select the topics on your own and generate a relevant context which follows 1 to 6 points as well.
142
+ scenario specific texts eg: A developer is tasked with designing an API for a new social media platform. Considering factors like scalability and efficient data fetching, GraphQL would be a suitable choice.
143
 
144
  The context should still flow as a unified text but ensure balanced coverage of all topics.
145
  Make sure to include some special application based insights to the context as the context will be used for mcq generation later on so there will be a mix of knowledge and application based mcqs from the context.