New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a level-specific prompt field to AI Tutor section of levelbuilder #57051
Conversation
dashboard/app/views/levels/editors/fields/_aitutor_fields.html.haml
Outdated
Show resolved
Hide resolved
dashboard/app/views/levels/editors/fields/_aitutor_fields.html.haml
Outdated
Show resolved
Hide resolved
Looking good! A couple of questions for discussion 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! A couple clean up comments and one question for my understanding
apps/src/sites/studio/pages/levels/editors/fields/_ai_tutor_fields.js
Outdated
Show resolved
Hide resolved
apps/src/sites/studio/pages/levels/editors/fields/_ai_tutor_fields.js
Outdated
Show resolved
Hide resolved
id="levelPrompt" | ||
value={levelSpecificPrompt || ''} | ||
className={moduleStyles.textarea} | ||
placeholder={`Enter a prompt specific to this level to be added with the default AI Tutor system prompt:\n${generalChatSystemPrompt}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be more helpful to have this information above the input box so users can see the general prompt while they are writing, rather than before they start?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@molly-moen What do you think of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that looks good!
dashboard/app/views/levels/editors/fields/_ai_tutor_fields.html.haml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Added the prompt as a property to levels (see test level below) and added that prompt, when present, to the end of the default system prompt for all three modes of AI Tutor.
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Checklist: