Gallery

Contacts

405 W. Greenlawn Ave Lansing, Michigan 48910

contact@techjacksolutions.com

+1-616-320-4064

Language & Generation · learning vertical
Track 01 · Language & Generation Novice · start here ~7 min

What is prompt engineering?

An AI model only "sees" the words you give it. Prompt engineering is the skill of writing those words so you reliably get good, useful output. Learn what makes a prompt strong, the parts of a good prompt, and the core techniques — right here on the page.

Module progress
0%

01Weak prompt vs. strong prompt

Asking an AI for help is a bit like handing a task to a brand-new assistant who can't ask follow-up questions: the clearer your written request, the better the result. That skill of writing the request well is called prompt engineering — and the words you type (your prompt) are all the model has to work with, so structure matters. Take the same task and compare a vague one-liner with a structured prompt. Flip between them below.

ExploreFlip between weak and strong
The prompt
Likely result
Vague & unguided
prompt quality

A one-line ask leaves every choice — length, audience, format — up to the model, so results vary wildly run to run.

  • The same task can give very different output depending on how the prompt is written.
  • A strong prompt removes guesswork: it states the task, the context, an example, and the format you want.
  • Clear prompts make results more consistent — closer to the same quality every time.

02The parts of a good prompt

A strong prompt is usually built from a few building blocks. You won't always need all of them, but knowing them gives you a checklist. Tap each part to see what it does — the default shows Instruction, the one piece almost every prompt needs.

ExploreTap a building block
A good prompt, part by part
1Instructionsay what you want
2Contextgive the background
3Examplesshow the pattern
4Formatset the output shape
Building block 1

Instruction

The core ask: say exactly what you want the model to do, as specifically as you can. Replace vague verbs ("help with") with precise ones ("summarize," "rewrite," "list"). This is the one part almost every prompt needs.

Weak: "Tell me about dogs."
Strong: "Summarize the three most common care needs of a Labrador puppy."

03Core techniques to know

Beyond the basic building blocks, a handful of techniques reliably improve results. Switch between them — each is a tool you reach for depending on the task.

ExploreSwitch technique

Few-shot — show the pattern

Give the model one to three examples of the input → output you want before your real request. Examples teach the desired style and format faster than describing them in words.

Example: "happy" → positive
Example: "this is awful" → negative
Now classify: "I love it" → ?

Chain-of-thought — think step by step

For reasoning, math, or multi-step tasks, ask the model to work through it step by step before giving an answer. Spelling out the reasoning often improves accuracy on harder problems.

Prompt: "Solve this word problem. Think step by step, then give the final answer."

Role & persona — set the framing

Tell the model who it should act as. A role shapes tone, vocabulary, and what it focuses on — useful for matching an audience or a domain.

Prompt: "You are a patient math tutor for a 10-year-old. Explain fractions simply."

Output format — set the shape

Say exactly how you want the answer delivered: a bulleted list, a table, JSON, a single sentence. Specifying the format makes output easier to use and easier to reuse.

Prompt: "Respond as a bulleted list of 3 items, no preamble."
Prompt: "Return the answer as JSON with keys name and score."
Iteration is the real skill: rarely is the first prompt the best one. Read the output, see what's missing, and refine the wording — small changes can shift results a lot. And remember: even a great prompt can't make a model factual. For anything that matters, pair prompting with grounding and verification.

04Check your understanding

TJS Quiz
window.onload=function(){window.print()}<\/scr'+'ipt>'; var w=window.open('','_blank'); if(w){ w.document.write(html); w.document.close(); } } function accentHex(){ var v=getComputedStyle(root).getPropertyValue('--tjq-accent').trim(); return v||'#2095e9'; } function dlCanvas(cv){ var a=document.createElement('a'); a.download=(D.id||'quiz')+'-result.png'; a.href=cv.toDataURL('image/png'); a.click(); } function shareCard(pct,cat){ var cv=$('#tjqCardCv'); if(!cv||!cv.getContext) return; var x=cv.getContext('2d'),W=cv.width,H=cv.height,acc=accentHex(); var g=x.createLinearGradient(0,0,W,H); g.addColorStop(0,'#0E1F40'); g.addColorStop(1,'#10294f'); x.fillStyle=g; x.fillRect(0,0,W,H); x.save(); x.globalAlpha=.16; x.fillStyle=acc; x.beginPath(); x.arc(W*.85,H*.16,160,0,7); x.fill(); x.restore(); x.fillStyle='rgba(255,255,255,.55)'; x.font='600 21px DM Sans, sans-serif'; x.fillText('TJS QUIZ · AI KNOWLEDGE HUB',58,76); x.fillStyle='#fff'; x.font='700 60px Fraunces, serif'; x.fillText(D.topic||'Quiz',56,168); x.fillStyle=acc; x.font='700 28px "Space Mono", monospace'; x.fillText(String(cat||'').toUpperCase(),58,H-150); x.fillStyle='#fff'; x.font='700 104px "Archivo Black", sans-serif'; x.fillText(pct+'%',54,H-52); x.fillStyle='rgba(255,255,255,.55)'; x.font='400 21px DM Sans, sans-serif'; x.fillText('scored on the '+(D.topic||'')+' quiz',58,H-22); x.strokeStyle=acc; x.lineWidth=8; x.strokeRect(0,0,W,H); if(cv.toBlob && navigator.canShare){ cv.toBlob(function(blob){ try{ var file=new File([blob],'quiz-result.png',{type:'image/png'}); if(navigator.canShare({files:[file]})){ navigator.share({files:[file],title:'My quiz result',text:'I scored '+pct+'% ('+cat+') on the '+(D.topic||'')+' quiz.'}).catch(function(){dlCanvas(cv);}); return; } }catch(e){} dlCanvas(cv); }); } else dlCanvas(cv); } function certPrint(pct,cat){ var raw=(($('#tjqCertName')||{}).value)||''; var name=esc(raw.trim()); var ds=new Date().toLocaleDateString(undefined,{year:'numeric',month:'long',day:'numeric'}); var id='TJQ-'+String(Math.floor(Math.random()*1e9)); var acc=accentHex(); var html='Certificate
Certificate of Completion

'+esc(D.topic||'Quiz')+'

This recognizes

'+(name||'—')+'

for completing the assessment at the '+esc(cat)+' level ('+pct+'%).

'+ds+' · TJS AI Knowledge Hub · ID '+id+'

A self-assessment summary recognizing completion of an educational module — not a professional certification.

window.onload=function(){window.print();}<\/scr'+'ipt>'; var w=window.open('','_blank'); if(w){ w.document.write(html); w.document.close(); } } renderStart(); })();

05Take it with you & go deeper

"Prompt engineering in 5 minutes" — one-page summary
The whole module distilled to a printable cheat-sheet.
▸ Already on the site — go deeper

Continue learning

Sources & review

Published by Tech Jacks Solutions · Reviewed June 2026. This lesson explains established concepts and is grounded in the references below; figures shown in the interactives are illustrative and labelled as such.

Prompt engineering — in 5 minutes

Tech Jacks Solutions · AI Knowledge Hub · educational summary

What it is

Prompt engineering is writing inputs that reliably get good outputs from an AI model. The model only "sees" your prompt, so structure matters. The same task can give very different results depending on how you ask.

The parts of a good prompt

Instruction — say exactly what you want. Context — give the background/material the model needs. Examples — show 1-3 examples of the desired input → output. Format — set the output shape (list, table, JSON, one sentence).

Core techniques

Few-shot — include 1-3 examples to teach the pattern. Chain-of-thought — "think step by step" for reasoning tasks. Role & persona — "You are a…" to set tone and focus. Output format — specify how the answer should be delivered.

Iterate — and verify

Refine the prompt based on the output; small wording changes shift results. But even a great prompt can't make a model factual — pair prompting with grounding and verification for anything important.