Track lessons
  1. 1How a language model works: parameters and inferenceVideo 3 min
  2. 2How AI finds text by meaning: embeddings and hybrid searchVideo 3 min
  3. 3How AI answers from verified sources: RAGVideo 3 min
  4. 4In-house enterprise AI: VM, GPU node and proxyVideo 2 min
  5. 5Why one machine is rarely enough: memory and queuesVideo 2 min
  6. 6Where your data goes: external models vs in-house proxyVideo 3 min
AI Garage · try it
Lesson 1 of 6 · Video 3 min

How a language model works: parameters and inference.

The model file never updates as it answers you. Every sentence is predicted one piece of text at a time by statistical score — which is why smooth wording can still invent facts.

Level: For learners · 15 min

Lesson 1 opens the sequence: what is actually running behind the scenes before documents, memory or privacy enter the picture.

In one sentence

Trained parameters stay frozen and read-only; inference computes the most probable next token step by step.

Clean technical bench showing an isolated weight storage module on the left, the compute node pulsing in the middle and aligned transparent token blocks aheadClean technical bench showing an isolated weight storage module on the left, the compute node pulsing in the middle and aligned transparent token blocks ahead
Illustrative diagram · on the benchWhat to look for: click callouts 1–3: frozen parameters on the left stay read-only while the central compute node picks each next token in sequence.
  1. 1Frozen parameter file: Fixed numbers learnt during upstream training: read-only at runtime, never learns from your daily questions.
  2. 2Inference node: Reads your prompt and context window and evaluates probabilities step by step without editing weights.
  3. 3Token-by-token stream: Candidates compete per step; probabilistic sampling can vary phrasing across identical runs.
Read as · choose your angleLevel: For learners · 15 min

In 30 seconds · takeaway

Why an ungrounded chatbot can invent answers politely

  1. A language model stays read-only every day: answering your questions teaches it nothing permanently.
  2. At each step it predicts the statistically likeliest next word fragment — not a lookup against your signed files.
  3. 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.

Short clip before testing · 36 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Watch how it generates

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.

1 · FROZEN WEIGHTS Model file [ 0.14 -0.82 0.41 ] [ 0.67 0.09 -0.53 ] [ -0.21 0.48 0.77 ] Numbers fixed once at training. Never learns from your prompts. Read-only at runtime reads 2 · NODE INFERENCE Word-by-word prediction «The support agreement renews every year …» Never opens your contract: scores what sounds most likely immediately after the prompt. scores 3 · OUTPUT PROBABILITY Candidate tokens year 48% 12 20% month 14% two 9% Emits 1 word, then repeats. 1 · FROZEN WEIGHTS (READ-ONLY) Pre-trained model weight file [ 0.14 -0.82 0.41 ] [ 0.67 0.09 -0.53 ] Static numbers: unaware of your contracts. 2 · NODE INFERENCE Estimates the next likely token: «…renews every year …» Every reply recomputes token by token. 3 · NEXT-WORD PROBABILITY year 48% 12 20% month 14% Reads well, yet checks none of your data.
Animated schema · static weights and token streamWhat to look for: weight file (1) stays unchanged; at each step node (2) scores candidates (3) until the sentence terminates.
Motion clip on technical bench: weight module fixed on the left, pulsing compute unit in the center and sequential token blocks in frontMotion clip on technical bench: weight module fixed on the left, pulsing compute unit in the center and sequential token blocks in front
Veo clip 6 s · Live bench visualWhat to look for: smooth camera push across the bench: frozen weights left, pulsing inference center, crisp five-token sequence emitted ahead.

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

    What to look for press «Play» and compare deterministic vs varied mode: smooth wording exists with zero access to your contract archive.

    Illustrative example with fictional percentages: real models compute thousands of vocabulary items per step.

    Short clip · Decision maker · 39 s

    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
    Decision maker · value, risk and procurement

    Buying capability vs hiring guesswork

    Controls before sign-off

    1

    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.

    2

    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.

    3

    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

    1. «When no company document answers a prompt, does the assistant clearly say it does not know?»
    2. «Are customer prompts ever used for model training or product telemetry by default?»
    3. «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.

    Short clip · Technical lead · 43 s

    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
    Technical lead · execution mechanics

    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)
    Short clip · Put it to the test · 33 s

    Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

    For learnersPredict, check and recognise limitsHighlighted for your level
    For learners · guided practice

    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 do

    Illustrative 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 do

    Illustrative 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.
    Lesson recap

    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.
    Take into your meeting

    Lesson 1 takeaway · Parameters & Inference

    Loading summary…

    Educational self-assessment sheet generated locally inside your browser. Zero data sent over the network; not a compliance audit.

    Check · 5 questions drawn from 9

    Did it click? Put it to the test.

    1. When a language model answers a request every day, does it permanently learn your company’s information?
    2. Why can two identical questions give slightly different phrasings?
    3. You ask the model «How long does our supplier warranty last?» with no contract uploaded. It answers «24 months». How should you read that?
    4. Why is «15-page attachment plus long chat history» risky for accuracy?
    5. Sales asks for a summary of three 40-page tender annexes combined, and key middle clauses disappear. What caused this?
    Go to next lesson →

    Answers remain inside your browser: missing one brings in a fresh question.

    Up next: Now you know a model predicts likely phrasing without knowing your contracts. Next step: making company files searchable by meaning.

    Want to see this on your workflows?

    Six lessons show what to check before introducing AI into daily work. In a 30-minute call we can walk through it on one of your real processes — or design tailored team training with Wise Academy.