← Hub
Safety, limits & evaluation08 / 08 · All levels

Module 08 · All levels · ~12 min

Safety, limits & evaluation — how AI fails

Hallucinations, prompt injection, and why 'feels smart' isn't a metric.

Loading module…

Common questions this module answers

Why do language models hallucinate?

A model always outputs the most plausible-sounding continuation, whether or not it knows the fact. When the true answer is missing from its weights, the plausible-sounding distribution still produces a confident, fluent — and wrong — answer.

What is prompt injection?

An attack where instructions hidden inside data the model reads — a web page, a retrieved document, an email — try to override the developer's instructions. It is the top security risk for RAG and agent systems.

How do you evaluate an LLM properly?

With evals: a fixed set of test cases plus a grading rubric, scored automatically (exact match, code tests) or by an LLM judge that is itself validated against human grades. Vibes don't regress-test; evals do.