Search engines like Google fetch results for queries, but these results are links to some content already generated by users. Instead, chat GPT is trained on the entire data of the internet, and then it produces results by analysing this data. This is called Generative AI.