-
Notifications
You must be signed in to change notification settings - Fork 56
AI-powered marking #1248
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
base: master
Are you sure you want to change the base?
AI-powered marking #1248
Conversation
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.
Thanks for this feature! Quite a bit of comments. Please look through, resolve them. I do have some clarification comments as well so please answer those as well.
One question I have is when are these comments used? I couldn't find anytime in which the comments are returned/retrieved to/by the FE.
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.
Some questions about the schema
|
@sentry generate-test |
|
Sentry has determined that unit tests are not necessary for this PR. |
Description
Created a new feature to automate feedback generation of code submissions in Source Academy, with the help of LLMs. This will help save TAs some time in grading code submissions from students!
generate_ai_commentsendpoint to fetch question details and generate AI-generated comments for submissions.save_chosen_commentsendpoint to save multiple chosen comments for a submission and question for logging purposes.save_final_commentendpoint to save the final comment chosen for a submission for logging purposes.ai_comment_logstable to log various data points from inputs, original student's code, outputs generated by LLM, comments chosen, and final comment.AICommentsmodule to handle creation, retrieval, and updates for AI comments, including saving final and chosen comments.AICodeAnalysisControllerto handle AI comment generation, saving final comments, and saving chosen comments.generate_ai_comments,save_final_comment, andsave_chosen_commentsendpoints inAICodeAnalysisControllerTest.Note: This may require changes to the DB diagram in README.md.
Type of Change
Checklist