What is Prompt Engineering?

Prompt engineering is the practice of writing clear, specific instructions or questions that guide a computer program to produce useful outputs. In the context of generative artificial intelligence, prompt engineering helps users communicate effectively with language models so the system can generate responses aligned with the user’s intent.

Put simply, prompt engineering is about being explicit. Just as a clear recipe leads to a better result in the kitchen, clear prompts help AI systems produce more relevant, accurate, and usable outputs.

Prompt Engineering and Generative AI

Modern generative AI tools rely on large language models (LLMs) and natural language processing (NLP) to interpret and respond to user prompts. These models do not “understand” meaning in a human sense; instead, they generate responses based on patterns learned from large amounts of text. Well-designed prompts provide the structure and context these systems need to respond effectively.

Infographic demonstrating how large language models with natural language processing capabilities are developed.

While prompt engineering can apply to many types of software and automated systems, this guide focuses on prompt engineering for language-based generative AI tools. The guidance here is most commonly used with tools such as ChatGPT and Microsoft Copilot, but the same principles apply to other language models, including those offered by Google, Meta, and other providers.

About This Guide

The Prompt Engineering Guide is intended for users at all experience levels, from those new to generative AI to those looking to refine more advanced prompting techniques. The guide begins with foundational concepts and moves into more structured approaches for designing effective prompts.

This guide is a living resource that will evolve as AI tools and practices change. Content will be updated over time, and user feedback is welcome. If there are examples or topics you would like to see added, contact email [email protected].

The Basics

Prompting Techniques