Machinery Learning – an interactive guide to how LLMs work
Source
machinerylearning.eu
Author
rhaist
Date
Why it matters
Explains how models, agent loops and prompt injectionAn attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.Full definition → work, with demos and sourced, dated claims. Useful for engineers who want a groundingTying a model's answers to checkable sources — retrieved documents, live data, tool results — instead of letting it answer from memory alone.Full definition → mental model of the stack they build on.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
Agent loop — A cycle in which an agent observes, decides, acts, and interprets the result.
prompt injection — An attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.
grounding — Tying a model's answers to checkable sources — retrieved documents, live data, tool results — instead of letting it answer from memory alone.