Since its release, the public has been playing with ChatGPT and seeing what it can do, but how does ChatGPT actually work?