The question
The LMS recommends what a learner could do next, such as carrying on with a lesson or opening a study guideLMS · LMS AI Core · The Laravel sideStudy guidesA saved guide is shown only while it still matches the lesson as it is now. It must also match the current AI provider, model and settings.See it in the LMS build. Each recommendation has a target, which is where it leads, and a place in the list. An AI model writes its wording. How can the model write the words without choosing the target or the order?
What made it hard
The model sees lesson titles and short extracts, and that text is not trusted. The prompt, which is the instructions sent to the model, forbids new targets and changes to the order. But the LMS does not rely on that instruction alone.
What I chose
Laravel, the main LMS application, builds the recommendations itself. It uses active lessons and the learner’s course progressLMS · The platformLesson player and progressThe server decides how much of a lesson counts as done. It uses how long a video played and how long each page was open.See it in the LMS build, and ranks the results in its own code. Only then does it send short titles and extracts to the model.
When the wording comes back, Laravel goes through the recommendations it already picked. It matches each returned entry to one of them by its original place in the list. It accepts a title, a reason and an action label, once each one is checked. It never rebuilds the targets or the order from the reply. So the model cannot change where a recommendation leads. If the wording is unusable, Laravel tries again a limited number of times. After that, it gives an error saying the wording is unavailable.
Where it stands
The choosing step is ordinary code in the LMS, not a trained recommendation model. It does not call the LMS’s separate Python service. It has not been shown to improve how well learners learn.