Definition
Prompt Engineering is the craft of designing, formatting, and refining natural language inputs, system directives, and few-shot examples to steer LLMs toward desired output behaviors.
Purpose
Calibrates stochastic model outputs to achieve syntactic correctness, tone compliance, and structured schemas without fine-tuning underlying model weights.
Key Concepts
How It Works
Authors construct instructions specifying persona, context, step-by-step reasoning steps, and strict response schemas (such as JSON).
Related Terms
Sources
- Lilian Weng, Prompt Engineering Guides, OpenAI Cookbook
- Anthropic Interactive Prompting Guide