# Context

- **Canonical URL:** https://getaimath.com/dictionary/context/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/), [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/)
- **Last updated:** 2026-11-25

## What is Context?

**In one sentence:** Context is all the information an AI model can see when it answers, such as your message, earlier messages and any documents you give it.

A model does not remember you between chats by default. It only knows what is placed in its context right now. If you add useful details, like your goal or an example, its answers usually get much better. Anything outside the context, it cannot see.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Context?

If you paste an article into a chat and ask for a summary, the article becomes part of the model's context.

## Why does Context matter?

Giving the right context is one of the easiest ways to get better answers from AI.

## Related Concepts

- [Latent Space](https://getaimath.com/dictionary/latent-space/): Latent space is the hidden map inside a model where every input is placed as a point based on its meaning or features.
- [Context Window](https://getaimath.com/dictionary/context-window/): The context window is the maximum amount of text, measured in tokens, that a model can look at in one go.
- [Semantic Representation](https://getaimath.com/dictionary/semantic-representation/): A semantic representation is a way of storing the meaning of text or data so a computer can work with it.
- [Context Length](https://getaimath.com/dictionary/context-length/): Context length is the number of tokens a model can handle at once, or how many tokens are currently being used.
- [Embedding](https://getaimath.com/dictionary/embedding/): An embedding is a list of numbers that represents the meaning of something, like a word, sentence or image.
- [Input Tokens](https://getaimath.com/dictionary/input-tokens/): Input tokens are the tokens you send to a model, including your prompt, instructions and any documents.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/context/)
