Skip to content

About

A moodle activity plugin that generates quizzes with the help of AI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIQuiz

AIQuiz is a Moodle plugin that generates quizzes dynamically using artificial intelligence. It leverages the OpenAI API to create questions and answers based on syllabus PDFs or other content, allowing educators to effortlessly build personalized, AI-powered assessments. The plugin also supports PDF parsing and merging, enabling easy extraction of text and integration of multiple documents.

Key features include:

  • Automatic question generation from uploaded syllabus PDFs.
  • Automatic feedback generation for each user attempt of the quiz.
  • Easy setup and configuration with Moodle’s standard plugin interface.
  • The same funcitonalities the Moodle Core Quiz module offer, like report viewing, and user and group overrides for quizzes.

Requirements

  1. PHP 8.1 or higher
  2. Composer
  3. Ghostscript
    • Download the latest Windows build from the official site:
      https://www.ghostscript.com/releases/gsdnld.html
    • Run the installer.
    • Add the installation directory to your Windows PATH.
    • In that directory, locate gswin64c.exe (or gswin64.exe) and rename it to gs.exe.
  4. PHP Libraries (install via Composer)
    • FPDF (PDF generation)
      composer require setasign/fpdf
    • FPDI (PDF page import extension for FPDF)
      composer require setasign/fpdi
    • PDFParser (extract text from existing PDFs)
      composer require smalot/pdfparser
    • openai-php/client (OpenAI API client)
      composer require openai-php/client
  5. OpenAI API Key
    • Set the OpenAI API key from the the plugins settings page.
    • You can get your API key from the OpenAI website.

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.

Installing manually

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/mod/aiquiz

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

About

A moodle activity plugin that generates quizzes with the help of AI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages