Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Few-shot

Also written: few-shot prompting

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.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write