Chatbots like ChatGPT, Gemini and Claude run on large language models. Here's what they are, how they work and why they sometimes get things confidently wrong.