Automatic Prompt Engineering (APE) uses a meta-prompt to instruct a model to generate multiple prompt variations for a target task.
A second validator model runs these variations against a test dataset and selects the prompt that produces the highest accuracy.