Claude is a large language model built by Anthropic. It is trained on a large mix of text and other data, tuned with feedback to behave as a helpful assistant, and then, on every message you send, it reads the whole conversation so far and writes a reply.
This article follows that path in order: what goes into training, how the model is tuned, and what happens each time you press send. Details were checked against Anthropic's own pages in November 2026. Anthropic does not publish the full recipe, so where its pages are silent, this article says so. For a product overview instead, see what Claude is and where to use it.
What is Claude trained on?
Anthropic's Transparency Hub describes the training data of its recent models as a proprietary mix. The wording for the latest entries lists:
- publicly available information from the internet
- public and private datasets
- user data included in feedback or bugs, or which users have explicitly permitted for training
- synthetic data generated by other models
The same page says Anthropic used "several data cleaning and filtering methods, including deduplication and classification." It does not list specific datasets or filtering criteria, so nobody outside Anthropic can say exactly what Claude has read.
Where does the web data come from?
Part of it comes from Anthropic's crawler. Its help center says Anthropic uses a variety of robots to gather data from the public web, and that ClaudeBot is the one that collects content that could contribute to training. The bots honor standard robots.txt directives and, according to the article, will not try to bypass CAPTCHAs.
A site owner who does not want to be crawled for training can add this to robots.txt:
User-agent: ClaudeBot
Disallow: /
The help center says blocking by IP address is discouraged, because it can stop Anthropic from reading your robots.txt at all.
How is Claude tuned to act like an assistant?
Training on text alone produces a model that continues text. A further stage shapes it into an assistant. Anthropic has published one method for this, called Constitutional AI, with these steps:
- Critique and revise. An initial model writes responses, critiques them against a list of written principles (the "constitution"), and revises them. The model is then fine-tuned on the revised responses.
- Learn from AI preferences. The fine-tuned model produces pairs of answers, and another model judges which answer is better under the principles. Those judgments train a preference model, which then acts as the reward signal for reinforcement learning. Anthropic calls this RL from AI feedback (RLAIF).
Anthropic's description says the only human oversight in this method is the list of principles, and that the result is an assistant that engages with harmful questions by explaining its objections instead of refusing to answer. That page describes the research method. It does not say how much of any current Claude model's training uses it, and Anthropic's pages do not give the full current pipeline.
What happens when you send a message?
The model does not keep a running memory of you. According to Anthropic's context window documentation, each turn works like this:
- Input. The request contains all previous conversation history plus your new message. Everything in the request counts: the system prompt, every message, tool results, images, documents and tool definitions.
- Output. The model generates a text reply. That reply becomes part of the input for the next turn.
This is why a long chat gets heavier with every turn. Each reply is generated from a growing pile of earlier text. For how that text is counted, see how many tokens is a word, and for what it costs through the API, how LLM API pricing works.
What is the context window?
The context window is all the text the model can reference when generating a response, including the response itself. The documentation calls it a "working memory" and separates it from the large body of data the model was trained on.
As of November 2026, the docs list a 1M-token context window for Claude Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5, and a single request can generate up to 128k output tokens. Some older models have 200k tokens. The docs also warn that a bigger window is not automatically better: as the token count grows, accuracy and recall degrade, an effect Anthropic calls context rot.
When a conversation outgrows the window, what happens depends on where you use Claude:
- In chat interfaces such as claude.ai, the docs say the context can be managed on a rolling first-in, first-out basis, so the oldest material drops out first.
- Through the API, if the input alone exceeds the window, the request fails with a 400
invalid_request_error("prompt is too long"). Developers can use server-side compaction, which summarizes earlier parts of the conversation, or context editing to clear old tool results.
What does "thinking" do?
Some Claude models can reason before they answer. Anthropic's docs say thinking tokens count toward the context window, are billed as output tokens, and are a subset of the max_tokens limit. With adaptive thinking, Claude decides how much to think, so usage varies from request to request.
Whether earlier thinking stays in the conversation depends on the model. On the newer models listed in the docs, including Fable 5.1 and Haiku 5.5, previous thinking blocks are kept by default. On earlier models they are stripped automatically.
How does Claude use tools?
Tools extend what Claude can do beyond text it already has. In the documented flow, Claude's reply can include a tool use request, your software runs the tool, and the result goes back in as a tool_result in the next input. The model then continues from that result. Tool definitions and results use up context like any other text. The same loop is the basis of an AI agent.
What Claude does not do
- It does not look things up unless a tool lets it. Without tools, answers come from training and the conversation.
- It works from the context window, not from a profile of you. What it can see in a reply is the text in the request. Whether your data is used for later training depends on your account terms, as described in the Transparency Hub.
- It is not guaranteed to be right. Treat output as a draft, and check anything important.
Frequently asked questions
- Does Claude remember my earlier conversations?
- Not by itself. Anthropic's API documentation says each request carries the full conversation history plus the new message, and the model works from that text. Anything outside the request is not visible to the model unless a feature such as a memory tool adds it. Check your app's settings for what memory features it offers.
- Does Claude search the internet to answer?
- Only if a tool for it is enabled. Without tools, Claude answers from what it learned in training and from the text in your conversation. Anthropic's crawler collects public web pages before training, which is a separate step from answering you.
- Is my conversation used to train Claude?
- It depends on your plan and settings. Anthropic's Transparency Hub says recent models include user data that was included in feedback or bug reports, or that users explicitly permitted for training. Read the privacy settings of your account for the current choice, because they change.
- Why does Claude sometimes get things wrong?
- Claude generates text from patterns learned in training and from your conversation, and it can state wrong things confidently. Anthropic's documentation also says accuracy and recall degrade as the context grows. Verify anything important against a primary source.