In-Context Learning — AI Glossary

In-context learning is the ability of a large language model to learn and adapt its behavior based on examples or instructions provided directly within the prompt, without any changes to the model's underlying weights. This capability allows users to teach the model new tasks on-the-fly simply by demonstrating the desired behavior in the input.