Prompt engineering: Difference between revisions

From AI Wiki
Line 15: Line 15:
====Example in ChatGPT====
====Example in ChatGPT====
<code>
<code>
Prompt: Write 200 words about how adorable a puppy is.
Prompt: Write a paragraph about how adorable a puppy is.


Temperature: 1.0
Temperature: 1.0


Silliness: 0.8
Sarcasm: 0.5


Persuasiveness: 1.0
Persuasiveness: 1.0

Revision as of 13:27, 5 March 2023


Parameters

Common Parameters

Temperature

Perplexity

Burstiness

User-created Parameters

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.

Example in ChatGPT

Prompt: Write a paragraph about how adorable a puppy is.

Temperature: 1.0

Sarcasm: 0.5

Persuasiveness: 1.0

List

Professionalism

Randomness

Sentimentality