// Learn

What is prompt engineering?

Prompt engineering is writing instructions that reliably get the output you want from an LLM.

The short version

LLMs do what you ask. The problem is that what you ask and what you mean aren't always the same thing. Prompt engineering is the practice of closing that gap. It's part writing skill, part debugging, and part understanding how the model interprets your words.

A well-written prompt can be the difference between a useless response and a genuinely useful one, even when the model and the task are identical.

How it works

A prompt has several components you can control:

  • System prompt: background instructions the model reads before your message. This is where you set the role, tone, constraints, and rules. Most AI applications have a system prompt the user never sees.
  • User prompt: the actual request. The more specific you are about what you want, the format you want it in, and what to avoid, the better the result.
  • Examples: showing the model what good output looks like (called "few-shot prompting") is often more effective than describing it.
  • Constraints: explicit rules about what not to do. "Do not use bullet points." "Keep your response under 200 words." "Do not invent facts."

Some techniques that reliably improve results:

  • Be specific about format. "Give me a JSON object with keys for title, summary, and tags" beats "summarise this."
  • Break complex tasks into steps. "First identify the key claims. Then check each one against the source. Then list any that aren't supported." This gives the model a clear path.
  • Give it a role. "You are a senior editor reviewing this draft for factual accuracy" changes how the model approaches the task.
  • Tell it what to avoid. Models tend toward verbose, agreeable responses. Explicit constraints ("be direct, no filler, challenge weak arguments") counteract that.

Why it matters

If you use AI tools to build anything, prompt engineering is the single most useful skill you can develop. It doesn't require programming. It doesn't require a technical background. It requires clear thinking about what you want and precise language to communicate it. That's a skill that transfers to every AI tool you'll ever use.

=++==+==++=