LLMs cannot read letters or raw ID numbers — they convert text chunks into vectors where distance equals meaning.
Attention blends earlier word vectors into a single context vector, then Softmax scores every token in the vocabulary.
Attention pulls weights from cat, sat, and on to aim the final vector toward a cozy home surface.
Words near that context vector in embedding space (mat, rug) get high scores; distant words (rocket) get ~0%.
The LLM picks a token from the probability list, appends it to the prompt, and repeats to build full replies.