Few-shot examples in Language Learning Models (LLMs) provide the model with a few task examples, guiding its predictions. Incorporated directly into the input, they help the model understand and respond accurately to new or complex tasks.

Adding few-shot examples

Visit the Few-shot examples page to add few-shot examples.

TODO: Screenshot here.

Setting up few-shot examples to be used in a prompt template

Attach the few-shot examples to a prompt template.

TODO: Screenshot here.

Selecting few-shot examples to be used in a prompt template

Check out the Using an example selector page to select few shot examples based on their similarity to the input.