Generative AI Question Bank
Maintained by
Christian Grévisse
Automatic LLM-based generation of multiple choice and essay questions based on files stored in a Moodle course.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Thanks for pointing this out! This is something that could be adjusted in the prompt. I plan on having user-editable prompts in upcoming releases.
Best,
Christian
Are there any plans to add Japanese support in the future?
I think there is a lot of demand for it in Japan too.
Thanks,
Mizuki
Sorry to hear about these issues, which indeed go beyond this plugin. I have noticed this behavior of the Assistants API of OpenAI not being able to extract file content with some of my test files as well, but wasn't able so far to determine a pattern. Have you tried maybe to export your file to a different file format? Let's hope this will be solved by OpenAI themselves, though.
As for the failed tasks, the Moodle documentation states that "The task will be retried after 1 minute. If the task keeps failing, the retry algorithm will add more time between each successive attempts up to a max of 24 hours.". I believe there is currently no way in Moodle to remove failed adhoc tasks from the queue unless going through a database manipulation, but I might be wrong.
I will try to remove the superfluous empty question categories in case of a failure in an upcoming release.
Best,
Christian
Hi Christian, I am unable to get this working. Initially it was failing because of file extension. I resaved file as acceptable extension and had a successful task run but no questions have been generated. In the Successful run there is a message from OpenAI: 'value' => 'I couldn\'t find any information from the file you uploaded. Please try uploading the file again, or check if the content is accessible.'
In the logs, after the successful run I have another task fail. I think it is trying to rerun the old tasks I ran before? Because in the alert on the generation page there is now 3 ongoing attempts and they each keep creating categories so I have 5 categories of empty questions. Because I have deleted the old file those runs refer to, it gives a cannot find course module error.
How do I delete the old attempts so they do not keep re-running and failing? And can you advise what the OpenAi response means?
If the category remains empty after the task is finished, there was most likely an error on the generation side (in my experience, sometimes the LLM is unable to access the content of the uploaded files). You might check the task logs in the administration area. In future versions, I'll try to make generation errors more obvious, as I recognize this approach to be a bit subpar.
Unfortunately, I cannot reproduce this issue. On my end, it works well. It could rather have to do with your API key (e.g., are there enough funds in your OpenAI account ?). A quick search shows that this has been a recurring issue, maybe you can find a solution in the OpenAI Developer Forum.