Prompting & Inference

Few-Shot Learning

Guiding a model by including a handful of examples in the prompt so it can follow the pattern.

Few-shot prompting gives the model a few demonstrations of the task inside the prompt, so it can infer the pattern and apply it to your real input. It often sharply improves results on formatting, tone, and tricky tasks without any retraining. It works because of in-context learning, the models ability to pick up a pattern on the fly from what is in its context window.

Reference: Wikipedia: Few-Shot Learning