Lesson 09 Safety, privacy, cost, limitations
Theme:

Safety, privacy, cost, and limitations

Reading time: ~18 min · Prereqs: Lessons 01–08 · 4 interactive tools inside · The owner's manual you wish came with the chatbot.

The thing tutorials skip

Most "getting started with AI" guides show you the impressive parts. The creative writing that writes itself. The code that appears from thin air. The summary that takes seconds instead of hours. What they skip is the part of the owner's manual called "Cautions and limitations."

This lesson fills that gap. Seven topics. Each one grounded in something that actually goes wrong for real people. None of them should stop you from using AI — they should help you use it better and safer.

Use the four interactives

This page has four hands-on tools: a Privacy Risk Grader, a Cost Projector, a Hallucination Spotting quiz, and a Pre-flight Checklist. The checklist in particular is meant to be used every time you ship something AI-powered. Complete it before you move on.

1. Hallucinations: confident AI, wrong answer

You've heard the word before. Let's be precise about what it means.

A hallucination is when an AI model generates false information and presents it as fact — with complete confidence, fluent prose, and no disclaimer. It's not a bug in the traditional sense. It's a natural consequence of how LLMs work: they predict plausible text, and plausible text is not the same as verified truth.

The most dangerous hallucinations are specific ones. An AI claiming the speed of light is roughly 300,000 km/s is almost certainly right. An AI saying "According to a 2019 paper by Dr. Sarah Chen at MIT titled Neural Pathway Optimisation in Transformer Architectures..." is much more likely to be invented, down to the fake author, fake title, and fake institution.

The terrifying part is the tone. The AI sounds exactly the same whether it's right or fabricating. The confidence is baked in. You cannot listen your way to knowing if a claim is hallucinated — you have to check.

Making hallucinations less likely

Add these phrases to prompts where accuracy matters: "If you're not sure, say so." and "Please indicate your level of confidence." This doesn't eliminate hallucinations, but it prompts the model to hedge when it's guessing rather than presenting guesses as certainties. Also: for any specific claim (a statistic, a person's title, a publication), verify it against an independent source before you use it.

Interactive 1 of 4 — Spot the Hallucination

Each box below is a mock AI response. One sentence in each is the fabricated one. Click the sentence you think is the hallucination. You'll get instant feedback and an explanation.

Response 1 of 4 — History question
You asked: "Tell me about the Battle of Waterloo."
  • The Battle of Waterloo was fought on 18 June 1815 near the town of Waterloo in present-day Belgium.
  • Napoleon's forces were defeated by the Duke of Wellington's coalition army, which included approximately 118,000 troops and was supported by a French naval blockade coordinated from Calais.
  • The battle effectively ended Napoleon's rule and led to his exile to the island of Saint Helena.
The fabricated sentence is #2. There was no French naval blockade coordinated from Calais — this is invented detail. Wellington's coalition included Prussian forces under Blücher, not a naval element. The hallucination is typical: the surrounding facts are real, making the false detail easy to miss.
Response 2 of 4 — Science question
You asked: "What causes rainbows?"
  • Rainbows form when sunlight enters water droplets in the atmosphere, bends (refracts) as it enters, reflects off the inside back surface, and refracts again as it exits.
  • The phenomenon was first mathematically described by Ibn al-Haytham in his 1021 work Kitab al-Manazir, which included precise measurements of the 42-degree arc angle now called the "al-Haytham constant."
  • Different wavelengths of light bend at slightly different angles, separating white light into the visible spectrum from red (outermost) to violet (innermost).
The fabricated sentence is #2. The 42-degree viewing angle is real, but it's not called the "al-Haytham constant" — that name is invented. The mathematical explanation of rainbows was advanced by René Descartes in 1637 and later refined by Newton. Mixing a real name (Ibn al-Haytham, who genuinely worked on optics) with a fabricated attribution is a classic hallucination pattern.
Response 3 of 4 — Tech question
You asked: "What is Python used for?"
  • Python was created by Guido van Rossum and first released in 1991; it is consistently ranked as the most popular programming language in the TIOBE index, which measures language popularity based on a proprietary survey conducted exclusively with Fortune 500 companies.
  • It is widely used for data science, machine learning, web development, automation, and scientific computing.
  • Python's design philosophy emphasises code readability, and its syntax allows programmers to express concepts in fewer lines of code than languages like C++ or Java.
The fabricated sentence is #1 (the last part). Python was created by Guido van Rossum and first released in 1991 — that's correct. But the TIOBE index does not survey "exclusively Fortune 500 companies." It uses search engine queries and other public data. The AI smuggled a false methodological detail into an otherwise true statement.
Response 4 of 4 — Health question
You asked: "Is coffee good or bad for you?"
  • Moderate coffee consumption (3–4 cups per day) has been associated in multiple large studies with reduced risk of type 2 diabetes, Parkinson's disease, and liver disease.
  • A landmark 2018 meta-analysis published in The Lancet Nutritional Medicine by Dr. Frank Hu's team at Harvard concluded that the optimal daily dose is precisely 3.7 cups and coined the term "the coffee sweet spot" which is now standard in dietary guidelines.
  • High caffeine intake can raise blood pressure and disrupt sleep, so people sensitive to caffeine or with certain heart conditions are generally advised to limit their intake.
The fabricated sentence is #2. The "3.7 cups" precision, the "coffee sweet spot" coinage, and the claim it's "now standard in dietary guidelines" are all invented. While Dr. Frank Hu has done real nutrition research at Harvard, and The Lancet is a real journal, this specific paper and its framing are fabricated. Medical-sounding specificity with real names attached is one of the most convincing hallucination types.
Score: 0 / 4

Notice how the fabricated details are always specific and plausible — that's what makes hallucinations dangerous. Vague statements are easy to question; specific false claims are easy to believe.

2. Privacy: what happens to your data

When you type into Claude.ai, ChatGPT, or any cloud AI service, your message travels over the internet to servers you don't control. Depending on the service's terms and your subscription type, that data may be:

None of this means cloud AI is dangerous to use. It means you should think of it the same way you think of sending an email: suitable for most things, not suitable for secrets.

The practical rule: never paste anything into a public AI chat that you would not put in a company-wide email or a public forum. This includes passwords, API keys, medical records, financial account details, other people's private information (without their knowledge), and trade secrets.

When privacy is genuinely non-negotiable — you're a healthcare worker handling patient data, a lawyer handling client files, a developer working with production credentials — the answer is a local model. Ollama or LM Studio (Module 4) run entirely on your machine. Nothing leaves. The models are somewhat less capable than the top cloud models, but the privacy guarantee is absolute.

Interactive 2 of 4 — Privacy Risk Grader

Select the tool you're using and the type of data you're about to paste in. Get an instant verdict.

This grader encodes common-sense rules. When in doubt, prefer the local model or omit the sensitive detail entirely.

3. Bias: models learned from flawed humans

AI models are trained on text written by people. People hold biases — about gender, race, profession, nationality, and countless other dimensions. The model learns the patterns in that text, which means it absorbs the biases too.

This shows up in subtle ways: occupations assumed to belong to certain genders, certain nationalities associated with certain qualities, advice that reflects the assumptions of the dominant training corpus (which skews heavily English, Western, and internet-connected). More overtly, some models have shown different responses to identical questions framed around different demographic groups.

For casual use, this is worth being aware of but rarely a serious concern. For decisions that affect people — hiring, lending, insurance, medical triage — it matters enormously. Using AI to screen CVs at scale, for example, risks encoding and amplifying whatever biases exist in the training data, applied to thousands of real people's careers.

The practical guidance: add human review and critical thinking wherever AI output touches individual people. Spot-check outputs for patterns. Don't automate at scale what you wouldn't trust on a single case. And know that many jurisdictions are actively legislating around AI in high-stakes decisions: the EU AI Act classifies AI for employment, education, and credit as "high-risk" with mandatory requirements.

Critical: audit before you scale

If you're building any workflow where AI output affects decisions about people, test it manually on 20–50 diverse examples before you automate. Look for patterns. Ask: "Would this output be the same if I changed the name from 'James' to 'Fatima'? From 'London' to 'Lagos'?" If the answer is no and it shouldn't be, you have a bias problem at scale.

4. Cost: tokens add up fast in a loop

Cloud AI APIs charge by the token. One token is roughly three-quarters of a word. The cost per token is tiny — fractions of a cent — which makes it easy to underestimate how quickly it accumulates when you're processing large documents, running many calls in a loop, or building an agent that makes requests autonomously.

A common mistake for new developers: writing a loop that processes a large dataset, forgetting to add a counter or cap, and waking up to a large bill. This isn't theoretical. It's a well-documented pattern in developer communities.

The fixes are simple but require doing them proactively:

Interactive 3 of 4 — Cost Projector

Drag the sliders to see how API costs project over time. Then hit "Show runaway agent" for a shock.

0.10¢
100
Daily cost
$0.10
Monthly cost
$3.00
Yearly cost
$36.50

Set a monthly spending cap in your API console before you write any loop. It takes 30 seconds and can save you hundreds of dollars.

5. Agents need a leash

Earlier modules introduced AI agents: tools like Claude Code, AutoGPT, and others that go beyond answering questions to actually taking actions — editing files, running commands, sending requests, browsing the web.

The power here is real, and so is the risk. An agent doesn't have common sense about consequences. If you ask it to "clean up the project folder" and you've given it write access, it might delete things you didn't mean to delete. If you ask it to "send a follow-up email to everyone on the list" and you haven't reviewed the list, it might send 10,000 emails.

The failure mode isn't the agent going "rogue" in a sci-fi sense. It's the agent doing exactly what it understood you to mean — which wasn't quite what you meant. Misunderstood instructions at agent speed cause real damage.

The rules are few but firm:

Critical: production = supervised

The rule is simple: if an action affects real users, real data, or real money, a human reviews it before it executes. Agent tools are powerful multipliers. The same quality that makes them fast at the right thing makes them fast at the wrong thing. Keep a human in the loop until you've verified the agent's judgement on your specific task through extensive supervised testing.

6. It doesn't know "now"

Every LLM has a training cutoff: a date at which its knowledge effectively stops. The model was trained on text collected up to that point, and it has no way to access anything that happened afterwards unless you tell it or a tool retrieves it.

This cutoff is often many months or even more than a year before you're using the model. The most capable models take a long time to train, evaluate, and release. By the time you're chatting with them, their "most recent" knowledge may already be outdated.

The practical implication: don't ask a standard AI model for time-sensitive information and trust the result. Current stock prices, election results, today's weather, the latest software versions, recently passed laws — these are all danger zones. The model will either honestly say it doesn't know (good) or fill in a plausible-sounding answer from its training data (bad and potentially outdated).

The workarounds:

7. It's not a professional

This is the limitation that most often comes up in advice-seeking conversations, and the one most people underestimate because the AI's tone is so convincing.

AI is not a doctor, a lawyer, or a financial advisor. It doesn't have a licence. It hasn't examined you. It hasn't read your contract, your medical history, or your tax situation. It knows general patterns from training data. Your situation is specific.

The gap matters most when consequences are high. An AI might describe the typical symptoms of appendicitis correctly but have no way to tell you whether your stomach pain is appendicitis, gas, or something else entirely. A lawyer might correctly summarise what a contract clause generally means but not know that in your jurisdiction there's a recent case that changes the interpretation entirely.

The right way to use AI with professional questions: use it to understand the landscape and prepare better questions for a real professional. "Explain what a non-compete clause is and what I should ask a lawyer about mine" is a great use. "Should I sign this non-compete?" is not one the AI can safely answer.

The "prepare your questions" superpower

AI genuinely shines at turning a scary professional appointment into a productive one. Ask it to explain the terminology you'll encounter, list the questions you should ask your doctor about a diagnosis, or summarise what a financial product is so you can have an informed conversation with an advisor. You'll get more out of the professional meeting, and you'll be a better-informed participant in your own decisions.

Putting it all together: the Pre-flight Checklist

The seven topics above boil down to a set of habits. The checklist below covers everything you should verify before shipping any AI-powered project — a script, an automation, an app, or even a regular workflow. Your state is saved between visits, so you can come back and tick things off as you set them up.

All 12 items must be checked to earn the green banner.

Interactive 4 of 4 — Pre-flight Safety Checklist
0 / 12 checked

API key & credentials safety

Privacy review

Hallucination verification habit

Cost & scale controls

Agent & automation guardrails

Knowledge & professional limits

✓ You're ready to ship safely.

State is saved in your browser. Come back and check things off as you set them up for a new project.

Summary

Seven risks, seven habits. None of them require you to become an AI safety researcher. They require building a mental checklist you run before trusting output, before pasting data, before deploying a loop, and before making decisions that affect people.

The goal isn't to make you afraid of AI — it's to make you the kind of person who uses it well for years without getting burned. The people who get the most out of AI tools are not the ones who trust blindly or distrust completely. They're the ones who know the failure modes and work around them.

The homework page gives you three tasks that practice these habits on real scenarios. They're the most important exercises in this course because they build the instincts that protect you in everything that comes after.