Prompt Engineering and In-Context Learning: How to Get Better Results from AI
AI8 min readJuly 14, 2026✓ Updated for 2026

Prompt Engineering and In-Context Learning: How to Get Better Results from AI

Prompt engineering and in-context learning explained: how UK users get sharper, more reliable results from ChatGPT, Claude and Gemini in 2026.

JR
Joe Robertson · In crypto since 2017, writing since 2025
Published 14 Jul 2026

Ask ChatGPT the same question two different ways and you’ll get two different answers. Sometimes one is brilliant. Sometimes one is rubbish. The gap between them is prompt engineering — and it’s become one of the most useful skills in Britain’s AI toolkit for 2026. UK businesses spent an estimated £4.2 billion on AI tools last year, according to techUK figures, yet most staff still type prompts the same way they’d type a Google search. That’s the problem. Large language models don’t search. They predict. And predicting well needs a different kind of instruction.

What Is Prompt Engineering?

Prompt engineering means writing instructions that steer an AI model toward the answer you actually want. It sounds simple. It rarely is.

When I looked into this properly, the pattern became obvious fast. Vague prompts get vague answers. “Write me a blog post about pensions” produces generic filler. “Write a 600-word blog post explaining UK auto-enrolment pension rules for a 28-year-old first-time employee, in a friendly but factual tone, with three practical examples” produces something usable.

The model hasn’t changed between those two prompts. Only the instruction has. That’s the entire discipline in one sentence. Everything else — examples, structure, reasoning steps — builds on that single idea: specificity beats cleverness.

It also explains why two people using the exact same AI subscription can get wildly different value from it. The tool is identical. The instructions aren’t.

In-Context Learning: Teaching AI Without Retraining It

In-context learning is the technical term for something users do instinctively: teaching the model inside the conversation itself, rather than retraining it.

Traditional machine learning needs new training data and weeks of computation to learn a new task. Large language models like GPT-5 and Claude Opus 4.5 skip that step entirely. Show the model two or three examples of what you want inside the prompt, and it adapts its output to match — instantly, with zero retraining.

This matters for UK small businesses especially. A five-person marketing agency can’t afford to fine-tune a custom model. But they can paste three examples of their brand voice into a prompt and get consistent output within seconds. Cost: effectively nothing. Barrier to entry: gone.

UK investors keep asking about this because it changes the economics of adopting AI. You no longer need a data science team. You need someone who understands how to structure an instruction.

Researchers still argue over exactly why this works. The leading theory is that huge models trained on enough text implicitly learn a kind of pattern-matching machinery during training, which the prompt then activates on demand. Nobody fully agrees on the mechanism. Everybody agrees it’s useful.

Zero-Shot, One-Shot and Few-Shot Prompting

Researchers split in-context learning into three flavours.

Zero-shot means giving the model a task with no examples at all — just an instruction. “Translate this into French.” Works fine for simple, well-known tasks.

One-shot gives a single example first. Useful when format matters — showing the model exactly how you want a table structured, say.

Few-shot gives three to five examples. This is where accuracy jumps hardest. Studies from Anthropic and OpenAI both show few-shot prompts cutting error rates by 20 to 40 percent on structured tasks compared with zero-shot versions.

Short version: more examples, better output, up to a point. Beyond five or six examples, returns flatten out fast. Some models even get confused by too many examples, latching onto irrelevant patterns in the extras rather than the actual task.

Chain-of-Thought Prompting: Getting AI to Show Its Working

Ask an AI to solve a maths problem straight and it sometimes guesses wrong, confidently. Ask it to “think step by step” first, and accuracy climbs sharply.

This is chain-of-thought prompting. It forces the model to lay out reasoning before landing on an answer, the same way a maths teacher demands you “show your working” rather than just writing the final number.

Google’s own research on this technique found accuracy gains of over 30 percentage points on multi-step reasoning tasks when chain-of-thought was added versus a bare prompt. That’s not a rounding error. That’s the difference between a tool you can trust and one you can’t.

It works because language models generate text one token at a time. Forcing intermediate steps gives the model somewhere to “think out loud,” and each step constrains the next, cutting down on wild leaps to a wrong conclusion.

Newer “reasoning” models bake this in automatically, thinking through a problem internally before answering. Older or smaller models still need it spelled out explicitly. Worth checking which type you’re using before assuming the trick isn’t needed.

System Prompts vs User Prompts

Most people only ever write user prompts — the message typed into the chat box. But every serious AI deployment also uses a system prompt, sitting invisibly underneath.

The system prompt sets the model’s role, tone and boundaries before the conversation even starts. “You are a UK tax adviser. Never give investment advice. Always cite HMRC guidance where relevant.” That instruction shapes every single reply that follows.

Get the system prompt wrong and no amount of clever user prompting fixes it. Get it right and even a lazy user prompt produces something usable. It’s the foundation, not the finishing touch.

Businesses building customer-facing chatbots live or die by this distinction. A weak system prompt lets customers argue the bot into refunds it shouldn’t offer. A strong one holds the line politely, every time.

Common Prompt Engineering Mistakes

Four mistakes turn up again and again.

Being too vague. “Make this better” tells the model nothing about what “better” means.

Burying the actual ask. Long rambling context with the real question tacked on at the end gets missed or deprioritised.

Assuming memory that isn’t there. Unless you’re in the same conversation thread, the model has no idea what you asked yesterday.

Skipping examples entirely. One well-chosen example often beats three paragraphs of description.

Fix all four and most output quality problems disappear without touching the model itself. No upgrade, no new subscription tier — just better instructions.

A fifth mistake worth naming separately: treating the first answer as final. Iterating — “make this shorter,” “now add a UK example,” “now remove the jargon” — almost always beats trying to nail everything in one giant opening prompt.

Prompt Engineering in UK Workplaces

UK investors keep asking about this because the productivity numbers are hard to ignore. A 2026 Lloyds Bank internal study found staff trained in structured prompting completed report-writing tasks 34 percent faster than untrained colleagues using the same AI tools.

Same software. Same subscription cost. Different results, purely from how the instructions were written.

Some UK firms now run half-day prompt engineering workshops for staff, treating it as a core digital skill alongside spreadsheets and email. That’s a sensible bet. The tools aren’t getting simpler to misuse — they’re getting more powerful, which raises the cost of a badly written prompt.

Recruiters have noticed too. Job listings mentioning “prompt engineering” or “AI fluency” on UK job boards rose sharply through 2025 and into 2026, spreading well beyond tech roles into marketing, legal and customer service.

Multimodal and Agentic Prompting

Prompting isn’t just text anymore. Modern models read screenshots, PDFs and spreadsheets, and the same principles apply: be specific about what to look for, give an example of the output format, and state the goal clearly.

Agentic AI takes this further. Instead of one prompt and one reply, an agent works through a multi-step task on its own — researching, drafting, checking, revising — guided by an initial instruction and a set of tools it can call. The prompt engineering job shifts from “write the perfect question” to “design the goal and guardrails,” which is a genuinely different skill and one still being figured out across UK tech teams.

Expect this gap between text prompting and agent design to be the next big training need for 2027 and beyond.

The Limits of Prompt Engineering

No prompt fixes a model that simply doesn’t know something. If the underlying training data is wrong, outdated or missing, clever phrasing won’t conjure the correct answer from nowhere.

This is where prompt engineering hits a wall. It can restructure how a model reasons. It cannot inject facts the model was never trained on. For anything time-sensitive — today’s Bitcoin price, this week’s FCA ruling — pair prompting with a live data source, not blind trust in the model’s memory.

Treat prompt engineering as a way to extract the best of what a model already knows, not a substitute for checking your facts.

What This Means for You

You don’t need a computer science degree to get good at this. Be specific, give examples, ask for reasoning on anything complex, and set the role clearly if you’re building anything repeatable.

Start small. Take one task you already do with AI regularly and rewrite the prompt with a role, an example and a clear format request. Compare the output. Most people notice the difference immediately.

It’s a skill, not a trick. And like any skill, it gets better with practice, not shortcuts.

This article is for educational purposes only and does not constitute financial advice. Cryptocurrency investments involve significant risk. Always do your own research.

Free weekly newsletter

Stay ahead of the market

Join our community of nearly 5,000 across YouTube, LinkedIn, X, and Facebook — weekly crypto, AI, and digital lifestyle insights every Thursday. No spam. Unsubscribe any time.

Share:X / TwitterFacebookLinkedInPinterest
Disclosure: Some links in this article may be affiliate links. If you click and purchase, DigiTech Lifestyle may earn a small commission at no extra cost to you. This never influences our editorial stance — we only recommend products we genuinely believe in.

Partner picks

Build a smarter digital stack

Explore curated AI, automation, wealth, and creator tools selected for practical value, transparent pricing, and clear use cases.

Browse tools

Disclosure: some links may be affiliate links. DigitechLifestyle may earn a commission at no additional cost to you.

Related articles
AI Chips and Semiconductors: The Hardware Race Powering the AI Boom
AI
AI Chips and Semiconductors: The Hardware Race Powering the AI Boom
Read article →
Microsoft Quietly Swaps OpenAI and Anthropic for Its Own AI in Excel and Outlook
AI
Microsoft Quietly Swaps OpenAI and Anthropic for Its Own AI in Excel and Outlook
Read article →
AI and Cybersecurity: Fighting Threats with Machine Learning
AI
AI and Cybersecurity: Fighting Threats with Machine Learning
Read article →
More from DigiTech Lifestyle
Latest NewsCrypto GuidesAI & TechnologyExchange ReviewsDeFi & BlockchainFree ToolsResources