ModelRefs / Meta-Prompting — AI Glossary

Meta-Prompting — AI Glossary

Using an LLM to generate or improve prompts for another LLM (or itself), automating prompt optimization.

Overview

Meta-prompting frameworks (DSPy, AutoPrompt, Promptbreeder) treat prompts as learnable parameters and use LLMs to rewrite them based on eval feedback. Particularly effective for standardizing enterprise prompt libraries.

Reference details

Topicprompting
Last reviewed2026-06-24

How it works

  1. A task is defined by examples and a metric rather than by a hand-written prompt, so the objective is measurable before any prompt exists.
  2. A model proposes candidate prompts for that task, which is the step replacing human prompt-writing.
  3. Each candidate is scored against the metric on a held-out set, so selection is empirical rather than a judgement about which reads better.
  4. The best candidates are mutated or recombined and rescored, repeating until improvement stalls.
  5. The output is a prompt plus its measured score, which is the part that makes the result auditable and comparable to the human-written baseline.

Example: Why it needs a held-out set to mean anything

Twenty candidate prompts scored on the same 50 examples: the best will look good partly by chance, since selecting the maximum of 20 noisy measurements is biased upward. Scoring candidates on 50 examples and then confirming the winner on a separate 50 separates real improvement from selection luck. Skip the held-out set and the reported gain is partly the search overfitting its own test set — the same error as tuning hyperparameters on a test split.

Commonly confused with

Using a model to write or improve prompts, as opposed to a person doing it. It differs from automated prompt optimisation frameworks in rigour rather than concept: those search against a scored dataset and keep what measurably wins, while asking a model to improve a prompt returns something that reads better with no evidence it performs better. Without an evaluation set it is a rewrite, not an optimisation.

When to use it

Reach for it when:

  • A measurable metric and a labelled set exist, so candidates can be scored.
  • Many prompts must be standardised across a team or a product surface.
  • Hand-tuning has plateaued and the search space is larger than a person will explore.

Reach for something else when:

  • No reliable metric exists, where the optimiser has nothing to climb.
  • One prompt for one task, where hand-writing is faster than setting up a search.
  • Without a held-out set, which makes the reported improvement partly selection noise.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Meta-Prompting — AI Glossary.

Frequently asked questions

What is Meta-Prompting?

Using an LLM to generate or improve prompts for another LLM (or itself), automating prompt optimization.

What concepts are related to Meta-Prompting?

Closely related concepts include prompt engineering, prompt management.