What Is an LLM?
A large language model (LLM) is a program trained on a huge amount of text to predict the next piece of text. When you type a question, it continues the text one small step at a time, and the result looks like an answer.
A Tiny Example of Next-Word Prediction
This small program counts which word follows which in a few sentences. Real LLMs are far bigger and smarter, but the idea of predicting what comes next is the same.
the -> {'cat': 0.33, 'mat': 0.17, 'fish': 0.17} | cat -> {'sat': 0.5, 'ate': 0.5} | sat -> {'on': 1.0}
After the word the, the model sees cat most often, so it gives cat the highest chance. An LLM does this with billions of learned numbers instead of simple counts.
What LLMs Do Well
- Write, summarize and rewrite text
- Answer questions about text you give them
- Translate between languages
- Write and explain code
- Extract data from messy text, such as names, dates and prices
- Follow instructions in plain language
What LLMs Do Not Do Well
- They can make up facts that sound true. This is called a hallucination
- They have no built-in knowledge of events after their training
- They can make arithmetic mistakes without a calculator tool
- They do not remember past chats unless you send the history again
- Their answers can change between runs
What an LLM Developer Builds
| Product | Example |
|---|---|
| Chatbot | Support assistant for a website |
| RAG app | Question answering over company documents |
| Agent | Assistant that calls tools, such as search or a calendar |
| Extractor | Turns invoices into structured data |
| Code helper | Explains or reviews code |
Course Roadmap
- Foundations: tokens, sampling and the transformer idea
- Prompt engineering
- Calling LLM APIs and structured output
- Embeddings and RAG
- Agents, tools and MCP
- Fine-tuning
- Evaluation, safety and security
- Deployment and cost
- Labs, interview questions and career
Practice
- Write down three tasks in your life that an LLM could help with
- For each, write one way it could go wrong
- Change the demo text above and watch the probabilities change
Conclusion
An LLM predicts the next token from patterns it learned. That makes it powerful and also limited, so good LLM developers add checks, tools and good data around it.

