liveBook · Manning

Zero-shot prompting

As explained in Building LLM Applications with DSPy

Zero-shot prompting is a prompting technique that asks a language model to perform a task without providing task-specific demonstrations.

Zero-shot prompting asks a language model to perform a task without demonstrations. For a simple baseline in intent classification, use a prompt without examples; demonstrations can strengthen prompts, while prompt optimization is deferred. section 3.2

How Building LLM Applications with DSPy covers it

How deep it goes
Defines prompting by the absence of demonstrations, contrasts one-shot and few-shot approaches, and defers optimization.
Examples
Uses ATIS intent classification as a baseline context and proceeds with test data without training or validation data.
What you can do after
Apply zero-shot prompting as a no-demonstration baseline for intent classification using test data alone.
How it connects
Contrasts zero-shot prompting with one-shot and few-shot prompting and connects optimization to demonstrations and validation data.

Also explained in

Compare how 9 books explain zero-shot prompting →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building LLM Applications with DSPy. The section links point to the parts of the book it draws on.