Skip to content

Commit

Permalink
Merge pull request #56 from clpetersonucf/feature/question-generation
Browse files Browse the repository at this point in the history
Enables AI Question generation
  • Loading branch information
clpetersonucf authored Oct 30, 2024
2 parents 7af688e + d33afae commit c51708c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/creator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ Enigma.controller 'enigmaCreatorCtrl', ['$scope', '$timeout', '$sce', ($scope, $

$scope.onSaveClicked = (mode = 'save') ->
qset = _buildSaveData()
msg = _validateQuestions qset
msg = if mode is 'history' then false else _validateQuestions qset
if msg
Materia.CreatorCore.cancelSave msg
else
Expand Down
6 changes: 6 additions & 0 deletions src/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ general:
is_qset_encrypted: Yes
is_answer_encrypted: Yes
is_storage_enabled: No
is_generable: Yes
api_version: 2
files:
creator: creator.html
Expand Down Expand Up @@ -41,3 +42,8 @@ meta_data:
A Jeopardy-like study and quiz tool.
Questions are separated into categorical
rows.
generation_prompt: >
Each index in the outermost items array represents a subject matter category related to the overall topic, with individual
questions contained within the inner items array for each category. Ideally, each category should contain roughly the same number
of questions. For example, if eight questions are requested, there might be two categories with four questions each. Categories should be
distinct sub-topics of the overall widget topic, and their corresponding questions should relate to the category sub-topic.

0 comments on commit c51708c

Please sign in to comment.