thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Foundational

Few-Shot Prompting

Including several examples of inputs and desired outputs in the prompt to guide the model.

Definition

Few-shot examples teach format, tone and decision boundaries through in-context learning without changing model weights. Examples should be diverse and representative; biased examples bias outputs.

Exam tip

Few-shot improves consistency without fine-tuning; examples consume context tokens on every call.

Related terms