Prompt engineering: Difference between revisions

Line 11: Line 11:
===User-created Parameters===
===User-created Parameters===
====Introduction====
====Introduction====
These are user-created parameters. They serve to convey the intent of the users in a more concise way. These are not part of the [[model]] API but patterns the [[LLM]] has picked up through its [[training]]. These parameters are just a compact way to deliver what is usually expressed in [[natural language]]. Note that having too many or contradictory parameters may lower the quality of the response.
These are user-created parameters. They serve to convey the intent of the users in a more concise way. These are not part of the [[model]] API but patterns the [[LLM]] has picked up through its [[training]]. These parameters are just a compact way to deliver what is usually expressed in [[natural language]].


====Example in ChatGPT====
====Example in ChatGPT====
Line 22: Line 22:
</code>
</code>


====List====
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====
[[Professionalism]]
[[Professionalism]]