-
Notifications
You must be signed in to change notification settings - Fork 531
Description
Similar to the questions generator (but simpler), add the mdi-robot icon to the glossary tool with the title "Generate glossary terms" (glossary_terms_generators setting).
The title of the course, together with the generic course description section, is sent to the AI provider (text mode) asking to generate a glossary. The result is then shown to the teacher to ask for approval (like in Aiken generation). If the teacher updates the textarea, fine. When validated, the terms are added to the glossary. No fuss.
The form asks to specify the prompt but offers a default prompt:
Default prompt (to be filled before showing in the form):
"Generate %d glossary terms for a course on '%s', each term on a single line, with its definition on the next line and one blank line between each term.".
If there is a general description (in course_description), add it with: " This is a short description of the course '%s'."
Terms to add to messages.pot and messages.en.po (the last terms probably already exist in those files):
- Generate glossary terms
- Generate %d glossary terms for a course on '%s', each term on a single line, with its definition on the next line and one blank line between each term.
- This is a short description of the course '%s'.
- Generate
- Import