Neural networks help AI identify consistent patterns based on the connections it can find in the days its trained on. AI chat works by trying to predict the likely completion of something. Here is ChatGPT's answer but googles will be better