In-context learning means the AI learns from what you place in front of it, live, in the moment: the files it’s holding in memory for this session.
You can’t retrain ChatGPT or Claude. But you can change what they’re reading, and that changes what they know right now.
A sentence, or a hundred thousand
When you use browser chat, you give it a sentence or two of context before asking your question. With in-context learning, you can give it a hundred sentences. Or a hundred thousand. A CLI working inside your folder can read your whole project.
How it shows up in practice
- A style guide, so it writes like you instead of generically.
- A few examples of the thing you want (“here are three good ones, now do a fourth”), instead of describing the rules.
- A whole knowledge base, so it answers from your actual material instead of guessing.
- Standing instructions in a file it reads every time, so you’re not re-explaining your preferences in every conversation.
Why it matters here
In-context learning is what makes a queryable knowledge base work: the AI reads your files and answers from them. Context engineering is the craft of deciding what it reads, and in what order.
Covered in Seminar 1.