AI in the Real World
Where AI genuinely delivers value in 2026, how it fails in deployment, the failure modes you must recognize, and a practical checklist for telling hype from evidence.
In the previous lesson you built an accurate picture of how generative AI works: next-token prediction, a multi-stage training recipe, and tools wrapped around the model. Now we ask the practical question: what happens when these systems meet the real world? A slick demo can make AI look like it solves everything. A failed deployment can make it look useless. The truth is in between, and it is very specific: AI is excellent at some tasks, unreliable at others, and occasionally harmful when used carelessly. This lesson gives you a map of where AI works, how it fails, and a checklist for cutting through hype.
Where AI delivers real value
AI tends to shine when three things are true: there is plenty of relevant data (or a capable pretrained model), mistakes are tolerable or catchable, and the task repeats often enough that automation pays off. Some well-established areas:
| Domain | Typical applications | Why it works |
|---|---|---|
| Language | Translation, summarization, drafting, search, customer support | Huge amounts of text data; outputs can be reviewed |
| Software | Code completion, coding agents, test generation, explaining code | Code can be executed and tested, so errors are caught |
| Vision | Defect detection on production lines, document processing, medical image triage | Clear visual patterns; consistent conditions |
| Recommendation | Streaming, shopping, news feeds | Massive behavioural data; individual errors are cheap |
| Forecasting | Demand planning, energy load, logistics | Historical time series; decisions improve even with imperfect forecasts |
| Science | Protein structure prediction, materials screening, weather modelling | Well-defined objectives and large curated datasets |
Notice the recurring theme: the best applications pair AI with a way to check the output, whether that is a human reviewer, a test suite, or a downstream measurement. Software has become one of the most successful areas for agents precisely because code comes with an automatic checker: run the tests.
The decision tree captures the three questions above: without data there is nothing to learn from, without a cheap check errors slip through, and without volume automation rarely pays for itself. Most real projects land in the middle branches, where AI assists a person rather than replacing a process.
The core limitations
Even the most capable systems share structural limitations. Understanding them separates effective users from frustrated ones.
They learn correlations, not guaranteed causes. A model might learn that hospital images containing a certain ruler marking are more likely to show disease, simply because sicker patients were scanned on particular machines. It looks accurate in testing and fails in deployment.
They depend on their training distribution. Models perform best on data that resembles what they were trained on. When the world changes, through new products, new slang, new sensors, or a pandemic, performance can quietly degrade. This is distribution shift.
They can be confidently wrong. Many models output a probability or fluent text either way. A high-confidence prediction is not the same as a correct one, and models are often poorly calibrated on unfamiliar inputs.
They have limited knowledge of their own limits. A language model has a training cutoff and may not know recent events unless a tool supplies them, yet it can still answer as though it does.
Errors compound in long tasks. An agent that is 95% reliable per step finishes a 20-step task flawlessly only about 36% of the time, assuming independent steps:
This is why practical agents are designed with checkpoints, verification steps, and the ability to retry or ask a human.
Failure modes to recognize
Here are the failure patterns you will meet again and again, with what to do about each.
- Hallucination: a language model invents a fact, quote, statistic, or citation. Mitigation: ground answers in provided sources, ask for citations you can verify, and check anything that matters.
- Bias and unfairness: a model performs worse for some groups or reproduces historical discrimination. Mitigation: measure performance separately across groups, audit training data, and keep humans accountable for consequential decisions.
- Shortcut learning: the model latches onto a spurious cue (a watermark, a background, a phrase) instead of the real signal. Mitigation: test on deliberately varied data and inspect what drives predictions.
- Distribution shift: performance drifts after deployment. Mitigation: monitor live metrics and retrain or recalibrate on fresh data.
- Prompt injection and adversarial inputs: crafted inputs fool a model or hijack an assistant's instructions, for example a web page or email containing hidden commands for an agent. Mitigation: treat external content as untrusted, give agents the minimum permissions they need, and require confirmation for consequential actions.
- Sycophancy: the assistant agrees with your mistaken premise or praises weak work. Mitigation: ask for critique and counterarguments explicitly, and do not lead the witness.
- Automation bias: humans over-trust AI and stop checking. Mitigation: design workflows where review is real, not ceremonial, and measure how often reviewers actually catch errors.
Tip: For any AI output, ask: "If this is wrong, how would I find out, and what would it cost?" If the answer is "I wouldn't, and a lot", add a check.
Hype vs reality
AI attracts both breathless optimism and reflexive dismissal. A disciplined thinker evaluates specific claims. Use these questions:
- What exactly was measured? "Human-level performance" on a benchmark is not the same as doing the job. Benchmarks are narrow, they saturate, and test questions can leak into training data (contamination).
- On what data? Was the test set truly separate from training? Does it resemble real conditions?
- Compared with what? An improvement means little without a baseline: the previous model, a simple heuristic, or a skilled human with the same time budget.
- How often does it fail, and how badly? Average accuracy hides rare but severe failures.
- What does it cost? Impressive systems may be expensive or slow to run, especially reasoning models with long outputs. Value depends on accuracy and cost per task.
- Is it a demo or a deployment? Curated demos show best cases. Ask for results in sustained, real-world use, ideally from an independent evaluator.
Base rates: a worked example
You can sanity-check claims with simple arithmetic. Consider a screening model that is 95% accurate for a condition only 1% of people have:
population = 10_000
prevalence = 0.01
sensitivity = 0.95 # catches 95% of true cases
specificity = 0.95 # correctly clears 95% of healthy people
sick = population * prevalence
healthy = population - sick
true_pos = sick * sensitivity
false_pos = healthy * (1 - specificity)
print(f"Positive results: {true_pos + false_pos:.0f}")
print(f"Of those, actually sick: {true_pos / (true_pos + false_pos):.0%}")
This prints 590 positive results, of which only 16% are actually sick. By hand: of 10,000 people, 100 are sick and the test flags 95 of them; of the 9,900 healthy people, 5% (495) are wrongly flagged. So
Despite "95% accuracy", most alarms are false, because healthy people vastly outnumber sick ones. The same logic applies to fraud detection, content moderation, and AI-text detectors. You will formalize this with Bayes' rule in the math module.
AI's wider footprint
Real-world impact is not only about accuracy. Three broader issues come up in every serious deployment, and Module 14 (Responsible AI) covers each in depth.
- Privacy and data: what data goes into prompts and training, who can see it, and how long it is kept.
- Energy and cost: training and serving large models consume significant electricity and hardware. Efficient models and inference reduce both cost and footprint.
- Accountability and regulation: laws such as the EU AI Act set obligations based on risk level. Regulation is evolving, so check the current rules for your jurisdiction and sector.
Hands-on exercise
- Run the screening calculation above. Change prevalence to 0.1 and then 0.3. How does the share of true positives change? Explain in one sentence why.
- Compute the chance of a flawless agent run for per-step reliability 0.90, 0.95, and 0.99 over 10, 20, and 50 steps (
p ** n). Put the results in a small table. What per-step reliability do you need for a 50-step task to succeed 90% of the time? - Ask a chat assistant (with web search off, if possible) for three academic papers on a niche topic you know, with authors and years. Verify each one. Record how many were real, partly wrong, or invented. Then repeat with search on and compare.
- Find a recent news article claiming an AI breakthrough. Answer the six hype-vs-reality questions using only what the article says. Which does it leave unanswered?
Expected outcome: you have concrete numbers showing how base rates and compounding errors change the picture, and a habit of interrogating claims.
Key takeaways
- AI delivers the most value where data or capable models exist, outputs can be checked, and tasks repeat.
- Models learn correlations from their training distribution and can fail silently when the world shifts.
- Know the failure modes: hallucination, bias, shortcut learning, drift, prompt injection, sycophancy, and automation bias.
- Small per-step error rates compound in long agent tasks; design in checks.
- Judge claims by what was measured, on which data, against what baseline, and at what cost; remember base rates.
Next, you will set up your own AI toolkit: Python, notebooks, git, the core libraries, and a responsible way to learn with AI assistants.
Further reading
- Geirhos et al., "Shortcut Learning in Deep Neural Networks" (2020): a readable survey of how models find unintended shortcuts.
- Arvind Narayanan and Sayash Kapoor, AI Snake Oil (2024): a careful guide to which AI claims hold up and which do not.
- OWASP, Top 10 for Large Language Model Applications: practical security risks, including prompt injection, at https://genai.owasp.org/
- Stanford HAI, AI Index Report (yearly): independent data on capabilities, costs, and incidents at https://aiindex.stanford.edu/
Save your progress and earn XP
Create a free account to take the quiz, track progress and unlock badges.