Spaces:
Sleeping
Sleeping
Create prompts.py
Browse files- prompts.py +88 -0
prompts.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# prompts.py
|
| 2 |
+
from string import Template
|
| 3 |
+
|
| 4 |
+
class CoursePromptTemplates:
|
| 5 |
+
COURSE_PLANNING = Template("""
|
| 6 |
+
As an expert course designer, create a comprehensive learning path for ${topic} at ${difficulty} level.
|
| 7 |
+
|
| 8 |
+
Course Requirements:
|
| 9 |
+
1. Structure the course into 5-7 progressive modules
|
| 10 |
+
2. Each module should have clear prerequisites and measurable learning objectives
|
| 11 |
+
3. Focus on practical applications and industry relevance
|
| 12 |
+
4. Include real-world examples and case studies
|
| 13 |
+
5. Create engaging content that builds progressive understanding
|
| 14 |
+
6. Design interactive elements and hands-on exercises
|
| 15 |
+
7. Incorporate assessment mechanisms for knowledge validation
|
| 16 |
+
|
| 17 |
+
Additional Parameters:
|
| 18 |
+
- Target Audience: ${audience_level}
|
| 19 |
+
- Expected Duration: ${duration}
|
| 20 |
+
- Learning Style: ${learning_style}
|
| 21 |
+
- Industry Focus: ${industry_focus}
|
| 22 |
+
|
| 23 |
+
Course Structure Requirements:
|
| 24 |
+
1. Detailed module descriptions
|
| 25 |
+
2. Clear learning objectives per module
|
| 26 |
+
3. Prerequisites for each module
|
| 27 |
+
4. Key concepts and terminology
|
| 28 |
+
5. Practical exercises and assignments
|
| 29 |
+
6. Assessment criteria and quiz questions
|
| 30 |
+
7. Supplementary resources and references
|
| 31 |
+
|
| 32 |
+
Return a structured JSON with comprehensive content for each module.
|
| 33 |
+
""")
|
| 34 |
+
|
| 35 |
+
MODULE_CONTENT = Template("""
|
| 36 |
+
Create detailed, engaging content for the module "${title}" aligned with these objectives:
|
| 37 |
+
|
| 38 |
+
Module Objectives: ${objectives}
|
| 39 |
+
|
| 40 |
+
Content Requirements:
|
| 41 |
+
1. Comprehensive explanations with practical examples
|
| 42 |
+
2. Real-world applications and case studies
|
| 43 |
+
3. Industry-relevant examples and scenarios
|
| 44 |
+
4. Step-by-step tutorials and walkthroughs
|
| 45 |
+
5. Interactive exercises and assignments
|
| 46 |
+
6. Knowledge check points and assessments
|
| 47 |
+
7. Key terminology and concepts
|
| 48 |
+
8. Common pitfalls and best practices
|
| 49 |
+
9. Further reading and resources
|
| 50 |
+
|
| 51 |
+
Section Requirements:
|
| 52 |
+
1. Clear, concise explanations
|
| 53 |
+
2. Visual aids and diagrams where applicable
|
| 54 |
+
3. Code examples or technical demonstrations
|
| 55 |
+
4. Practice exercises and solutions
|
| 56 |
+
5. Quiz questions with detailed explanations
|
| 57 |
+
|
| 58 |
+
Previous Knowledge Required: ${prerequisites}
|
| 59 |
+
Target Competency Level: ${competency_level}
|
| 60 |
+
Industry Context: ${industry_context}
|
| 61 |
+
|
| 62 |
+
Return a structured JSON with detailed content for each section.
|
| 63 |
+
""")
|
| 64 |
+
|
| 65 |
+
USER_QUESTION = Template("""
|
| 66 |
+
As an expert tutor in ${topic}, provide a detailed response to the user's question about ${module_title}.
|
| 67 |
+
|
| 68 |
+
Context:
|
| 69 |
+
- Course Topic: ${topic}
|
| 70 |
+
- Module: ${module_title}
|
| 71 |
+
- Previous Modules Completed: ${completed_modules}
|
| 72 |
+
- User's Learning Level: ${user_level}
|
| 73 |
+
|
| 74 |
+
User Question: ${question}
|
| 75 |
+
|
| 76 |
+
Requirements for Response:
|
| 77 |
+
1. Clear, comprehensive explanation
|
| 78 |
+
2. Practical examples and applications
|
| 79 |
+
3. References to course material
|
| 80 |
+
4. Additional resources if relevant
|
| 81 |
+
5. Follow-up learning suggestions
|
| 82 |
+
|
| 83 |
+
Ensure the response is:
|
| 84 |
+
- Aligned with the course material
|
| 85 |
+
- Appropriate for the user's level
|
| 86 |
+
- Practical and applicable
|
| 87 |
+
- Connected to previous learning
|
| 88 |
+
""")
|