Skip to content
المشاريع

حول

Moodle AIText question type that uses a Large Language Model for feedback

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Moodle AI Text Question Type

Moodle Plugin CI GitHub Release Moodle Support

by Marcus Green

🇬🇧 English · 🇩🇪 Deutsch

A Moodle question type that accepts free-text answers and grades them with a remote Large Language Model (LLM) such as ChatGPT or a self-hosted Ollama model. Each question defines its own grading prompt and optional marking scheme, so the AI evaluates responses against criteria you set.

For custom development and consultancy, contact Moodle Partner Catalyst EU.

Install from the Moodle plugins marketplace: https://marketplace.moodle.com/plugins/qtype_aitext

Changelog: https://github.com/marcusgreen/moodle-qtype_aitext/blob/main/changelog.md

Additional documentation: https://github.com/marcusgreen/moodle-qtype_aitext/wiki

Requirements

  • Moodle 4.5 or later.
  • Access to the API of an external LLM.

How it works

You supply two things per question:

  1. A prompt telling the AI how to evaluate the response.
  2. An optional marking scheme describing how to award marks.

For the question "Write an English sentence in the past tense", the prompt could be:

Explain if there is anything wrong with the grammar in this text.

And a marking scheme could be:

Give 10 marks if there are no errors, all spelling is correct and it is in the past tense. Give 0 marks if the grammar is incorrect. Deduct one mark for every word that is misspelled.

A prompt tester field in the question editing form uses AJAX to try prompts out directly, without stepping through the question preview screen.

Grading

Grading runs through two dedicated companion question behaviours rather than overriding Moodle's core behaviours:

These are separate plugins and must be installed alongside this question type, under question/behaviour/immediate_for_aitext and question/behaviour/deferred_for_aitext. Without them, AIText questions cannot be graded.

This keeps AIText grading predictable and isolated from other question types. Existing quiz attempts that used the legacy interactivecountback behaviour are migrated automatically on upgrade; attempts belonging to other question types are left untouched.

If the configured AI tools are unavailable, grading degrades gracefully instead of erroring, so an attempt is not lost.

Manual grading

AI-generated feedback can be shown to a human grader and used as a reference when marking a response manually.

Credits

Thanks to the ByCS team for ongoing extensive feedback, support encouragement, testing and contributed code since around July 2024

License

Licensed under the GNU GPL v3 or later.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…