Jump to content

Prompt engineering: Difference between revisions

Line 14: Line 14:


====Example in ChatGPT====
====Example in ChatGPT====
<code>
<blockquote>
Prompt: Write a paragraph about how adorable a puppy is.
Prompt: Write a paragraph about how adorable a puppy is.


Line 20: Line 20:


Sarcasm: 0.9
Sarcasm: 0.9
</code>
</blockquote>


We add "Prompt: " to the start of our prompt to make sure [[ChatGPT]] knows where our prompt is. We add the [[GPT]] parameter [[temperature]], which goes from 0 to 1 to indicate the following parameters also range from 0 to 1. Then we list our parameters along with their values which go from 0 to 1 (0 is the smallest, and 1 is the largest). Note that having too many or contradictory parameters may lower the quality of the response.
We add "Prompt: " to the start of our prompt to make sure [[ChatGPT]] knows where our prompt is. We add the [[GPT]] parameter [[temperature]], which goes from 0 to 1 to indicate the following parameters also range from 0 to 1. Then we list our parameters along with their values which go from 0 to 1 (0 is the smallest, and 1 is the largest). Note that having too many or contradictory parameters may lower the quality of the response.
====List of Parameters====
====List of Parameters====
[[Professionalism]]
[[Professionalism]]