Skip to main content
All terms
Prompting

Automatic Prompt Engineering

Using AI to automatically generate and test prompts to find ones that work best.

Definition

Automatic prompt engineering (APE) uses a model to generate many candidate prompts, test them against examples, and keep the best performers — automating the trial-and-error a human would otherwise do by hand. It is one approach to prompt optimization.