AI basics, a course in 10 parts
Start here if you want to understand what is inside ChatGPT. Each part builds on the last, so read them in order.
10 articles, read in order
-
Part 1: What Is AI? Machine Learning, Deep Learning and LLMs Explained Simply
The four words everyone mixes up, sorted out in plain language. What artificial intelligence, machine learning, deep learning and large language models actually mean, how they nest inside each other, and where ChatGPT fits.
-
Part 2: Train a Neural Network by Hand With Weights and Gradients
Part two of our AI basics series. We build a neural network with one weight, train it by hand on three examples, and meet every idea that scales up to GPT: weights, loss functions, gradients, learning rate, epochs and overfitting.
-
Part 3: How Language Models Read Text: Tokens and Embeddings Explained
Part three of our AI basics series. Neural networks only multiply numbers, so how does one read a sentence? Tokens, tokenizers, why models are bad at counting letters, embeddings, and why 'king minus man plus woman' lands near 'queen'.
-
Part 4: Transformers and Attention Explained Without the Maths
Part four of our AI basics series. What the T in GPT stands for, what attention actually does, why it replaced older designs, why models have a context window, and why long prompts cost more than you expect.
-
Part 5: From Next Word Predictor to Chatbot: Pretraining, Fine Tuning and RLHF
Part five of our AI basics series. How a raw text predictor becomes ChatGPT: pretraining, instruction tuning, reinforcement learning from human feedback, plus what temperature does, why models hallucinate, and what a system prompt is.
-
Part 6: Build RAG With Your Notes and Check What It Gets Wrong
Part six of our AI basics series. Build a local RAG script in Python and Ollama, inspect its retrieved notes and check its answers against a saved test run.
-
Part 7: Build Tool Calling in Python and Check Each Model Request
Part seven of our AI basics series. Add two checked Python tools to Ollama, inspect eight recorded requests, and follow a wrong filename into a wrong answer.
-
Part 8: Check What Your Agent Rules Change With a Small Python Harness
Part eight of our AI basics series. Add config and rules files to a Python harness, keep complete turn logs, and test two rule versions against eight questions.
-
Part 9: Switch Hugging Face Models in Ollama and Check Their Answers
Part nine of our AI basics series. Compare four local models using fixed tasks, full responses and strict date tests, including a parser that passes by rejecting every input.
-
Part 10: Build a Multi-Step AI Agent and Check Every Tool Call
Part ten of our AI basics course. Build a local multi-step agent, inspect real tool calls, add source checks and limits, and measure the whole conversation.
Choose a guide for your task
If the names AI, machine learning, deep learning and language model seem interchangeable, start with the first guide. It separates those terms with examples and explains how they fit inside each other. You do not need to install a model or know a programming language to follow that introduction. Use it to identify what a product is claiming before deciding which technical detail you need next.
For a model that seems to learn by magic, read the neural network walkthrough. It works through a single weight, a prediction, the loss and a gradient update. Keep a calculator nearby and repeat the arithmetic with a different starting weight. That small exercise gives you a concrete way to understand training without pretending that a large network has only one parameter.
When your question is about a prompt, continue with tokens and embeddings. That guide explains why the pieces a model reads do not match the words you see, and why a character count is not a token count. Follow it with the attention article if you want to understand how positions in a sequence influence each other. These two topics help explain context limits and retrieval, but they do not establish that a particular response is correct.
The training pipeline guide connects those mechanisms to a chatbot. After that, the Python lessons build a local system that searches notes, calls checked tools and records its actions. You can compare local models, inspect a multi-step agent and see failures beside the answers that worked. Use the downloads to repeat an exercise, keeping its notes and settings fixed before changing one part. The series gives you a reading order, but you can return to a particular mechanism when a task raises a new question.