Vai al contenuto

Prompt Engineering

The art of writing effective instructions to get the most out of AI models.

Prompt engineering is the discipline that focuses on how to formulate requests (prompts) to obtain accurate, coherent, and useful responses from language models. It includes techniques such as few-shot prompting, chain-of-thought, role prompting, and structured output.

Practical examples

  • System prompt defining the role of the AI
  • Few-shot with input/output examples
  • Chain-of-thought for complex problems
  • Dynamic templating with variables

Related terms