mirror of
https://github.com/brexhq/prompt-engineering.git
synced 2023-09-11 12:43:27 +03:00
Merge pull request #2 from santiagobasulto/main
Fixed broken link from learnprompting.org
This commit is contained in:
@@ -405,7 +405,7 @@ But we can bypass these instructions and get the model to happily use the word i
|
||||
<img width="550" src="https://user-images.githubusercontent.com/89960/232420600-56083a10-b382-46a7-be18-eb9c005b8371.png">
|
||||
</p>
|
||||
|
||||
There are [a number of defensive measures](https://learnprompting.org/docs/prompt_hacking/defensive_measures) you can take here, but typically the best bet is to reiterate your most important constraints as close to the end as possible. For the OpenAI chat API, this might mean including it as a `system` message after the last `user` message. Here’s an example:
|
||||
There are [a number of defensive measures](https://learnprompting.org/docs/prompt_hacking/defensive_measures/overview) you can take here, but typically the best bet is to reiterate your most important constraints as close to the end as possible. For the OpenAI chat API, this might mean including it as a `system` message after the last `user` message. Here’s an example:
|
||||
|
||||
|  |  |
|
||||
| --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user