Braj Kishore
JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
Say hi

Hiring · Building · Investing

Have a system — or a team —that needs to scale?

info@avyxon.ai

Usually replies within a day · track record here

JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
LinkedInXYouTubeSubstackInstagramThreadsFacebookDiscordGitHubTopmate
© 2026 Braj Kishore · Bengaluru, INThink Big · Start Small · Scale Fast
The Guide
03Phase 1 · Foundations

Prompting & Context Engineering

The cheapest lever you have. And its 2026 upgrade: managing everything the model sees.

6-min read~3–4 hrs with the practice + a short course
The analogy

Onboarding a brilliant but very literal new contractor. The system prompt is their standing rules; few-shot examples are 'three past tickets done right'; structured output is 'fill in this exact form.' Context engineering is the bigger job: making sure the right briefing, files and tools are on their desk — because a perfect instruction on a messy desk still fails.

Unlearn this

That the prompt is the whole game. In 2026 the discipline has widened to context engineering — managing everything the model sees (retrieved docs, tools, memory, history, state), of which the prompt is one part. A well-crafted prompt in a poorly-engineered context still fails.

The lesson, in five answers

01

What is it?

Prompting is just giving the model instructions in text. Zero-shot means you give no examples. Few-shot means you include a few worked examples. A system prompt sets standing rules for the whole chat. Structured output forces a strict format like JSON, so your software can act on the result. These days you enforce that format directly through 'structured outputs' or tool schemas. You don't just ask nicely. Context engineering is the bigger umbrella. It's deciding what goes into the context window on each call. That's the prompt, plus retrieved documents, tool results, memory, and chat history. It's also deciding what to drop, shorten, or summarise.

02

Why it matters to a PM

Try this first, before you spend on RAG or fine-tuning. A lot of the product lives right here. Structured output is what lets AI plug into real workflows. A JSON result can trigger a refund or call an API. And context engineering is where agent and RAG quality is really won or lost. The wrong stuff, or too much of it, is the most common cause of bad output.

03

When would I reach for it?

Always start here. Put the stable, reusable part of your prompt first, so it can be cached. Caching makes repeat calls cheaper and faster. If the task needs current or private facts, add RAG. If it needs a steady behaviour that prompting can't hold, think about fine-tuning. But prompt first.

04

Trade-offs & failure modes

Prompts are fragile. A small wording change can shift how the model behaves. So save versions of them and test each one against a fixed set of examples. More context isn't better. It adds cost, slows the answer, and can distract the model. So pick it carefully. And remember: few-shot examples add tokens.

Structured outputsAnthropic
05

Say this in an interview

"I don't think 'prompt', I think context. What's the smallest set of instructions, examples, facts, and tools the model needs for this one call? I'd keep a stable cached prefix at the front. I'd pull in only the context that's relevant. I'd enforce a JSON format. And I'd save versions of the whole thing and test them against a fixed example set. A prompt change is a product change."

Few-shot promptingPrompt Engineering GuideChatGPT Prompt Engineering for DevsDeepLearning.AI + OpenAI
Learn it from the best — as you go

The canonical explainers for this topic. Open them alongside the lesson, not after it.

Read
  • Prompt EngineeringLilian Weng · Rigorous deep-read tying zero/few-shot, CoT and instruction prompting to the research.
  • Few-shot promptingPrompt Engineering Guide · Crisp, example-driven page on zero/few-shot; the index covers every technique.
Course
  • ChatGPT Prompt Engineering for DevsDeepLearning.AI + OpenAI · Free ~1.5-hr hands-on course; system prompts and iteration.
Docs
  • Prompt engineering overviewAnthropic · First-party, current guidance on when and how to prompt-engineer.
  • Structured outputsAnthropic · How to force valid JSON / schema-conformant output — the PM's answer to flaky formats.

External links open in a new tab. Content and prices change — verify before relying on any of them.

Key terms

Zero-shot / few-shot

Asking with no examples vs. including a few worked examples to steer the model.

System prompt

Persistent rules and role set once for the whole conversation.

Structured output

Forcing a strict format like JSON, so your software can act on the result. More and more, you enforce it directly rather than asking nicely.

Chain-of-thought

Asking the model to reason step by step before it answers. It helps on multi-step logic. Reasoning models do this on their own.

Delimiters

Fencing your inputs with things like triple quotes or XML tags. This keeps the model from mixing up your instructions with the data. It's also a light defence against prompt injection, where hidden text tries to hijack the model.

Prompt chaining

Breaking a big task into a line of smaller prompts, like extract, then draft, then check. Each step is simpler, and you can test each one on its own.

Context engineering

Managing everything the model sees on a call. That's the prompt, retrieved docs, tools, memory, and history. It also means deciding what to drop or shorten. It's the 2026 successor to prompt engineering.

Prompt caching

Reusing an unchanged prompt prefix so repeated calls are cheaper and faster. Put the stable part first.

The stack — tools you'll hear about

You don't need to use or master these. Recognising the names — and which box each sits in — is the tech-stack awareness a PM needs. No deep dive.

  • LangChain · LlamaIndexFrameworksOrchestrate prompts, context, tools.
  • DSPyFrameworksProgram & optimise prompts instead of hand-tuning.
  • Instructor · PydanticPrompt toolingGet reliable structured (JSON) output.
  • promptfoo · PromptLayerPrompt toolingTest, compare and version prompts.
  • Provider playgroundsPrompt toolingOpenAI / Anthropic consoles to iterate fast.

Try it

Prompt lab — build a prompt, watch the output change

Toggle the system prompt, examples and JSON format on and off, and see the answer transform.

Prompt engineering

The same model, shaped by its prompt

The prompt · toggle blocks

My data isn't working after recharge.

Model output
Zero-shot · no rules, no format

Oh no, sorry to hear your data isn't working! There are honestly so many things that could be going on here. Sometimes it's the network, sometimes the phone, sometimes the plan. You could try turning it off and on, or maybe checking coverage in your area, or it might be a recharge that hasn't gone through under policy #4471-B (I think?). Let me know more and we can dig in together...

Rambling, off-role, and it invented a policy number — nothing told it how to behave.

Zero-shot vs few-shot: zero-shot just asks; few-shot shows a couple of worked examples first, so the model mirrors their format and tone.

System prompt: persistent rules that apply to every turn — role, tone, and the lines it must never cross.

Why it matters to a PM: prompting is the cheapest, fastest lever — try it before RAG or fine-tuning. Structured output is what lets AI trigger real actions: a refund, a CRM update, a routed ticket. And a prompt change is a product change — version it and eval it like any other release.

Try it

The techniques to know by name

Ten prompting techniques — what each is, when to reach for it, and a concrete example. Tap to expand.

The prompting toolkit

Prompting is iterative, testable product work — not a lucky sentence.

Treat prompts like any other artefact you ship: version them, keep a set of eval prompts, and measure changes instead of eyeballing. These are the techniques an AI PM should recognise by name and know when to reach for.

Zero-shot

Ask directly, no examples — just the instruction.

Few-shot

Show 2–3 worked examples so the model copies the pattern.

Chain-of-thought

Ask it to reason step by step before giving the answer.

Role / persona

Assign an identity: "You are a senior telecom support agent…"

Delimiters & structure

Fence inputs so the model can't confuse instructions with data.

Structured output

Force a strict shape (JSON / schema) that software can act on.

Self-consistency

Sample several answers and take the majority vote.

Prompt chaining

Split a big task into a pipeline of smaller prompts.

Give it an out

Explicitly allow "I don't know" to cut hallucination.

Injection defence

Never treat retrieved or user text as instructions.

Why it matters to a PM: knowing these by name lets you spec features precisely — “few-shot the classifier, then chain a policy check” is a design, not a vibe. And it lets you reach for the cheapest technique that works: most quality problems are a prompting problem before they're a RAG or fine-tuning problem.

Test yourself

Recall beats re-reading. Answer before you flip.

Prompting & Context Engineering · self-test
1 cards
Card 1 / 1 · box 1
Do this

Take a real support question and write two prompts for it: a lazy one-liner, and a structured one with a system role, two examples, and a required JSON shape ({intent, answer, escalate}). Note how much more usable the second output is.

This is where the hours go — reading is the warm-up, doing is the learning.

Go deeper
  • ChatGPT Prompt Engineering for DevelopersDeepLearning.AI
  • Prompt engineering overviewAnthropic docs

External resources open in a new tab. Course prices and links change — verify before paying.

Marked this one off? Your progress saves on this device.

PreviousLLMs, Tokens & TemperatureNextEmbeddings & Semantic Search