Artificial Intelligence

What is Prompt Engineering?

Quick answer

The practice of designing and refining instructions given to AI models to get more accurate, useful, and reliable outputs.

Prompt Engineering, explained

The way you phrase a request to a large language model can significantly affect the result. Prompt engineering involves giving clear instructions, relevant context, examples of the desired output, constraints on format or length, and a defined role or audience.

For example, rather than asking an AI to write about cloud computing, a better prompt might ask for a 300-word explanation of cloud computing for small business owners in Nepal, with one real-world example and no jargon. Techniques include few-shot prompting, which provides worked examples, and asking the model to reason step by step. As models improve, some tricks matter less, but clear communication, good context, and testing prompts on varied inputs remain valuable skills.

Related terms

Guides that mention Prompt Engineering