Large language model (LLM)
At the heart of chat AI is a large language model: a program that has read enormous amounts of text and learned which words are likely to come next. Asked a question, it does not retrieve a stored answer; it writes plausible next words. That is why fluent sentences can still be factually wrong.