DEV Community

Cover image for Effective De-bloating, Refining purpose
Xauntasia Mabry
Xauntasia Mabry

Posted on

Effective De-bloating, Refining purpose

After getting the homeschool app logistically up and running, I started doing some investigation into the content that was actually being generated. In that research, I realized that my use of Copilot definitely bloated the logic that I originally had for my backend. Initially the workflow generated text that was then stored in S3, used the generated text to try to generate an image, store the image and then did a parse of both content types to try to put together a worksheet according to my criteria, but the results were lack luster. So I did a few things:

  • I changed the model from image generation to using one that can generate markdown or rich text type of output so that the result is more readable and more easy to structure into a paginated worksheet. For this, I used Mistral Large as my primary model and got exponentially better content.
  • Improved the prompt that was being passed in to invoke the model. Since I'm not really looking for conversational or chat type of engagement, I need to make sure that the prompt I'm sending to the model actually includes something that sets the tone of the structure of the response I want
  • Kept the temperature low. I didn't even notice the temperature that was provided by CoPilot when it was developing the framework of the generator function and it was high. So when I was looking at the results, I was confused. The question "is this even a word in any language?" was front and center. I appreciated the creativity, but...because this is educational I had to back that down a good bit.

Lastly, I did some more research about the way we need to make sure that applications catering to education must also account for any type of compliance. I learned about COPPA with the help of ChatGPT and understanding what I would need to incorporate in my application to account for meeting the age requirement for using the site since I want this for parents seeking material for their kids. This took me through the exercise of adding new sections to the front end and a way to use a date picker that helps make sure that I only let people who use a birthday that's appropriate to be eligible for logging in to the site. I still haven't set up a sign up capability, simply for cost effectiveness and security purposes, but I'm evaluating that option.

Top comments (0)