Video goes through and explains more about how ChatGPT works, some of the attack vectors being employed but is not very detailed in terms of the math or code.For the code, go here - I will put together a dedicated repo in a bit:
https://github.com/pwdel/codepractice/tree/main/PlagiarismDe...
For a more extensive written treatment on the subject, go here:
https://www.patdel.com/plagiarism-detector/