Explainer · Updated November 28, 2026 · 4 minute read
How does ChatGPT work?
The short answer
ChatGPT works by predicting text. It is a chatbot from OpenAI built on a large language model, a system trained on a very large amount of writing. When you send a message, the model reads the whole conversation and writes a reply one small fragment at a time, choosing each fragment according to what is likely to come next.
What happens when you send a message
The app combines your message with the earlier turns of the conversation and a set of hidden instructions from OpenAI called a system prompt. That whole block of text goes to the model.
The model then writes its reply a token at a time. A token is a word or a piece of a word. After each one, the model looks at everything written so far and picks the next, which is why the answer appears on screen as a stream.
How the model was trained
The model was first trained on a very large collection of text, which adjusted billions of internal numbers until it became good at predicting the next token. What it knows is held in those numbers as patterns, and it has no stored library of documents to look things up in. Training stops at a cutoff date, so the model alone knows nothing after that point.
A second stage of training turned the text predictor into an assistant. People wrote example conversations and ranked alternative replies, and the model was tuned toward the answers they preferred.
What the app adds around the model
ChatGPT the product is the model plus features built around it, and the set changes over time.
- Web search brings in current information.
- File and image uploads let the model read documents and look at pictures.
- For some tasks it can write and run code to do calculations and analyze data.
- Memory, when it is switched on, can carry details about you from one conversation to the next.
Why it sometimes gets things wrong
The model is built to produce a likely continuation, and it has no built-in step that checks a claim against a source. When it lacks the information, it can fill the gap with something that sounds right, such as a made-up quotation or reference. This is called hallucination.
It can also lose track of details in a very long conversation, because its context window holds a limited amount of text.
Common questions
Does ChatGPT search the internet?
Yes. ChatGPT can search the web when a question needs current information, and answers that use search can include links to their sources. Many answers still come from its training data alone, so check anything that depends on recent events.
Does ChatGPT learn from my conversations?
The model does not change while you talk to it. OpenAI says it may use conversations from personal accounts to train future models unless you opt out in the data controls. Its policies change, so check OpenAI's privacy pages.