Independent publication · Everyday AIEN | PT
The future is nowInteligência Útil

Artificial intelligence at the service of your life.

Write. Learn. Organise. Create.

Abstract composition in lavender, violet and amber

AI Literacy

How a language model works, explained without maths

Published on 1 December 2026

In this guide

  1. 1. The core idea: predicting the most likely continuation
  2. 2. Training: learning patterns from huge amounts of text
  3. 3. Why it writes so well
  4. 4. Why it can make things up
  5. 5. What the model knows, and up to when
  6. 6. Context: what the model sees in each conversation
  7. 7. Why the way you ask changes the answer
  8. 8. Variability: same question, different answers
  9. 9. Models, assistants and tools: three different things
  10. 10. Common myths about language models
  11. 11. What this changes in how you use AI

When you talk to an artificial intelligence assistant, it feels like talking to someone who knows a great deal. Answers are fluent, well organised and arrive in seconds. But behind that conversation there is neither an encyclopaedia nor a person: there is a language model, a system trained to produce plausible text from the text it receives.

Understanding, even in simplified form, how that system works changes how you use it. It helps explain why AI writes so well and yet can be confidently wrong, why the way you phrase a request matters so much and why human checking remains essential. This guide explains the key concepts without formulas or technical jargon.

1. The core idea: predicting the most likely continuation

At its core, a language model does one thing: given a text, it calculates the most likely continuations and picks one. It writes a word, or a piece of a word, and repeats the process, always starting from everything already written. A long answer is the result of thousands of these chained choices.

Think of your phone keyboard’s autocomplete, but far more sophisticated. The phone suggests the next word based on a few previous words; a language model considers the whole request, the instructions and the conversation so far. That ability to take in a lot of context is what lets it stay on topic, follow a format and answer complex questions.

2. Training: learning patterns from huge amounts of text

To learn to predict continuations, the model is trained on an enormous amount of text: books, articles, web pages, code and other documents, depending on its developers’ choices. During training, the model adjusts millions or billions of internal parameters to get steadily better at predicting the next piece of text.

The result is not an organised copy of those texts, but a set of statistical patterns about how words, ideas and styles relate to each other. That is why the model can write a formal email, summarise a report or explain a concept simply: it has learned what such texts usually look like. After this initial training, assistants usually go through additional tuning stages so they follow instructions, decline dangerous requests and respond more helpfully.

3. Why it writes so well

Because the model has learned patterns from millions of well-written texts, it produces sentences that are grammatically correct, well linked and suited to the requested register. It can imitate styles, reorganise ideas, translate, condense and expand with impressive ease.

But it is worth separating two things that usually go together in people: writing well and knowing what you are talking about. In a language model, fluency is not proof of knowledge. A well-built sentence on a topic the model knows poorly sounds exactly as confident as a correct one. That is one reason why an answer’s apparent quality should not be your test of truth.

4. Why it can make things up

The model does not consult a database of verified facts before answering, unless it has been connected to a search tool or to documents you provide. In most cases, it generates the answer from the patterns it has learned. When those patterns are strong and consistent, the answer tends to be right. When they are weak, rare or contradictory, the model keeps producing plausible text, and that is where so-called hallucinations appear: dates, names, figures or references that look real but do not exist.

So the most dangerous errors are not the obvious ones, but specific, believable details. The article on hallucinations explains how to spot them. For now, keep the practical rule: the more specific, recent, local or rare the information you ask for, the more you need to confirm it in a reliable source.

5. What the model knows, and up to when

The knowledge learned in training has a cut-off date. The model does not know what happened after that date unless the assistant uses web search or you give it the information. Moreover, even before that date, knowledge is uneven: topics well represented in the training texts are better known than rare, local or specialised ones.

For someone living in Portugal, this has practical consequences. Portuguese rules, deadlines, prices and procedures may be less represented than those of larger countries, and the model may mix in information from elsewhere. Whenever the answer depends on the law, a public service or a current figure, check the official site and tell the assistant your question concerns Portugal.

6. Context: what the model sees in each conversation

For each answer, the model works with a context window: the amount of text it can consider at once, including your instructions, the previous conversation and any documents you pasted. That window is large in current assistants, but not infinite. In very long conversations, instructions given at the start can lose weight.

Two good practices follow. First, give the relevant context in the request itself: who the audience is, what the text is for, which format you want. Second, in long tasks, restate the important instructions or start a new conversation with a summary of the essentials. Some tools also offer memory between conversations, with their own rules worth knowing.

7. Why the way you ask changes the answer

Because the model generates the continuation best suited to the text it receives, your request works like the start of a document. A vague request produces a generic answer, because there are many possible continuations and the model picks an average one. A request with a goal, context, format and criteria narrows the possibilities and brings the result closer to what you want.

An example request applying these ideas:

Explain to me, in plain language, what a variable interest rate on a mortgage is. I am a layperson. Use an example with illustrative figures, labelled as such, and end with three questions I should ask the bank. If any information depends on Portuguese law or each bank’s terms, say so explicitly.

8. Variability: same question, different answers

If you ask the same question twice, it is normal to get different answers. The model does not always pick the most likely continuation; it introduces some variation so the text reads more naturally. For creative writing, that is an advantage. For facts, it is a warning: if two answers to the same factual question differ, at least one is wrong, and perhaps both.

You can use this to your advantage. Asking for several versions of a title or paragraph helps you choose the best. Asking the assistant to review its own answer, or comparing answers from different assistants, helps spot weak points. But agreement between AI answers does not replace confirmation in an independent source.

9. Models, assistants and tools: three different things

It helps to distinguish three layers. The language model is the engine that generates text. The assistant is the product you talk to, which combines the model with behavioural instructions, safety rules, an interface and sometimes extra functions. Tools are additional capabilities the assistant can use: searching the web, reading files, doing calculations, generating images or remembering preferences between conversations.

This distinction explains why two assistants built on similar models can behave differently, and why the same assistant answers better when it has access to search or your documents. It also explains why answers about current facts are more reliable when the assistant shows the sources it consulted: in that case it is not only drawing on training patterns, but on text you can check.

When choosing or judging an assistant, then, ask not only which model it uses, but which tools are active, what data it uses, whether it keeps conversations and on what terms. These choices, more than the model’s name, determine its usefulness and risks day to day.

10. Common myths about language models

Some misconceptions are worth clearing up. The first is that the model searches the web every time it answers: it only does so if the assistant has that tool enabled, and it usually says so. The second is that the model stores and consults whole texts like a library: what it retains are patterns, although it may reproduce very common passages. The third is that a confident answer is a verified one: the tone’s confidence says nothing about accuracy.

There is also the opposite myth, that everything AI produces is useless because it is not “real intelligence”. For many practical tasks, the philosophical debate matters little: what counts is whether the result helps and whether it was checked where needed. Knowing the limitations is about using the tool better, not rejecting it.

11. What this changes in how you use AI

Knowing how a language model works leads to a balanced attitude. Use it confidently for tasks where quality can be judged by reading: reorganising ideas, improving clarity, proposing structures, generating alternatives, summarising texts you provide. Use it cautiously for tasks where quality depends on facts you cannot judge at a glance: figures, dates, quotes, rules and advice with consequences.

In short, treat the assistant as a fast, fluent and very useful collaborator, but without guaranteed access to the truth. Give it good context, ask it to flag uncertainty, check what matters and keep the final decision yourself. That combination is what turns an impressive technology into a genuinely useful tool.

Related resources