Spaces:
Sleeping
Sleeping
| # prompts.py | |
| from string import Template | |
| class CoursePromptTemplates: | |
| COURSE_PLANNING = Template(""" | |
| As an expert course designer, create a comprehensive learning path for ${topic} at ${difficulty} level. | |
| Course Requirements: | |
| 1. Structure the course into 5-7 progressive modules | |
| 2. Each module should have clear prerequisites and measurable learning objectives | |
| 3. Focus on practical applications and industry relevance | |
| 4. Include real-world examples and case studies | |
| 5. Create engaging content that builds progressive understanding | |
| 6. Design interactive elements and hands-on exercises | |
| 7. Incorporate assessment mechanisms for knowledge validation | |
| Additional Parameters: | |
| - Target Audience: ${audience_level} | |
| - Expected Duration: ${duration} | |
| - Learning Style: ${learning_style} | |
| - Industry Focus: ${industry_focus} | |
| Course Structure Requirements: | |
| 1. Detailed module descriptions | |
| 2. Clear learning objectives per module | |
| 3. Prerequisites for each module | |
| 4. Key concepts and terminology | |
| 5. Practical exercises and assignments | |
| 6. Assessment criteria and quiz questions | |
| 7. Supplementary resources and references | |
| Return a structured JSON with comprehensive content for each module. | |
| """) | |
| MODULE_CONTENT = Template(""" | |
| Create detailed, engaging content for the module "${title}" aligned with these objectives: | |
| Module Objectives: ${objectives} | |
| Content Requirements: | |
| 1. Comprehensive explanations with practical examples | |
| 2. Real-world applications and case studies | |
| 3. Industry-relevant examples and scenarios | |
| 4. Step-by-step tutorials and walkthroughs | |
| 5. Interactive exercises and assignments | |
| 6. Knowledge check points and assessments | |
| 7. Key terminology and concepts | |
| 8. Common pitfalls and best practices | |
| 9. Further reading and resources | |
| Section Requirements: | |
| 1. Clear, concise explanations | |
| 2. Visual aids and diagrams where applicable | |
| 3. Code examples or technical demonstrations | |
| 4. Practice exercises and solutions | |
| 5. Quiz questions with detailed explanations | |
| Previous Knowledge Required: ${prerequisites} | |
| Target Competency Level: ${competency_level} | |
| Industry Context: ${industry_context} | |
| Return a structured JSON with detailed content for each section. | |
| """) | |
| USER_QUESTION = Template(""" | |
| As an expert tutor in ${topic}, provide a detailed response to the user's question about ${module_title}. | |
| Context: | |
| - Course Topic: ${topic} | |
| - Module: ${module_title} | |
| - Previous Modules Completed: ${completed_modules} | |
| - User's Learning Level: ${user_level} | |
| User Question: ${question} | |
| Requirements for Response: | |
| 1. Clear, comprehensive explanation | |
| 2. Practical examples and applications | |
| 3. References to course material | |
| 4. Additional resources if relevant | |
| 5. Follow-up learning suggestions | |
| Ensure the response is: | |
| - Aligned with the course material | |
| - Appropriate for the user's level | |
| - Practical and applicable | |
| - Connected to previous learning | |
| """) | |