How does it work?
You place several input-and-output pairs in the prompt before the real input. The model has learned during training to continue patterns, so a consistent set of examples steers format, tone and edge-case handling far more precisely than a description usually can. Nothing is trained or saved — the examples work only because they are in the context. Improvement is steepest over the first two or three examples and usually flattens after about five, so the cost of a sixth is nearly always higher than its benefit.
This is why it is also called in-context learning. The model has not learned anything permanent; it has been shown, within this one request, what good looks like.
