Minds

How AI understands conversation context

An AI understands context by reading it: the app places your message, the thread and saved details in front of the model at once. What gets in, and what fails.

By Michael McIntyre ยท Updated

AI understands context by reading it. For each request, a language model can use only the context supplied to it, so the app around it gathers the relevant text (your new message, the conversation so far, and anything saved or looked up) and places all of it in front of the model at once. The model then writes a reply that fits what it was shown. How well an AI understands conversation context comes down to two things: what was put in front of it, and how well it weighs what is there.

How does AI understand context?

Everything sits in one window

The space a model reads from is called the context window. Anthropic's documentation for its Claude models describes the context window as "all the text a language model can reference when generating a response, including the response itself," and as a working memory that is separate from the data the model was trained on.

That is the whole of what the model has about your conversation. If a detail is in the window, the model can use it. If it is not, then for this reply it does not exist.

Each part is read against the others

Inside the window, the model does not take words one at a time in isolation. It weighs each part of the text against the rest. That is how "she" gets tied to the right person three lines up, and how "great" after bad news can be read as the opposite of great.

The app chooses what goes in

The model sees only the window, and the software around it decides what the window holds: the earlier turns, any saved memories, messages fetched from an account you connected, a note on who is who. Much of what feels like an AI knowing you is this gathering step. How a personal AI assistant works follows it through one request.

Four layers of conversation context

A message sits inside several layers of context. The four here are this page's own sorting.

  1. The message. The words, the punctuation, the emoji.
  2. The thread. What was said just before it, and by whom.
  3. The history. How this person usually writes, and what has happened between you over months.
  4. The situation. What happened off the screen: the phone call, the exam this morning, the argument at dinner.

An AI has the first layer whenever you show it a message. It has the second if the thread is in the window. It has the third only if something stored that history and fetched the right part. It has the fourth only if you say so.

One message, read with more and more context

Take a reply from a friend: "Wow, thanks."

The message alone. Thanks, with some surprise. It could be sincere or sarcastic, and an honest reading says it cannot tell.

With the thread. The line before was yours: "Can't make Saturday after all, sorry." Sarcasm is now the likelier reading.

With the history. She writes "wow, thanks" about nearly everything, good news included. That softens it. You have also canceled on her twice this spring. That sharpens it again.

With the situation. She heard an hour ago that she did not get the job. Her reply may have little to do with you.

Each layer changed the reading. A tool that sees one pasted message is working from the first layer, which is the limit AI reply generators: what one pasted message gets you describes. Comparing a message with the sender's usual style is the method in how to read tone in a text message.

Where does it go wrong?

How can you give an AI better context?

  1. Say who the person is to you. One line is enough: "my manager," "a friend since school."
  2. Include the messages before. Paste the exchange, with who said what.
  3. Say what happened off the screen. "We argued on the phone yesterday" changes everything after it.
  4. Say what you want. A reading, a reply or both, and the outcome you are hoping for.
  5. Ask for two readings. That forces the alternatives into view.
  6. Correct it. If the tool has a memory, fix the stored detail as well.

Put together:

My friend Dana replied "Wow, thanks." after I canceled Saturday. She is usually warm, and I have canceled twice this month. Give me two ways to read it, and a reply that makes it right.

What can context not tell an AI?

What someone feels and has not said. Context narrows the guesses and does not end them. When the answer matters, ask the person.

How a thread reaches an AI in the first place is the subject of can AI read your text messages?. The wider question of an assistant that knows the people you talk to is covered in AI that understands your social life, and why social context matters for AI takes up the social side.

How your Mind gets context

Minds is built to be the best agent at drafting messages and knowing what to say to your friends.

For the thread and the history: Your Mind reads conversations in accounts you connect and remembers details about you and the people you talk to. For what the written record leaves out: What your Mind knows about the people you talk to includes what you tell it about them.

You can ask your Mind what someone meant by a message. A Mind is designed to keep facts, interpretations and what people intend distinct.

Your Mind can make mistakes, such as misunderstanding a request, messaging the wrong person, or getting facts wrong. Treat its reading of a message as a second opinion that can be wrong.

Connecting an account has risks, and how Minds works sets them out.

Sources

  1. Context windows, Claude API Docs, Anthropic, accessed

Related