PaPoo
cover

What is meta-prompting?

Meta-prompting is the practice of using one prompt to design, improve, or control another prompt, rather than asking the model to do the task directly.

Why it matters

It helps when a plain prompt is too vague, too brittle, or too hard to maintain. Instead of hand-tuning a long instruction by trial and error, you can ask an LLM to generate, refine, critique, or transform prompts for you.

In practice, teams reach for meta-prompting when they want:

How it works

At a high level, you give the model a task about prompting. For example, you ask it to:

  1. write a prompt for a downstream task,
  2. improve an existing prompt,
  3. extract requirements from examples and turn them into instructions,
  4. critique a prompt for ambiguity, missing constraints, or bad formatting.

The output is usually itself a prompt or prompt-like instructions. That means the model is acting as a “prompt author” or “prompt editor,” not the final task solver.

A common pattern is a two-step loop:

This is related to prompt engineering, but meta-prompting is specifically about prompting prompt creation or optimization. The term is used somewhat loosely in practice, so context matters.

Tiny concrete example

You want a prompt for summarizing customer feedback.

Meta-prompt:

Write a concise system prompt for an LLM that summarizes customer feedback into: key themes, sentiment, and action items. Make it strict about bullet points and avoid speculation.

Possible output:

You are a customer feedback analyst. Summarize each feedback set into:

  1. Key themes
  2. Sentiment
  3. Action items
    Use short bullets. Do not infer facts not present in the feedback. If information is missing, say “not enough data.”

That output is then used as the actual prompt for the summarization task.

Common pitfalls / when NOT to use it

Related terms

同じ著者の記事