From the course: Prompt Engineering with LangChain
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Zero-shot prompts
From the course: Prompt Engineering with LangChain
Zero-shot prompts
- [Instructor] Because large language models were trained on such a vast amount of data, they possess a surprising feature. And that feature is the ability to do what's called zero shot learning. And Zero Shot learning facilitates something called zero shot prompting. So what is Zero Shot prompting? Well, it involves asking the model to perform a task without giving it any specific examples beforehand. This is going to allow the language model to generate responses to a prompt without requiring specific examples or even being specifically trained for that task. That's because of the way language models were pre-trained. They're trained on vast quantities of data, and because of this, again, they're able to execute tasks with what's called the zero shot. For example, to classify a text as neutral, negative, or positive, you might prompt the language model by saying, classify the text into neutral, negative, or positive. And the model could respond with, for example, neutral for a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Introduction to prompt templates6m 31s
-
(Locked)
Multi-input prompt templates5m 9s
-
(Locked)
Chat prompt template5m 20s
-
(Locked)
Serializing prompts2m 52s
-
(Locked)
Zero-shot prompts5m 28s
-
(Locked)
Custom prompt templates7m 41s
-
(Locked)
Prompt pipelining5m 49s
-
(Locked)
Chat prompt pipelining3m 21s
-
(Locked)
Prompt composition4m 40s
-
(Locked)
Few-shot prompt templates8m 1s
-
(Locked)
Few-shot prompt templates for chat5m 10s
-
(Locked)
Introduction to example selectors2m 56s
-
(Locked)
Length-based example selector3m 9s
-
(Locked)
Max marginal relevance example selector4m 47s
-
(Locked)
N-gram overlap example selector5m 25s
-
(Locked)
Semantic similarity example selector2m 50s
-
(Locked)
Partial prompt templates4m 19s
-
-
-
-