LLMs
Large language models: tokens, context, prompting, and tool use.
- What is an LLM?Beginner
An LLM is a large neural network trained on huge amounts of text to predict and generate language.
- What is a Token?Beginner
A token is the small chunk of text — often a word or word-piece — that an LLM actually reads, counts, and predicts.
- What is Tokenization?Beginner
Tokenization is the process of splitting text into tokens using a learned subword vocabulary before a model can read it.
- What is a Context Window?Beginner
The context window is the maximum number of tokens an LLM can consider at once — its working memory for a single request.
- Temperature & SamplingIntermediate
Sampling is how an LLM picks the next token from its probabilities; temperature, top-p, and top-k control how random or focused that choice is.
- What is Structured Output?Intermediate
Structured output makes an LLM return data in a strict format like JSON that follows a schema, so software can reliably use its answers.
- What is Function Calling (Tool Use)?Intermediate
Function calling lets an LLM request that your code run a real tool by emitting a structured call, then use the result to answer.
- What is Prompt Engineering?Beginner
Prompt engineering is the craft of writing clear instructions, context, and examples so an LLM reliably produces the output you want.
- What are Reasoning Models?Intermediate
Reasoning models spend extra decode tokens thinking before they answer; a short prompt can still cost a lot.
- What is Streaming?Intermediate
Streaming sends tokens as they are generated so users see the first word fast; TTFT is wait-to-first-token, TPOT is later gaps.
- What are Small Language Models (SLMs)?Intermediate
Small language models (about 1–8B parameters) win on device, privacy, cost, and easy tasks; route hard turns to a larger model.