From my understanding, for ChatGPT to gives answers like these, it might have been fed similar text during the training process. In another word, the model itself is not alive or predicting in any sense. It just uses training samples to synthe