mirror of
https://github.com/dair-ai/Prompt-Engineering-Guide
synced 2024-11-02 15:40:13 +00:00
Update examples.en.mdx
This commit is contained in:
parent
017b90e4c7
commit
c23c4d60df
@ -134,11 +134,13 @@ Sentiment:
|
|||||||
neutral
|
neutral
|
||||||
```
|
```
|
||||||
|
|
||||||
Perfect! This time the model returned `neutral` which is the specific label I was looking for. It seems that the example provided in the prompt helped the model to be specific in its output. To highlight why sometimes being specific is important, check out this example and spot the problem:
|
Perfect! This time the model returned `neutral` which is the specific label I was looking for. It seems that the example provided in the prompt helped the model to be specific in its output.
|
||||||
|
|
||||||
|
To highlight why sometimes being specific is important, check out the example below and spot the problem:
|
||||||
|
|
||||||
*Prompt:*
|
*Prompt:*
|
||||||
```
|
```
|
||||||
Classify the text into neutral, negative or positive.
|
Classify the text into nutral, negative or positive.
|
||||||
|
|
||||||
Text: I think the vacation is okay.
|
Text: I think the vacation is okay.
|
||||||
Sentiment:
|
Sentiment:
|
||||||
@ -149,7 +151,7 @@ Sentiment:
|
|||||||
Neutral
|
Neutral
|
||||||
```
|
```
|
||||||
|
|
||||||
What is the problem here?
|
What is the problem here? As a hint, the made up `nutral` label is completely ignored by the model. Instead, the model outputs `Neutral` as it has some bias towards that label. But let's assume that what we really want is `nutral`. How would you fix this? Maybe you are explain the labels or add more examples to the prompt? If you are not sure, we will discuss a few ideas in the upcoming sections.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -285,4 +287,4 @@ Much better, right? By the way, I tried this a couple of times and the system so
|
|||||||
|
|
||||||
We will continue to include more examples of common applications in this section of the guide.
|
We will continue to include more examples of common applications in this section of the guide.
|
||||||
|
|
||||||
In the upcoming section, we will cover even more advanced prompt engineering concepts and techniques for improving performance on all these and more difficult tasks.
|
In the upcoming section, we will cover even more advanced prompt engineering concepts and techniques for improving performance on all these and more difficult tasks.
|
||||||
|
Loading…
Reference in New Issue
Block a user