ChatGPT is built on a dataset of more than 100 billion words, which includes a wide range of text from books, articles, and websites. This allows ChatGPT to have a broad range of knowledge and to generate responses that are appropriate for a wide variety of topics.