Glossary · Phase 1 · Building with LLMs
Few-shot
Putting a few worked examples in a prompt so the model copies the pattern.
Try it now
Send it. Then delete the refund sentence and the examples from the system prompt, and send again. If a reply comes back cut off, raise max_tokens, the limit on reply length.
Learn it properly
Examples in prompts · Show the model what good looks like (few-shot prompting). About 25 minutes.
Other terms from the same lesson
- zero-shot: Asking a model to do a task with no examples (zero-shot) or with one (one-shot), instead of several (few-shot).
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.