ChatGPT answers questions by generating responses based on its training data. It combines a large amount of data from the internet, patterns, facts, reasoning abilities, and its understanding of language, along with its programmed understanding of the question to provide an answer. It doesn’t know the specific documents in its training data or have access to personal data unless shared in the conversation.