Skip to content

Commit de71f52

Browse files
author
rmmayo
committed
#331 - document AI grading feature for Text Input Questions
1 parent 4ffe09b commit de71f52

6 files changed

Lines changed: 92 additions & 2 deletions

File tree

cypress/e2e/admin-quiz_and_surveys.cy.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ context('Admin: Generate Quiz and Surveys Screenshots', () => {
145145
cy.snap('component-quiz-grading-email-subscriptions', '[data-cy="quizRunsToGradeTable"] [data-pc-section="header"]');
146146
})
147147

148+
it('quiz configure ai grading page', () => {
149+
// going to expect email server is already configured
150+
cy.viewport(1100, 500);
151+
cy.visit('/administrator/quizzes/ChessInsight')
152+
cy.get('[data-cy="ai-grader-question-1"]').click()
153+
cy.get('[data-cy="aiGraderEnabled"]').click()
154+
155+
const answerForGrading = '- Control the Center{enter}- Develop Your Pieces{enter}- Ensure King Safety (Castling)'
156+
cy.get('[data-cy="answerForGrading"]').type(answerForGrading)
157+
cy.snap('page-quiz-ai-grading-config');
158+
})
148159

149160
it('quiz survey page', () => {
150161
// cy.viewport(1100, 500);

docs/.vuepress/components/Since.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defineProps(['version', 'project', 'isBlock'])
55

66
<template>
77
<span class="since" :class="{ 'd-block' : isBlock }">
8-
🕓 Since <span class="badge bg-warning text-dark"><span class="since-value">{{ project }}:{{ version }}</span></span>
8+
🕓 Since <span class="badge bg-warning text-dark"><span class="since-value">version {{ version }}</span></span>
99
</span>
1010
</template>
1111

docs/dashboard/install-guide/config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,12 @@ skills.openai.key=your-api-key-here
565565
# Optional: Default temperature setting (0.0 to 1.0, where 0 is more deterministic)
566566
# skills.config.ui.openaiModelDefaultTemperature=0.5
567567

568+
# Required: Model used for AI grading
569+
skills.config.ui.gradingModel=gpt-4
570+
571+
# Optional: Temperature used for AI grading setting (default: 0.0)
572+
# skills.config.ui.gradingModelTemperature=0.5
573+
568574
# Optional: Custom footer message to display in the AI Assistant interface
569575
# skills.config.ui.openaiFooterMsg=AI-generated content should be reviewed before use
570576
```

docs/dashboard/user-guide/ai-assistant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AI Assistant
1+
# AI Assistant <since project="skills-service" version="4.0" />
22

33
SkillTree's AI Assistant is a powerful tool that helps administrators create high-quality learning content quickly and efficiently. The AI Assistant is integrated throughout the SkillTree Dashboard, providing automated content generation for various components of your learning ecosystem.
44

docs/dashboard/user-guide/quizzes-and-surveys.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,79 @@ A table of quiz attempts that contain ``Input Text`` questions will be displayed
134134
Once expanded answers can be marked as either "Correct" or "Wrong", in addition a justification can be provided.
135135
Once all the answers are marked as either correct or wrong, the system will grade the quiz attempt in its entirety considering all the questions in this quiz.
136136

137+
#### **AI-Powered Grading for Text Input Questions** <since project="skills-service" version="4.1" />
138+
139+
SkillTree now supports AI-powered grading for text input questions, enabling automated evaluation of free-form responses using Large Language Models (LLMs). This feature helps reduce the manual grading burden while maintaining consistent and accurate assessment.
140+
141+
**Key Features:**
142+
- **Automated Grading**: Text input answers are automatically graded using AI models
143+
- **Confidence Scoring**: AI provides confidence levels for each grading decision
144+
- **Configurable Thresholds**: Administrators set minimum confidence levels for automatic grading
145+
146+
##### Configuring AI Grading
147+
148+
To enable AI grading for text input questions:
149+
150+
1. Navigate to the ``Quizzes and Surveys -> Quiz -> Questions`` page
151+
2. Click on the **AI Grader** button next to the Input Text question
152+
3. Configure the following settings:
153+
154+
| Setting | Description |
155+
|:---------------------------------|:------------------------------------------------------------------------------------------------------------------|
156+
| **AI Grader Enabled** | Toggle to activate AI-powered grading for text input questions |
157+
| **Grading Instructions** | Enter grading instructions, including a preferred answer and any specific criteria for the AI to evaluate answers |
158+
| **Minimum Correct Confidence %** | Set the confidence threshold (1-100%) for automatic grading |
159+
160+
##### AI Grading Process
161+
162+
When AI grading is enabled:
163+
164+
1. **Automatic Submission**: Text input answers are automatically submitted for AI evaluation after quiz completion
165+
2. **AI Evaluation**: The configured AI model assesses each answer based on your grading instructions
166+
3. **Confidence Assessment**: The AI provides a confidence score for each grading decision
167+
4. **Result Processing**:
168+
- Answers meeting or exceeding the minimum confidence level are automatically graded as correct
169+
- Answers below the threshold are graded as incorrect
170+
5. **Final Grading**: The quiz attempt is finalized once all answers are graded (either automatically or manually)
171+
172+
##### AI Grading Preview
173+
174+
While configuring AI grading for your text input questions, you can test and refine your grading configuration using the AI Grading Preview feature. This allows you to enter sample answers and see how the AI model will grade them based on your current settings.
175+
176+
To use the AI Grading Preview, enter a sample answer in the **Answer** field and click the **Test Answers** button. This will show you the AI's grading decision, confidence level, and justification for each answer based on the current settings.
177+
178+
**What the Preview Shows:**
179+
180+
- **Grading Decision**: Whether the AI would mark the answer as correct or incorrect
181+
- **AI Confidence Level**: The AI's confidence level in its grading decision (0-100%)
182+
- **AI Justification**: The AI's explanation for why it made that particular grading decision
183+
184+
**Using Preview Results to Refine Settings:**
185+
186+
- **Adjust Grading Instructions**: If the AI is consistently grading incorrectly, modify your grading instructions to be more specific
187+
- **Fine-tune Confidence Thresholds**: Based on preview results, adjust your minimum confidence percentage
188+
- **Test Edge Cases**: Try various answer formats, partial answers, and common misconceptions
189+
- **Iterate and Improve**: Continue testing until the AI's grading aligns with your expectations
190+
191+
**Best Practices for Preview Testing:**
192+
193+
- **Use Real User Answers**: Test with actual answers users might provide, not just ideal responses
194+
- **Cover Multiple Scenarios**: Include correct answers, partially correct answers, and completely incorrect answers
195+
- **Validate Consistency**: Ensure similar answers receive similar grading decisions
196+
- **Document Decisions**: Keep notes of which preview results you agree or disagree with for future reference
197+
198+
The AI Grading Preview helps ensure your AI grading configuration will work effectively before deploying it to live quiz attempts, reducing the need for manual corrections after implementation.
199+
200+
##### Monitoring AI Grading
201+
202+
Administrators can monitor AI grading results by visiting the [Runs](/dashboard/user-guide/quizzes-and-surveys.html#runs) page and then selecting the run details button to the right of the user to view details of that particular Quiz/Survey run..
203+
204+
##### Best Practices for AI Grading
205+
206+
- **Clear Grading Criteria**: Provide detailed, specific instructions for what constitutes correct answers
207+
- **Appropriate Confidence Thresholds**: Start with conservative thresholds (70-80%) and adjust based on AI performance
208+
- **Regular Review**: Periodically review AI-graded answers to ensure accuracy and consistency
209+
137210
#### Grading Notifications
138211
SkillTree will send email notifications to quiz administrators when grading is requested, and also send email notifications to quiz takers when answers are graded.
139212

143 KB
Loading

0 commit comments

Comments
 (0)