Models and training

Prompt engineering

Prompt engineering is the practice of designing, testing and refining the instructions, context and examples given to an AI model so that it produces accurate, consistent and correctly formatted output for a specific task.

Prompt engineering is the craft of getting reliable behaviour from a model through its input rather than by changing the model. It sounds like wordsmithing, and part of it is, but in a business build it is closer to specification and testing: deciding exactly what the model should do in each situation, writing that down in a form the model follows, and checking the result on enough real cases to trust it. It is usually the first and cheapest lever for improving an AI feature.

How it works

Good prompt engineering follows a loop:

  1. Define the task and success. What counts as a correct answer, what format it must take, and what the model should do when it is unsure.
  2. Draft the prompt. Clear instructions, the necessary context, and often a few worked examples (few-shot prompting).
  3. Test on real inputs. Run the prompt over a set of representative cases, including awkward ones, and compare the output with expected answers.
  4. Revise and repeat. Tighten wording, add rules for observed failures, ask for structured output where software will read the result, or ask the model to reason step by step (chain-of-thought) where the task needs it.

A lead qualification build is a typical case. The first draft might score every enquiry as promising. After testing on a few dozen real enquiries, the prompt gains explicit criteria, examples of poor leads and an instruction to return a score with a reason, and the scores start to match how the sales team would judge.

What it means for cost

Prompt engineering is cheap compared with training, but it is not free. The time goes into building test cases and iterating, not into writing the first prompt. A quote that includes a set of test examples and a way to rerun them after each change is buying something durable; one that treats prompting as an afternoon task is likely to need rework once real inputs arrive.

Prompt design also affects running costs. Long instructions and many examples are paid for on every request, so part of the work is achieving the same quality with less. Ask a builder how prompts will be versioned and tested, and when they would recommend fine-tuning instead.

When it is the wrong tool

Prompting cannot give a model facts it does not have; that needs retrieval of your documents. It also struggles when a very specific style or format must be held across huge volumes, where fine-tuning can be more consistent and cheaper per request.

Common questions

Is prompt engineering a real skill or a passing trend?

The label may change, but the underlying skill of specifying a task precisely and testing a model against it remains central to AI builds. Models are becoming better at following plain instructions, which shifts the work towards evaluation rather than clever phrasing.

How do I know if a prompt is good enough?

Measure it. Run it over a fixed set of real examples with known correct answers and track how many it gets right. Without that set, judgements about prompt quality rest on a handful of impressions.

Related terms

Pricing a build that involves Prompt engineering? Send the brief and get a fixed price set next to the market range.Get a quote