Transformer (machine learning)
A transformer is a type of neural network architecture used to process sequential data, such as text, audio, video, biological sequences, and time series. The architecture is based mainly on attention mechanisms, particularly one called self-attention, which lets the model calculate relationships between every pair of units in a sequence.
On this page
Source content checked . English translation published 2026-10-27.
In business automation
Most language models used in automation today are built on the transformer architecture. A basic understanding of it explains why a model has a limited context window, and why longer text costs more and takes more time to process.
Examples
These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.
Summarizing a long email thread
A process sends a customer's email thread to a language model and requests a summary. The attention mechanism connects details that appear in different messages, but if the thread exceeds the context window, it needs to be shortened or split before sending.
Relevant tools
- Hugging Face
- Transformer-based models are available to evaluate and run. Check the context window size and license before business use.
What to check
- Sending the entire history to the model with every request increases cost and does not always improve the answer.