41 concepts5 lessons

LLMs and tokensAll layers

Map AILLMs and tokens

Why does AI state falsehoods so confidently?

How AI chatbots split text into tokens and pick a plausible next one

Concepts in this layer

2 lessons

Tokens

Language models process text in units called tokens. A token can be a whole word, part of a word, or a punctuation mark, and each model splits text in its own way.

1 lesson

Meaning as numbers

An embedding turns a word or sentence into a list of numbers. Models learn to place words with similar meanings close together, so how close two meanings are can be calculated.

Next-word prediction

A generative language model writes by calculating how likely each token is to come next, given the text before it. Producing natural-sounding sentences does not guarantee that the content is accurate.

1 lesson

Probability and context

A model can consider only a limited amount of context at once. Because it picks the next token by probability, the same question, asked the same way, can get different answers.

Instructions

A service can give the model instructions that come before the user's conversation. Depending on those instructions, the same model changes its tone and the range of what it will answer.

Knowledge cutoff

A model is built from its training data, which stops at a certain point. For an answer to reflect anything after that, the information has to be supplied as input, such as search results.

Stay in the loop

Get new posts by email, plus launch news when it's ready. No spam.