MetaPrompt
Use prompts to generate or refine other prompts
Mechanism
A higher-order Meta Prompting technique where prompts are used to generate, refine, or analyze other prompts rather than directly answering questions. The LLM acts as a prompt engineer, creating task-specific prompts from templates or improving existing prompts through critique. Enables reusable prompt templates that generalize across problem categories. It constructs a PromptChain where the output of the first stage is the prompt instruction for the second.
Invariants
- Output is a prompt
- Prompt instructs how to prompt
Signature
- Meta(Prompt)
Preconditions
Postconditions
- Optimized prompt generated
Failure modes
- Prompt Drift: Generated prompts diverge from intent over iterations.
- Meta-Complexity: Meta-prompt harder to write than direct prompt.
- Overfitting: Generated prompts too specific to examples.
Where this came from
—
Builds on
- Meta references
- Prompt references
- Task references
- PromptChain references
Identity
- Ref:
MetaPrompt#5d11 - Hash: sema:MetaPrompt#mh:SHA-256:5d117201e4b2fe776f32e4effb8bb9b0d541e361ba37468250283f277026c974
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository