marvelai-org / marvel-ai-backend

This is the Marvel Teaching Assistant ai repo.
MIT License
17 stars 85 forks source link

Epic 7.71 Syllabus Generator #89

Open AmineRaouane opened 3 months ago

AmineRaouane commented 3 months ago

Pull Request - Epic 7.71 Syllabus Generator

Summary

This pull request introduces major enhancements to the syllabus generator feature in the Kai backend project. The updated functionality enables educators to create comprehensive syllabi tailored to specific classes by providing details such as grade level, subject, syllabus type, and instructions. This AI-driven tool now supports downloadable PDF and Word formats and integrates a meme generator to add relevant visuals, making the process more engaging and enjoyable for educators and students.

Changes

Testing

Results

The enhancements introduced in this pull request significantly improve the dynamic, personalized, and aligned nature of the syllabus generation process. The final output is a detailed syllabus that covers all necessary components, tailored to the specific needs of educators based on grade, subject, syllabus type, and instructions.

Notes

How to Test

  1. Environment Variables:
    • Create a programmable search engine and a Reddit account.
    • Set the following variables in the .env file:
      SEARCH_ENGINE_ID
      API_KEY
      NAME
      PASSWORD
      CLIENT_ID
      CLIENT_SECRET
      USER_AGENT
  2. Install Dependencies:
    
    pip install -r requirements.txt
  3. Navigate to the Syllabus Generator:
    
    cd app/features/syllabus_generator
  4. Run the Tests:
    
    pytest tests/
  5. Run the Application Locally:
    
    uvicorn app.main:app --reload
  6. Docker Setup:
    
    docker build -t kai_ai .
    docker run -d -p 8000:8000 kai_ai

Screenshots

docker default example