AI Product Engineering
Block 1: Foundations & The Exocortex
LLMs predict the next token. Your prompt shapes the probability distribution of the output.
| Component | Purpose |
|---|---|
| Role | Set perspective & expertise level |
| Context | Background information the model needs |
| Task | Precise instruction of what to do |
| Format | Structure of the output |
| Constraints | Scope, length, or content limits |
Bad output? Ask: which component is missing?
Classify as Positive, Negative, or Neutral: "Late delivery, great product."
Works for simple, standard tasks
"Broken on arrival." → Negative "Exactly as described." → Positive "Late delivery, great product." → ?
Better for complex or non-standard tasks
"Think step by step before giving your final answer."
Available in small (£12), medium (£18), large (£24). Ships in 5 days.
Cannot reliably parse with code
{"sizes":[{"name":"small","price":12}...],
"shipping_days":5}response.sizes[0].price always works
You are a data extraction assistant.
Extract product details from the text below.
Respond ONLY with valid JSON matching this schema:
{
"sizes": [{"name": string, "price_gbp": number}],
"colours": [string],
"shipping_days": number
}
Do not include any text before or after the JSON.
Text: [product description here]Instructions that persist across all conversation turns — set persona, constraints, and format once.
SYSTEM: You are a concise technical assistant. Always respond in JSON. Limit to 200 tokens unless asked to elaborate. USER: What are the key factors in choosing a database?
prompts.md library todayNext Session: The Personal Exocortex