Prompt engineering

Prompt engineering is the practice of writing clear instructions and examples for an AI model so it reliably produces the output you need.

Checked 27/11/2026 against 4 sources. Next review 27/05/2027.

Prompt engineering is the process of writing effective instructions for a model so that it consistently generates content that meets your requirements [1]. The prompt is whatever you send to a large language model: the question, the rules, the tone and any examples. Better prompts change the answer without changing the model, because prompting does not add, remove or alter the model's parameters [3]. You do not need to code to do it. You need to be specific and to test what you write.

What makes one prompt work better than another?

Anthropic's guidance says Claude responds well to clear, explicit instructions, and it compares the model to a brilliant new employee who does not know your norms or workflows [2]. The more precisely you explain what you want, the better the result. Vague asks get generic answers.

OpenAI adds that output is non-deterministic, so getting the result you want takes some trial and error [1]. Good practice makes results consistent, but the same prompt can still produce different wording on different runs [1].

Instructions can also carry different levels of authority. In OpenAI's API, the instructions parameter sets tone, goals and examples of correct responses, and those instructions take priority over user messages [1]. This is where a business sets the rules for a chatbot before a customer types anything.

How many examples should I put in a prompt?

Google's course calls showing one example one-shot prompting [3]. Anthropic calls a handful of examples few-shot or multishot prompting and says they improve accuracy and consistency [2]. It recommends including 3 to 5 examples for best results, and making them relevant, diverse and structured [2].

TechniqueWhat you doSource
Clear instructionsState the task, audience, format and limitsAnthropic [2]
One-shotShow one example of the output you wantGoogle [3]
Few-shotShow 3 to 5 varied examples, wrapped in tags so they read as examplesAnthropic [2]
Permission to say "I don't know"Tell the model to admit when it is unsuresee hallucination

What does a good prompt look like for a Singapore business?

A worked example

Say you run a bakery and want an AI to draft replies to WhatsApp enquiries. A weak prompt is "Reply to this customer." A stronger one gives the role, the facts, the limits and two samples of replies you like.

You write WhatsApp replies for Sunny Bakes, a bakery in Tampines.
Use only the facts below. If the answer is not there, say
"Let me check with the team" and do not guess.
Keep replies under 60 words, friendly, no emojis.

Facts: Orders need 3 days' notice. Pickup only. Open 9am to 6pm, closed Mondays.

<example>
Customer: Can I collect a cake tomorrow?
Reply: Thanks for asking! Cakes need 3 days' notice, so tomorrow is too soon. The earliest pickup is on [date]. Shall I book it?
</example>

Customer: Do you deliver to Bedok?

The facts block is where RAG comes in once you have more documents than fit in one prompt. Test any prompt on past questions before trusting it. Anthropic says to define success criteria and some way to test against them before you start refining a prompt [4].

Prompting also has limits. Anthropic notes that not every failing test is best solved by prompt engineering, and that a different model can sometimes fix latency and cost more easily [4]. The AI workshop covers writing and testing prompts hands-on.

Questions people ask

Is prompt engineering a proper job?

The practice is well documented: OpenAI, Anthropic and Google all publish guidance on it [1][2][3]. For most small businesses it is a skill someone on the team picks up, not a separate hire. Writing and testing prompts is closer to writing a clear brief.

Does prompt engineering change the AI model?

No. Google's course states that prompt engineering does not add, remove or alter a model's parameters. It only changes what the model is told for that request, using its existing abilities [3].

What is the difference between prompt engineering and fine-tuning?

Prompt engineering changes the instructions and examples you send with each request. Fine-tuning trains the model further on task-specific data, which changes the model itself [3]. Most businesses should try prompts first. See Fine-tuning.

See also

  • Large language model A large language model (LLM) is an AI system trained on huge amounts of text to predict the next piece of text, which lets it write, summarise and answer questions.
  • RAG RAG is a method where an AI looks up your own documents first, then writes its answer from what it found, not only from what it learned in training.
  • Hallucination A hallucination is when an AI model states something false as if it were true, such as an invented fact, quote or source.
  • Fine-tuning Fine-tuning is training an existing AI model further on your own example inputs and outputs, so it handles your task more consistently than the base model.
  • Chatbot A chatbot is a program you talk to by text or voice, which answers questions or helps you finish a task.
  • AI agent An AI agent is a system where a language model decides its own steps and uses tools, such as search or a booking calendar, to finish a task.

References

  1. Prompt engineering (API guide), OpenAI. Read 27/11/2026.Prompt engineering is the process of writing effective instructions for a model, such that it consistently generates content that meets your requirements.
  2. Prompting best practices, Anthropic. Read 27/11/2026.Examples are one of the most reliable ways to steer Claude’s output format, tone, and structure.
  3. Machine Learning Crash Course: LLMs, Fine-tuning, distillation, and prompt engineering, Google for Developers. Read 27/11/2026.Prompt engineering enables an LLM's end users to customize the model's output.
  4. Prompt engineering overview, Anthropic. Read 27/11/2026.Not every success criterion or failing eval is best solved by prompt engineering.