Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Zero-shot

Also written: one-shot, zero-shot prompting

Asking a model to do a task with no examples (zero-shot) or with one (one-shot), instead of several (few-shot).

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