Learning Platform customisations

Hi All,

I’m building a learning platform using GPT/OpenAI and I want to restrict the subject matter so they only can ask questions relating to the existing subject being taught and not other random questions that are unrelated, how can I do this? Can I use GPT to read the prompts and filter? Really need your help on this, thank you.