Prompt Patterns|

A Pattern Language for Knowledge Engineering with Large Language Models

Example-Driven Specification

Specifies desired model behavior by driving the specification through concrete examples rather than abstract rules.

Solution

Techniques

Demonstration Examples (Zero-Shot, One-Shot, Few-Shot Specification)

Contrastive Examples

Style Exemplars

Related Patterns