![]() |
VOOZH | about |
is an AI technique where models perform tasks without any task-specific examples, relying on knowledge learned during pre-training. It is a part of Zero-Shot Learning (ZSL) and enables models to handle new tasks without additional training data.
works by allowing an AI model to perform tasks without the need for examples or additional training on task-specific data. The process uses the model's pre-existing knowledge and training, enabling it to tackle a wide range of queries directly.
Here are a few prompt examples to demonstrate how Zero-Shot Prompting works:
Prompt: “Write a short story about a journey through space.”
AI Output: The stars glittered like diamonds against the vast emptiness of space. As the spaceship zoomed past distant ...
Prompt: “What is the tallest mountain in the world?”
AI Output: Mount Everest
Prompt: “Classify the following product as either a 'Laptop' or 'Smartphone': 'A portable device with a large screen and keyboard for computing tasks.'”
AI Output: Laptop
Aspect | Zero-Shot Prompting | Few-Shot Prompting |
|---|---|---|
Definition | Model performs tasks without any examples, relying on its pre-existing knowledge. | Model learns from a few examples provided in the prompt to perform the task. |
Efficiency | Fast and efficient for general tasks but can be less precise for specific tasks. | Effective for tasks where a few examples are enough to guide the model. |
Task Adaptability | Models handle tasks directly without the need for task-specific examples. | Models adapt to the task through provided examples in the prompt. |
Example | “Translate this sentence to French.” (No examples needed) | “Translate this sentence to French, based on these examples: [example translations]” |