Fundamentals

How artificial intelligence works.

You do not need to become a programmer to grasp the essentials. It is enough to distinguish data, model, instructions, output and verification.

By the ANPAI Editorial Team
In brief

An AI system learns or uses relationships drawn from data to turn an input into an output. In generative models the output is built by predicting, step by step, which element is plausible in the context: this is why it can be convincing even when it is wrong.

01

From data to model

During training, an algorithm adjusts many internal parameters to reduce errors on known examples. The result is a model: a mathematical representation able to generalise patterns, not a tidy archive of ready-made answers.

Quality depends on the data, the training method, testing and the context of use. If the data are incomplete or represent the people involved poorly, the system too can return distorted results.

02

What happens when we write a prompt

The prompt provides instructions and context. The model produces a response consistent with that information and with what it has learned. A more precise prompt can improve the result, but it does not turn a guess into a verified fact.

For important tasks it helps to provide criteria, the expected format, examples and the sources to use. Then you need to check data, calculations, citations and decision steps.

03

Why it can be confidently wrong

A generative model optimises the plausibility of the result, not the truth of every sentence. It can therefore invent names, references or figures when the context is not enough. This phenomenon is often called hallucination.

The answer is not to ban every use, but to design the controls: connect the system to reliable sources, limit its tasks, ask for evidence and provide human review proportionate to the risk.

04

Model and system are not the same thing

The model is the mathematical engine. The system also includes the interface, data, rules, integrations, controls, people and process. Two products based on the same model can have very different levels of safety and usefulness.

When assessing a solution you should therefore look at the whole system: where it stores data, who has access, how it handles errors and what happens when the model is not sure of its answer.

FAQ

Frequently asked questions.

Does artificial intelligence think like a person?

No. It can imitate some linguistic or perceptual abilities, but how it works and what it experiences do not coincide with human ones.

Does an AI model always consult the internet?

No. Some systems can use search or connected sources; others answer only on the basis of the model and the context provided.

Does more data automatically mean better AI?

No. Quality, relevance, representativeness, usage rights and checks all matter. A lot of poor data can amplify errors.

Sources

Documents consulted.

  1. NIST โ€” AI Risk Management Framework
  2. EDPB โ€” Opinion 28/2024 on AI models and personal data

From the newsroom

Related news.

OpenAI offre crediti API a Pro e Business: fino a 500 dollari al meseOpenAI porta GPT-6.1 Terra in Work e Codex: lโ€™AI usa app e schermoLa Svezia blocca ChatGPT e Claude sui pc degli uffici del governo

Newsletter

The AI news that matters, straight to your inbox.

Receive a clear selection of the most important developments in artificial intelligence.