Track lessons
- 1How a language model works: parameters and inferenceVideo 3 min
- 2How AI finds text by meaning: embeddings and hybrid searchVideo 3 min
- 3How AI answers from verified sources: RAGVideo 3 min
- 4In-house enterprise AI: VM, GPU node and proxyVideo 2 min
- 5Why one machine is rarely enough: memory and queuesVideo 2 min
- 6Where your data goes: external models vs in-house proxyVideo 3 min
Why an ungrounded chatbot can invent answers politely
- A language model stays read-only every day: answering your questions teaches it nothing permanently.
- At each step it predicts the statistically likeliest next word fragment — not a lookup against your signed files.
- If a vendor sells «AI that learns your company automatically every time staff chat», ask whether it builds a real index or just repeats guesses.
What this means for you: Never trust fluent tone alone on contracts, figures or safety rules: require source documents first.
Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.
One piece of text at a time, by probability.
Illustrative simulation Notice how the frozen file calculates probable candidate tokens step by step — never opening your real contracts.


Inside next-token prediction
The support agreement renews every
Click «Play» to watch candidate words and selection.
Sampling: compare two probable outputs on the same prompt
Illustrative example with fictional percentages: real models compute thousands of vocabulary items per step.
Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.
Decision makerBuying capability vs hiring guesswork · pre-deployment controls, prerequisites and 3 supplier questionsDeep dive collapsed · click to expand
Buying capability vs hiring guesswork
Controls before sign-off
Separate language skill from company memory
How to assess it
The model provides grammar and reasoning; your verified documents and ERP data must sit outside in a managed index.
Test failure cases, not just happy demos
How to assess it
Run five questions on clauses absent from general public knowledge and check whether the tool refuses or fabricates.
Keep prompts bounded and focused
How to assess it
Dropping full 80-page annexes into raw chat leads to skipped middle clauses; structured retrieval beats brute-force dumps.
What you gain
- Stops teams treating confident drafts as authoritative company policy.
- Clarifies vendor offers: real document RAG vs ungrounded wrapper chat.
- Keeps sensitive facts out of model training runs completely.
What you manage
- Plausible hallucinations on prices, warranty lengths or expiry rules.
- Overstuffed prompts quietly ignoring critical lines halfway through attachments.
- Confusion between prompt history and durable business memory.
Where pure inference trips teams up in SMEs
- Before
- Chat suggests standard warranty terms
- After
- Verify against the applicable supply annex
Illustrative examples
Three supplier questions
- «When no company document answers a prompt, does the assistant clearly say it does not know?»
- «Are customer prompts ever used for model training or product telemetry by default?»
- «What happens to accuracy once users attach 30-page PDFs with tables in the middle?»
Timing, prerequisites and examples
Evaluation: 1 test session with 10 real ambiguous company prompts before procuring or deploying.
- Collect 10 recurring internal questions whose exact answer sits in signed files.
- Write a clear instruction rule telling staff what never gets pasted unverified.
- Require clickable source verification on every operational workflow.
Mechanical manufacturing
A raw prompt asks whether standard warranty covers bronze bushings on custom orders. The chat replies confidently with standard civil periods instead of your specific supply annex.
Industrial services
An operations lead pastes a 50-page tender packet into chat. Clauses near page 27 change penalty ceilings; the summary overlooks page 27 cleanly and reports only opening/closing terms.
Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.
Technical leadForward pass, KV context boundaries and sampling · static weights, sub-word tokenisation, attention loss and samplingDeep dive collapsed · click to expand
Forward pass, KV context boundaries and sampling
Static weights vs runtime state
Inference executes matrix multiplications over immutable quantised weights. Stateful continuity comes exclusively from sliding context tokens and external stores (RAG/DB).
Sub-word tokenisation on codes
Rare part identifiers (e.g. AB-4091-R2) shatter into multiple small tokens, raising latency and lowering literal pattern reliability unless lexical search backs it up.
Temperature and top-p variance
Non-greedy decoding introduces controlled variance across identical inputs. Lower temperature improves repeatability for structured extraction, not factual grounding.
Lost in the middle degradation
Even inside large nominal context windows, recall often drops asymmetrically for clauses buried midway between long boilerplate headers and footers.
Technical sources and verified references (5)
- Vaswani et al. (NeurIPS 2017) — Attention Is All You Need — Core Transformer architecture underlying modern token predictionVerified on 2026-11-25
- Brown et al. (NeurIPS 2020) — Language Models are Few-Shot Learners — Zero/few-shot behaviour and runtime read-only weights during inferenceVerified on 2026-11-25
- Holtzman et al. (ICLR 2020) — The Curious Case of Neural Text Degeneration — Probability sampling mechanics (nucleus / top-p decoding)Verified on 2026-11-25
- Liu et al. (TACL 2024) — Lost in the Middle: How Language Models Use Long Contexts — Empirical recall drop on facts placed halfway inside long input windowsVerified on 2026-11-25
- Kwon et al. (SOSP 2023) — Efficient Memory Management for Large Language Model Serving with PagedAttention — KV cache memory allocation per active context streamVerified on 2026-11-25
Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.
For learnersPredict, check and recognise limitsHighlighted for your level
Predict, check and recognise limits
Work through the interactive sampling simulator above and both applied scenarios below: progress stays strictly inside this browser.
1 · Predict first, then verify tone vs truth
To doIllustrative exercise A coordinator pastes no contract text and asks: «What notice period applies to cancel our CNC maintenance SLA?» The chat replies cleanly: «Standard cancellation notice is 60 days prior to annual expiry.»
2 · Spot context overload mid-document
To doIllustrative exercise Operations uploads a combined 48-page supplier manual into plain chat and requests all torque exclusions. Critical tolerance exclusions on pages 22–24 are omitted while page 1 and page 47 appear clearly.
GlossaryKey terms in this lesson (8)Highlighted
- Language model
- Software that, given an input text, scores which pieces of text are likely to come next and picks them one by one.
- Token
- A piece of text read or generated by the model: common short words may be one token, while long words or part codes split into several tokens.
- Parameters
- Billions of fixed numbers learnt during training that encode patterns from text; they remain frozen during everyday use.
- Training
- The one-off upstream phase where the model learns from large text corpora and fixes its parameters.
- Inference
- Everyday model execution: it reads your prompt and writes an answer without modifying its parameters.
- Sampling
- Choosing one token at each step among the top probable candidates; this is why asking the same question twice can give different phrasing.
- Context window
- The maximum amount of text (instructions, retrieved documents, chat history) a model can process together in a single request.
- Hallucination
- An invented answer written in a confident tone. Grounding with verified documents (RAG, lesson 3) makes it far less likely, though never zero.
What you learnt.
- Separated frozen read-only parameters from runtime inference prediction.
- Tested probabilistic sampling variance and identified long-context middle loss.
- Passed all 5 operational scenario checks on grounded verification.
Lesson 1 takeaway · Parameters & Inference
Educational self-assessment sheet generated locally inside your browser. Zero data sent over the network; not a compliance audit.
Did it click? Put it to the test.
Answers remain inside your browser: missing one brings in a fresh question.













