Suggested Tasks Module: Done!
tldr: the website now suggests assignments using ai inferencing, and catches duplicates with pre-existing tasks after a LOT of wrestling with the prompts.
Alright, the title is a bit deceiving, it’s not the best right now. As you might know, I’m trying to get my website to automatically pull Canvas Assignments, and not only that but also read teacher announcements and use an AI model to inference what assignments the teacher put in the announcements.
Now, the assignment maker thingy works, it creates proposed tasks pretty appropriately and more or less catches everything. Of course, the user shouldn’t rely entirely on the AI since it’s quite experimental but at least it works. The issue with that though is that the AI that makes the tasks doesn’t know what tasks the user already has (the stuff that’s auto imported from canvas, which is super consistent because it’s literally canvas’s data). So, I had to build a duplicate checker, which is another ai model that compares the task that’s proposed with plausible other tasks in a time frame in the same class.
If it believes it’s the same assignment, it’ll display a warning telling the student it’s likely the same task as X. IT WAS SO HARD GETTING THE OLLAMA MODEL TO RETURN ACCURATE JSON AND ACTUALLY INFERENCE CORRECTLY BUT I DID IT.
(some info in the ss is redacted for my privacy :))