Skip to content

prompt engineering

Prompt engineering is the practice of crafting, refining, and iterating prompts like input instructions, context, and examples to guide a generative model toward producing desired, high-quality, and reliable outputs.

It treats the underlying model’s parameters as fixed and focuses on optimizing the input rather than retraining the model.

Prompting techniques may include the following:

  • zero-shot and few-shot prompting
  • structured instructions
  • chain-of-thought or reasoning-style cues, now mostly a fallback because reasoning models generate these steps natively

Prompt designers typically distinguish between system (global behavior) and user (task-specific) messages, include retrieved or contextual grounding information, and iterate on prompt design based on output quality, feedback, and evaluation. For multi-turn and agentic work, prompt engineering is now usually framed as one part of context engineering, which manages the whole context window, including system instructions, tools, retrieved data, and message history, rather than a single prompt.

Prompt Engineering: A Practical Example

Tutorial

Prompt Engineering: A Practical Example

Learn prompt engineering techniques with a practical, real-world project to get better results from large language models. This tutorial covers zero-shot and few-shot prompting, delimiters, numbered steps, role prompts, chain-of-thought prompting, and more. Improve your LLM-assisted projects today.

intermediate ai data-science

For additional information on related topics, take a look at the following resources:


By Leodanis Pozo Ramos • Updated Aug. 9, 2026