Home / Articles / Artificial Intelligence
Artificial Intelligence

What Is an AI Model? Weights, Training and Chatbots Explained

The chatbot window is not the model. What is actually doing the learned computation underneath?

Adjust a tiny model to understand weights and loss, then explore training, inference, transformers, diffusion, multimodal systems and retrieval.

What Is an AI Model? Weights, Training and Chatbots Explained — original ExplainItSimply topic illustration
Ronnie Mbuqe Author · ExplainItSimply
October 2026 14 minute read English

The model is not the chatbot window

You open an app and type a question. Behind the reply may be a language model, search results, instructions, filters and ordinary software. Calling that whole experience “the model” hides the different jobs being done.

A machine-learning model is a mathematical system whose adjustable parameters have been fitted using data and an objective. It takes an input and produces an output. That can be a number, a category, a text continuation or part of a process that generates an image or sound.

The word does not mean one specific kind of intelligence. A model predicting tomorrow's demand and a model generating a poem can have very different structures and purposes. Start by asking what goes in, what comes out and how success was measured.

From a booking rule to a learned model

A developer writes “nights × rate”. What would learning from examples change?

For a fixed room rate, a developer can write an exact rule: three nights at a fictional R800 per night cost R2,400 before other charges. The meaning of the inputs and the calculation are specified directly. No training process is required to discover multiplication.

Now imagine predicting demand for rooms next month. The outcome may depend on season, events, prices and other factors, and no single exact multiplication captures the whole relationship. A model can be fitted to historical examples to make a prediction under defined assumptions.

These are different jobs. The model's demand estimate might inform a planning decision, but it should not silently replace contractual pricing rules or permissions. A real product commonly combines learned predictions with ordinary deterministic code.

This distinction helps avoid adding AI merely because it is available. Ask whether the problem needs an uncertain estimate, generated material, a known calculation or a clear business rule. Use the mechanism that fits the job and evaluate the errors that actually matter.

Can one adjustable number show what “learning” means?

Consider a tiny teaching model: output equals input multiplied by a weight. Give it input 2 and a target output of 6. With a weight of 1, its prediction is 2, so it misses the target by 4.

Changing the weight changes the prediction. Training can use an error measure, called a loss, to guide repeated adjustments. Here we use squared error: the difference between prediction and target, multiplied by itself.

Train a one-weight toy model

Input = 2. Target = 6. Prediction = 2 × weight. Loss = (prediction − 6)².

Step: weight ← weight − 0.05 × 4 × (prediction − 6). One example, one parameter; this is not a chatbot.

The training button applies a gradient-based update to this one example. It is a numerical demonstration in your browser, not a language model training in miniature detail. The important relationship is visible: prediction, error, adjustment and another prediction.

Fitting this single example does not prove the model learned a useful rule for a wider world. To test that, we would need appropriate additional examples and an evaluation kept separate from fitting. A perfect answer on one practice item is a very small claim.

Why does fitting “2 becomes 6” not prove the rule is “multiply by three”?

Several rules match that one example. Multiplying the input by three gives 6. Adding four also gives 6. A table that memorises only “input 2 → output 6” fits the example without providing a useful answer for other inputs.

One matching example cannot distinguish these rules
Candidate ruleInput 2Input 5
Multiply by 3615
Add 469
Remember only the supplied pair6No rule established

The toy activity chooses its model family in advance: output equals input multiplied by one weight, with no bias term. Training adjusts within that restricted family. It does not search every conceivable rule and prove a universal law from one point.

That is what the choice of model and training objective contributes: assumptions about the kind of relationship worth fitting. Additional representative examples and appropriate evaluation are needed to judge whether the resulting system is useful beyond the examples used to tune it.

What happens during the first numerical training step?

Begin at weight 1, input 2 and target 6. The prediction is 2 × 1 = 2. The error, defined here as prediction minus target, is −4. Squared error is therefore 16.

For this particular model and loss, the slope with respect to the weight is 4 × (prediction − 6), giving −16 at the starting point. The activity uses a learning rate of 0.05, so the update is 1 − 0.05 × (−16) = 1.8. This is an explicitly chosen teaching calculation, not an estimate of a commercial model's training settings.

The new prediction is 3.6 and the squared error is 5.76. The loss is smaller, but the target has not yet been reached. Repeated steps approach weight 3 in this example, subject to the activity's numerical rounding.

A learning rate controls the size of the adjustment. Too large a step can overshoot or cause unstable behaviour in a training problem. A lower training loss on the examples still does not establish factual truth, fairness or performance on all future inputs.

What are all those weights doing in a larger system?

A weight is an adjustable numerical value used in a computation. A neural network combines many computations arranged in layers, with weights and other parameters affecting how information is transformed. It does not contain a neatly labelled drawer for every fact a user might ask about.

Training sets up tasks, calculates a loss and adjusts parameters to improve the objective across examples. The network's architecture constrains how these computations are organised. The training data and objective influence the patterns that are rewarded.

What Is an AI Model? Weights, Training and Chatbots Explained — explanatory modelInput and parameters; then Compute a prediction; then Measure training loss; then Adjust and evaluate. Simplified original teaching diagram; read the limitations in the surrounding text.Input and parametersCompute a predictionMeasure training lossAdjust and evaluate

An analogy is tuning many linked controls until the system produces better outputs. The analogy does not mean each control has one clear human meaning. In a large model, useful representations can be distributed across many parameters.

Which model term would you like explained with another example?

Share a question, a correction or an example from your own experience below. Please keep private financial, account and personal details out of comments.

Community

Join the conversation

Add your perspective, ask a useful question or share what stood out.

0 comments
◌ No comments yet

This conversation is waiting for its first useful thought.

Why do people say language model, diffusion model and multimodal model?

These names describe different aspects and are not mutually exclusive boxes. A language model models sequences of language tokens. A token can be a word, part of a word or another unit defined by the system; generating one token at a time does not mean every token is a complete word.

A transformer is an architecture that uses attention mechanisms to combine information from positions in a sequence. Many language models use transformers, but “transformer” describes a design rather than a promise that a system is truthful or can handle every task.

Diffusion-based generation learns a process related to reversing noise corruption. In a simplified image example, generation progressively transforms a noisy representation into a structured result under conditions such as a prompt. Systems differ, and some operate in compressed representations rather than directly editing visible pixels at each step.

Multimodal means a system works with more than one kind of information, such as text and images. It describes the kinds of input or output involved, not one universal training method. A multimodal product can combine several components, models or architectures.

Why does a language model generate a sentence piece by piece?

In a typical autoregressive language model, the current context is represented as tokens. The model computes scores for possible next tokens, and a generation procedure selects one. That token becomes part of the context for the next step.

A likely continuation is not necessarily the only continuation. Sampling settings can affect variation, while instructions and supplied context influence the scores. Two answers can differ without the model having been retrained between questions.

This also explains why an answer can begin plausibly and then build on its own mistaken continuation. Subsequent generation is conditioned on what is already in the context, including earlier generated text. Fluent completion is a different requirement from verifying every assertion against an external record.

A product can add tools for tasks such as calculation or search, then decide how to use their results. The model must still ask the right question of the tool and interpret the response correctly. Surrounding software and human oversight remain part of the system's reliability.

Does every question retrain the model?

Not ordinarily. Inference is using a trained model to compute an output. Supplying context can change the answer without changing the model's stored weights, just as changing the numbers entered into a calculator changes the result without rebuilding the calculator.

Fine-tuning is additional training that updates parameters for a purpose. Retrieval supplies selected information at use time, often from a search index or document collection. A product can use retrieval without retraining the model on each document it finds.

Whether a service retains conversations or later uses them for training is a separate product and privacy-policy question. “The weights do not change during this reply” is not the same as “the service stores nothing”. Check the specific service's settings and terms before entering sensitive information.

How can a chatbot answer from a document its original training never included?

Imagine an organisation uploads an authorised handbook to a document-search system. When a user asks a question, retrieval can select relevant passages and supply them as context to a language model. The model generates a response using that context and its learned capabilities.

This does not require updating the model's weights every time the handbook changes. Updating the document collection and retrieval index can change which information is supplied at use time. The generated answer still needs checking against the actual passage.

  1. Check which documents this user may access.
  2. Find passages relevant to the question.
  3. Supply those passages and suitable instructions to the model.
  4. Generate an answer with references to the supplied material where supported.
  5. Verify that the answer and citations match the source and handle missing evidence honestly.

Failure can happen at each step. Retrieval may find the wrong policy, the text may be out of date, or the model may misread a condition. A citation beside a sentence is useful only when it really supports that sentence. Permission must be enforced before protected material is exposed.

Why can a system that learned so much still invent a citation?

A generation objective does not automatically require every sentence to be supported by an external source. A model can produce a plausible continuation, including a convincing-looking reference, that is wrong. Confidence in the wording is not a direct measurement of factual certainty.

Tools, retrieval and output checks can improve a system's usefulness, but they introduce their own questions: did retrieval find the right document, did the model use it correctly and is the user allowed to access it? Reliability belongs to the whole workflow, not a label on the model.

Next time a product advertises a new model, ask for the task it was evaluated on, its limitations and the controls around it. You do not need to memorise every model name to understand the important distinction: learned computation is powerful, while the job still needs clear inputs, evidence and a way to detect failure.

Sources and further reading

Follow the connections

A closer look

A model is not the chat window

A chat application sends inputs to a model and presents outputs. The application can add tools, stored history and interface rules that are separate from the model's learned parameters.

Work through the distinction

Ask which component is responsible when a feature changes. Generating a reply normally uses the existing model rather than retraining all its parameters on that individual question.

Does every reply require full retraining?

Choose an answer to see feedback. You can try again.

Show the answer and explanation

No. Ask which component is responsible when a feature changes. Generating a reply normally uses the existing model rather than retraining all its parameters on that individual question.