Prompt Engineering for Developers

Source

Two types of LLMs

Prompting Principles

Principle 1: Write clear and specific instructions

Principle 2: Give the model time to “think”

Iterative Prompt Development

Pasted image 20240718150823.png|400

Capabilities of LLM

Summarizing

Inferring

examples:

Transforming

Expanding

= generate long piece of text from short piece of text

Temperature

= Degree of randomness of the model