AK1239 commited on
Commit
8a1b729
·
1 Parent(s): 3078283

feat: updated prompt with better instructions

Browse files
Files changed (1) hide show
  1. app/main.py +2 -1
app/main.py CHANGED
@@ -289,7 +289,8 @@ def generate_response_with_rag(prompt, index, embedding_model, documents, settin
289
  Explain the topic of "{settings['topic']}" in detail following this structure:
290
  1. Summary: Briefly explain what the student will learn in this topic (5-6 sentences).
291
  2. Introduction to the topic: Provide background information about the topic before breaking it down into subtopics.
292
- 3. Subtopics: Explain each subtopic in detail, providing real-life examples where necessary. For each subtopic, Describe images that could help explain the topic in detail using text instead of actual images. Use this format: [Picture: Image description]. The total number of images should not exceed 3.
 
293
  4. Activities: After each subtopic, provide small exercises or activities that the student can do to enhance understanding (Activities).
294
  5. Practice questions: Provide 6-8 questions related to the topic to reinforce the student's understanding.
295
 
 
289
  Explain the topic of "{settings['topic']}" in detail following this structure:
290
  1. Summary: Briefly explain what the student will learn in this topic (5-6 sentences).
291
  2. Introduction to the topic: Provide background information about the topic before breaking it down into subtopics.
292
+ 3. Subtopics: Explain each subtopic in detail, providing real-life examples where necessary. For each subtopic, Describe images that could help explain the topic in detail using text instead of actual images.
293
+ Use this format: [Picture: Image description]. Dont provide more than 3 [Picture: Image description].
294
  4. Activities: After each subtopic, provide small exercises or activities that the student can do to enhance understanding (Activities).
295
  5. Practice questions: Provide 6-8 questions related to the topic to reinforce the student's understanding.
296