#atom

Subtitle:

Direct task instruction without examples


Core Idea:

Zero-shot prompting involves giving a language model a task description without any demonstrations, relying on the model's pretrained knowledge to generate the desired output format and content.


Key Principles:

  1. Clear Instructions:
    • Precise description of the task and expected output format
  2. No Demonstrations:
    • Relies solely on model's pretrained knowledge
  3. Minimal Context:
    • Uses fewer tokens than example-based approaches

Why It Matters:


How to Implement:

  1. Define Task Clearly:
    • State explicitly what the model should accomplish
  2. Specify Output Format:
    • Indicate how the response should be structured
  3. Keep It Concise:
    • Avoid unnecessary explanations that consume tokens

Example:


Connections:


References:

  1. Primary Source:
    • Weng, Lilian. (Mar 2023). Prompt Engineering. Lil'Log.
  2. Additional Resources:
    • OpenAI Cookbook, Prompt Engineering Guide

Tags:

#zero-shot #prompting #LLM #no-examples #direct-instruction


Connections:


Sources: