Prompt Engineering

Prompt engineering is the discipline of crafting model instructions and examples to guide model behavior. Prompt engineering remains a sub-discipline of context engineering and includes techniques like role prompting, chain-of-thought, few-shot examples, and structured output formats.

API entry from apis.yml

apis.yml Raw ↑
aid: context-engineering:prompt-engineering
name: Prompt Engineering
description: Prompt engineering is the discipline of crafting model instructions and examples to guide
  model behavior. Prompt engineering remains a sub-discipline of context engineering and includes techniques
  like role prompting, chain-of-thought, few-shot examples, and structured output formats.
humanURL: https://www.promptingguide.ai/
baseURL: https://www.promptingguide.ai
tags:
- Few-Shot
- Instructions
- Prompting
properties:
- type: Documentation
  url: https://www.promptingguide.ai/
- type: Reference
  url: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview
- type: Reference
  url: https://platform.openai.com/docs/guides/prompt-engineering
x-features:
- Chain-of-thought and reasoning prompts
- Few-shot, zero-shot, and self-consistency prompts
- Structured output formatting (JSON, XML)
- Role and persona instructions
x-useCases:
- Steering model behavior in zero-shot tasks
- Eliciting structured responses suitable for downstream tools
- Mitigating undesired outputs through guardrails