AI and ML Tutorial

Artificial intelligence for everyone: how AI and LLMs work, prompting, RAG, agents, building AI apps and machine learning.

Start learning →186 lessons · 1204 min total

1Understanding Artificial Intelligence

  1. What Is Artificial IntelligenceWhat AI really is, in plain words: how it learns from examples, what it can and can't do, and a simple definition you can explain to anyone.easy7 min
  2. AI in Everyday LifeWhere you already use AI every day: phones, maps, streaming, email, banking, shopping, cameras and chat assistants, and what each one has learned to do.easy6 min
  3. AI Is Not MagicAI is a computer system that finds patterns, not a mind. Learn what AI can't do, common myths, narrow AI vs general AI, and how to talk about AI honestly.easy7 min
  4. A Short History of AIHow AI got here: from Alan Turing in 1950 through rule-based systems, two AI winters and deep learning to the Transformer and ChatGPT.easy7 min

2AI vs Machine Learning vs Deep Learning

  1. AI, Machine Learning and Deep LearningHow AI, machine learning, deep learning and generative AI fit together, explained with a family analogy, a simple map and one real example each.easy8 min
  2. Traditional Programming vs Machine LearningHow writing rules differs from learning them from examples, shown with a weather rule and a house-price example you can run in Python.easy7 min
  3. Types of Machine LearningSupervised, unsupervised and reinforcement learning in plain words, with real photo examples, everyday uses and how to tell them apart.easy7 min

3Understanding Data

  1. What Is DataWhat data is, where it comes from in everyday life, how computers store text, images and sound as numbers, and why AI can't learn without it.easy6 min
  2. Types of DataStructured, unstructured and semi-structured data explained with a student table, photos and a real price label written as JSON.easy6 min
  3. Datasets, Labels and FeaturesWhat a dataset is, what examples, features and labels mean, and why data is split into training, validation and test sets, with a house-price table.easy6 min
  4. Data Quality and Bias in DataWhy poor-quality data makes poor AI: wrong labels, blurry photos, missing values, duplicates and biased data, with real examples and simple checks.easy6 min
  5. Data Privacy BasicsPersonal and sensitive data, consent, purpose and protection: the basics of handling data about people responsibly before any AI uses it.easy7 min

4Understanding AI Models

  1. What Is an AI ModelWhat an AI model really is: a system that learned patterns from data and uses them to produce outputs, shown with real handwritten numbers.easy6 min
  2. Parameters: What a Model LearnsParameters are the numbers a model learns during training. See one being adjusted step by step in Python, and why a model is not a store of answers.medium6 min
  3. Model vs Application vs InterfaceThe restaurant analogy for AI products: model, application, interface, API, data and infrastructure, and how a chat assistant fits together.easy6 min
  4. Types of AI ModelsLanguage, image, speech, video, embedding and predictive models: what each takes in and gives out, and how systems combine them.easy6 min
  5. Open and Closed ModelsOpen-weight models you can download and run yourself vs closed models you use through an API, and how cost, privacy and control decide.medium6 min

5How AI Learns: Training and Inference

  1. What Is TrainingHow a model learns, step by step: collect, feed, predict, compare, measure the error, adjust the parameters and repeat, with a tiny Python example.medium6 min
  2. What Is InferenceInference is using a trained model on new input: fast, cheap per request, and with no learning. See it in Python and in everyday apps.easy5 min
  3. Training vs InferenceTraining learns the patterns; inference uses them. Compare purpose, parameters, data, cost and frequency, explained with learning to ride a bicycle.easy5 min
  4. Does AI Learn from Every Conversation?What really happens to your chat: context, memory features and future training, plus the knowledge cutoff and why a model misses recent events.easy7 min
  5. Overfitting and GeneralizationWhy memorizing the training data isn't learning: overfitting vs generalization, explained with exam preparation and a Python example.medium5 min

6Generative AI

  1. What Is Generative AIGenerative AI creates new content, such as text, images, audio, video and code, from patterns it learned. See a real example and a tiny generator in Python.easy6 min
  2. Generative AI vs Traditional AITraditional AI labels and predicts; generative AI creates. Five side-by-side examples, when to use each, and why many systems combine both.easy5 min
  3. Text, Image, Audio and Video GenerationHow AI generates text, images, audio and video, how a diffusion model turns noise into a picture, and the basics of copyright, watermarks and deepfakes.easy6 min
  4. Foundation Models and Multimodal AIFoundation models are large, general models trained on broad data and adapted to many uses; multimodal models read text, images and audio together.medium6 min

7Large Language Models

  1. What Is a Large Language ModelWhat a large language model is, what it can do, from answering and summarizing to writing code, and why one model handles so many tasks.medium5 min
  2. How an LLM Generates TextNext-token prediction step by step: how an LLM picks one token, adds it to the text, and repeats until it stops, with a toy Python version.medium5 min
  3. TokensTokens are the pieces of text an LLM reads and writes: words, word pieces, punctuation and spaces. See a real tokenizer and why tokens set cost and limits.medium5 min
  4. Transformers and Attention, SimplyThe Transformer, the design behind today's LLMs, explained simply: how attention lets each word use the whole sentence to decide what it means.medium5 min
  5. Context and Context WindowsWhy 'Explain it.' means nothing without context, what a context window is, and what happens when a long chat or document doesn't fit.medium5 min
  6. Temperature and RandomnessWhy the same question gets different answers: how temperature and sampling choose the next token, shown with real probabilities in Python.medium5 min
  7. Why LLMs HallucinateWhy language models sometimes invent facts, sources and numbers that sound real, how to spot a hallucination, and how to protect yourself.medium5 min

8Prompt Engineering

  1. What Is a PromptA prompt is the instruction you give a model. See how a vague prompt and a clear one differ, and what system prompts and user prompts are.easy5 min
  2. The Five-Part Prompt FrameworkRole, Context, Task, Constraints and Output: a five-part framework that turns a vague request into a clear prompt, with a full worked example.easy5 min
  3. Zero-Shot and Few-Shot PromptingZero-shot prompts ask directly; few-shot prompts show examples first. See how a few examples make answers consistent and easy to use.easy4 min
  4. Role, Context and Structured OutputGive a model a role and the right context, and ask for a strict format such as JSON or a table, so its answers can go straight into a spreadsheet or program.medium4 min
  5. Breaking Tasks into Steps and Prompt ChainingSplit big tasks into small prompts, where each output feeds the next: easier for the model, easier to check, and easier to fix one step at a time.medium4 min
  6. Grounding Prompts in SourcesGive the model the source, ask it to answer only from it, and ask for quotes: grounded prompts reduce invented answers and make checking easy.medium5 min
  7. Prompt Before and AfterWeak prompts made strong: before-and-after examples, how to test and refine a prompt step by step, keep a prompt library, and spot what prompts can't fix.easy5 min

9Using AI Safely and Wisely

  1. AI LimitationsEight common limits of AI tools, from hallucinations and outdated facts to bias and sensitivity to wording, with real examples and how to work around each.easy5 min
  2. Privacy: What Not to Share with AIWhat never to paste into an AI tool, from passwords and keys to customer and health records, what happens to what you type, and safer ways to get help.easy5 min
  3. How to Verify AI AnswersFour habits that catch most AI mistakes: open the sources, recheck numbers, test code and compare a second source, matched to how much the answer matters.easy5 min
  4. AI Bias in Everyday ToolsHow unfair patterns in data become unfair AI decisions, the hiring tool example, where bias shows up, and why a human must decide in high-impact cases.easy5 min
  5. What AI Cannot Predict, and What Not to Trust BlindlyAI finds patterns, but it cannot predict a fair lottery draw or guarantee the future. See why with real simulations, and learn the TRUST checklist.easy10 min

10The AI Ecosystem: Models, Platforms, Tools and APIs

  1. The AI Ecosystem MapThe layers every AI product is built from: interface, application, API, model, data, cloud and monitoring, and how to place any AI tool on the map.easy5 min
  2. What Is an APIAn API is an agreed way for one program to ask another for something. See the waiter analogy, the request flow to an AI model, and how to keep API keys safe.easy5 min
  3. AI Assistants, Platforms and Model HubsSix categories of AI tools, from assistants and model hubs to cloud platforms, app frameworks and vector search, who each is for, with current examples.medium5 min
  4. Choosing an AI ToolHow to choose an AI tool with seven criteria: task fit, quality, cost, privacy, data location, integration and vendor lock-in, with a worked scorecard.medium5 min

11AI for Students and Graduates

  1. Learning with AIUse AI to understand hard ideas faster, with everyday examples, quizzes and feedback, without letting it do your thinking, and stay honest about AI use.easy5 min
  2. AI for Research and Study PlansPlan your studying and research with AI: build a two-week study plan, find and summarize sources you then check, and adjust the plan as you go.easy5 min
  3. AI for Your First Job: Resumes and InterviewsUse AI to sharpen a resume, practice interviews, read job descriptions and plan small portfolio projects, while every fact stays true and your own.easy5 min

12AI for Professionals, Business Owners and Entrepreneurs

  1. AI for Everyday Professional WorkUse AI to summarize documents, analyze reports, compare proposals, prepare presentations and write business emails, while you check facts and decide.easy5 min
  2. AI for Small BusinessesHow a small business can use AI for sales trends, customer feedback, marketing, support and admin, with a real sales analysis you can check in Python.easy5 min
  3. Finding and Ranking AI OpportunitiesFind the tasks worth automating with AI: frequent, text-heavy, rule-like and low-risk ones first, ranked with an impact and effort matrix and a simple score.medium5 min
  4. Estimating the Cost and Return of AIWork out whether an AI tool pays off: time saved, running and setup costs, error rates and payback, with a filled-in ROI worksheet and Python.medium5 min
  5. Choosing an AI VendorA practical vendor checklist: quality on your own examples, data use and retention, security, price, limits, support and how to leave, with a filled-in example.medium5 min
  6. Writing an AI Policy for Your TeamWrite a one-page AI policy: approved tools, data never to enter, when people must review, disclosure, who to ask and how to report problems, with an example.easy5 min
  7. Leading AI Adoption and ChangeHelp a team adopt AI well: hands-on training, champions, measuring real use and results, and honest conversations about fears for jobs.medium4 min
  8. Starting an AI-Powered BusinessFind AI business opportunities, tell AI-first from AI-assisted products, build more than a wrapper, and plan for costs that grow with every user.medium5 min
  9. AI Case Studies by IndustrySix illustrative case studies, from retail and education to healthcare, finance, customer service and manufacturing: the problem, the AI, the result, the risks.easy5 min

13AI for Product Owners and Product Managers

  1. AI for Product OwnersHow product owners use AI to draft user stories, acceptance criteria, edge cases, feedback summaries and release notes, while owning every requirement.medium4 min
  2. AI for Product ManagersHow product managers use AI for research, sorting feature requests, pain points and measurable goals, and how to price AI features that cost money per use.medium5 min
  3. The AI Product LifecycleThe six stages of an AI product, from discover and prototype to evaluate, launch, monitor and improve, and why the loop never really ends.medium4 min
  4. Writing an AI Feature Spec, with a Worked ExampleWrite an AI feature spec that a team can build and test: what the AI does and doesn't do, examples, metrics, evaluation, errors, data, cost, risks and launch.medium5 min
  5. Designing AI User ExperiencesDesign AI features people trust: set expectations, show sources, admit 'I don't know', hand off to a person, and make feedback and correction easy.medium4 min
  6. AI Product MetricsThe six metrics every AI feature needs: quality, satisfaction, response time, cost per interaction, adoption and safety incidents, calculated from a real log.medium5 min
  7. Launching AI Features: Pilots and ExperimentsLaunch AI features safely with pilots, A/B tests and staged rollouts, and read a real A/B result to see whether a difference is likely real.medium5 min
  8. Managing AI Product RisksThe main risks of AI products, from hallucination, privacy and bias to abuse, vendor dependency and cost overruns, and how to manage them with a risk register.medium4 min

14AI for Software Developers

  1. AI Coding AssistantsWhat AI coding assistants do in the editor, the terminal and as agents, how to use them to understand unfamiliar code, and how to keep secrets out.medium5 min
  2. Reviewing AI-Generated CodeNever assume AI code is correct or secure: review it for correctness, tests, security, dependencies, licenses and readability, with a real SQL injection.medium5 min
  3. AI for Tests, Docs and DebuggingUse AI to suggest tests, write documentation and explain errors, and catch a real bug in a Campus Helper fee rule with AI-suggested tests you check.medium6 min

15No-Code AI Automation and Workflows

  1. What Is an AI WorkflowAn AI workflow is a fixed sequence of tasks with AI in some steps: extract, classify, draft, then a person reviews. See one run in Python, with safe branches.easy5 min
  2. Building a No-Code AI WorkflowBuild an AI workflow without code: triggers, actions, AI steps, filters, human approval and error handling, in a visual automation tool.easy5 min
  3. Workflows vs AgentsChatbot, workflow or agent? Who decides what happens next, when fixed steps beat an agent, and when an agent's flexibility is worth its risks.medium4 min

16Python and Data Essentials for AI

  1. Python for AI: SetupInstall Python for AI work: check the version, create a virtual environment, activate it, install NumPy, pandas and matplotlib, and confirm everything works.easy4 min
  2. Python Essentials for AIThe Python you use in every AI project: dictionaries, lists, functions, comprehensions, JSON and error handling, with a Campus Helper example and real output.easy5 min
  3. NumPy BasicsNumPy arrays and vectorized operations: create arrays, apply math to every value at once, summarize, filter with conditions and work across rows.easy4 min
  4. Pandas BasicsLoad, inspect, clean and group data with pandas, using 1,000 fee payments: read a CSV, find missing values, fill them and total payments by month.medium5 min
  5. Visualizing DataTurn data into charts with matplotlib: a bar chart of fee payments by month, labeled axes and a title, and which chart fits which question.easy4 min
  6. NotebooksJupyter notebooks mix text, code and results in one document. Learn when to explore in a notebook, and when to move code into a script.easy4 min
  7. Data Pipelines for AIHow raw data becomes model-ready data: ingest, validate, clean and store it reproducibly. Build a pipeline with a quality report, Parquet output and SQL.medium9 min

17Working with Model APIs

  1. Calling a Model APICall a hosted AI model from Python with one small helper that works with most providers: send a system prompt and a message, then read the reply.medium9 min
  2. Messages, System Prompts and ParametersControl a model API call: send a whole conversation as messages, set rules in the system prompt, and shape the reply with max_tokens, stop and temperature.medium6 min
  3. Streaming ResponsesShow a model's reply as it is written: stream text piece by piece in Python, then read the finished reply for the finish reason and token usage.medium5 min
  4. Structured Output and JSONGet JSON your code can trust from a model: define a schema with Pydantic, ask the API to follow it, and validate the result before using it.medium6 min
  5. Tool Use and Function CallingLet a model ask your code for data: describe a tool, run it when the model requests it, send the result back, and get an answer built on real data.medium5 min
  6. Tokens, Cost and Rate LimitsEstimate what a model API feature costs: count tokens, price input and output separately, compare models, and handle rate limits with retries.medium6 min
  7. API Keys and SecretsKeep API keys safe: load them from environment variables, keep them out of code and git, never ship them to browsers or apps, and rotate them when exposed.medium5 min

18Embeddings and Vector Search

  1. What Are EmbeddingsAn embedding turns text into a list of numbers so that similar meanings land close together. See it with real output: car, automobile, vehicle and banana.medium5 min
  2. Similarity and Cosine DistanceCosine similarity measures the angle between two vectors: 1 for the same direction, 0 for unrelated, -1 for opposite. Compute it by hand, then on sentences.medium5 min
  3. Semantic SearchSearch 50 school FAQ answers by meaning: embed them once, embed each question, and return the closest three, even when no words match.medium8 min
  4. Vector DatabasesVector databases store embeddings with their text and metadata, and find the nearest ones fast. Build a tiny one in Python, with a category filter.medium6 min
  5. Hybrid Search and RerankingKeyword search, vector search, hybrid fusion and a cross-encoder reranker, measured with Recall@k and MRR on real Campus Helper questions.hard8 min

19Retrieval-Augmented Generation (RAG)

  1. What Is RAGRetrieval-augmented generation finds the right passages in your documents and gives them to a model, so answers come from your sources, with citations.medium5 min
  2. Building a RAG PipelineBuild a working RAG pipeline in Python: load documents, split them into chunks, embed and retrieve the best passages, and have a model answer from them.medium7 min
  3. Chunking DocumentsChunking splits documents into passages for retrieval. See with real output how chunk size and overlap change whether the right answer is found.medium5 min
  4. Retrieval Quality and RerankingMeasure retrieval with a small test set, then compare keyword, semantic, hybrid search and reranking. Real results show why you must measure, not assume.hard6 min
  5. Answers with SourcesMake RAG answers show their sources and admit when they don't know: numbered passages, structured citations, checked in code, and a score threshold.hard6 min
  6. RAG vs Fine-Tuning vs Long ContextThree ways to give a model your knowledge: retrieve passages, train it further, or send whole documents. Compare them and choose by size, change and cost.medium5 min
  7. Advanced RAG PatternsProduction RAG beyond the basics: access control, fresh documents, multi-document answers, citations, abstaining, and diagnosing failures by stage.hard10 min

20AI Agents and Tool Use

  1. What Is an AI AgentAn AI agent uses a model, tools and a loop to work toward a goal, choosing its own steps. Compare it with chatbots and workflows, and see where it fits.medium5 min
  2. The Agent LoopBuild the loop at the heart of every agent: call the model, run the tool it asks for, return the result, and repeat, with a step limit and confirmation.hard7 min
  3. Giving Agents ToolsDesign tools agents can use well: clear names and descriptions, strict inputs, helpful error messages, and the fewest permissions that do the job.hard5 min
  4. Connecting Tools with MCPThe Model Context Protocol is an open standard for connecting tools and data to AI apps. Build a real MCP server in Python and call it from a client.hard5 min
  5. Multi-Agent SystemsA multi-agent system splits work between agents, often a lead that plans and helpers that each do one part. Learn when it helps and what it costs.hard4 min
  6. Controlling Agent AutonomyKeep agents safe with permission policies, limits, human approvals, sandboxes and audit logs. Build a policy check that allows, asks or denies each tool.hard5 min
  7. Agent State, Memory and ReliabilityMake agents dependable: explicit state, typed tool contracts, retries, idempotency, step budgets, human approval and a trace of every step.hard9 min

21Evaluating AI Applications

  1. Why AI Needs EvaluationA demo shows an AI app working once; evaluation shows how often it works. Learn the metrics, the three ways to measure, and why every change needs a re-test.medium4 min
  2. Building an Evaluation SetBuild a golden evaluation set of 50 test questions with expected answers, including ones to decline, and score Campus Helper against it with real results.hard8 min
  3. Automatic and Model-Graded EvaluationGrade AI output automatically with code checks and model-graded rubrics, compare versions case by case, and block releases that lower the score.hard7 min
  4. Human Evaluation and FeedbackPeople are the ground truth for AI quality. Write a rubric, have reviewers rate a sample, measure how much they agree, and learn from user feedback.medium5 min
  5. GuardrailsGuardrails check every request and response: block private data, rule-changing attempts and off-topic questions, and stop answers with unsupported facts.hard6 min
  6. Measuring RAG and Agents ProperlySeparate retrieval from answer quality, put confidence intervals on small evaluations, and compare versions fairly, with real Campus Helper numbers.hard8 min

22Mathematics for Machine Learning

  1. Why Math Matters for MLMachine learning runs on linear algebra, probability, statistics and calculus. See all four at work in one tiny model that predicts house prices.medium5 min
  2. Vectors and MatricesVectors and matrices hold the numbers in machine learning. Learn dot products, matrix multiplication and shape rules with NumPy, and see a neural network layer.medium5 min
  3. Probability BasicsProbability measures uncertainty. Learn conditional probability and Bayes' rule with a spam filter example, and check the math with a simulation.medium5 min
  4. Statistics for MLStatistics summarizes data and tells signal from chance: mean, median, variance, correlation, and a permutation test for an A/B experiment, all in NumPy.medium5 min
  5. Derivatives and GradientsA gradient tells a model how to change its parameters to reduce error. Compute one by hand with the chain rule and with NumPy, and check they match.hard6 min

23Classical Machine Learning: Supervised Learning

  1. Supervised LearningSupervised learning trains a model on labeled examples to predict labels for new ones. Predict late fee payments with scikit-learn and beat a baseline.medium5 min
  2. Linear RegressionLinear regression predicts a number from features with a weighted sum. Fit one to 200 Dallas house prices, read its coefficients and measure its error.medium5 min
  3. Logistic Regression and ClassificationLogistic regression predicts the probability of a category. Estimate each family's chance of paying late, read the coefficients, and choose a threshold.medium5 min
  4. Decision TreesA decision tree learns a flowchart of yes-or-no questions. Read a real tree's rules, and see how a tree that grows too deep memorizes instead of learning.medium5 min
  5. Random Forests and Gradient BoostingEnsembles combine many decision trees into one stronger model. Compare a single tree, a random forest and gradient boosting, and measure which features matter.medium5 min
  6. K-Nearest Neighbors and SVMsk-nearest neighbors predicts from the most similar examples; support vector machines find the widest boundary between classes. Both need scaled features.medium4 min
  7. The Scikit-Learn WorkflowChoose between models properly: build pipelines, compare candidates with cross-validation on training data, then test the winner once on the test set.hard5 min

24Unsupervised Learning, Model Evaluation and Feature Engineering

  1. Unsupervised Learning and ClusteringUnsupervised learning finds structure in data without labels. Group 300 students by study habits with k-means and hierarchical clustering.medium9 min
  2. Dimensionality ReductionDimensionality reduction describes data with fewer features. Use PCA to turn six study habits into two, and see how much information each component keeps.hard7 min
  3. Evaluating Models: MetricsMeasure models with the right numbers: the confusion matrix, precision, recall, F1 and ROC AUC for classifiers; MAE, RMSE and R² for regression.medium7 min
  4. Overfitting, Underfitting and Cross-ValidationEstimate how a model will do on new data: validation curves, bias and variance, regularization, data leakage, and a cross-validated confusion matrix.hard10 min
  5. Feature EngineeringPrepare data so models can learn from it: encode text categories, fill missing values, scale numbers, and create new features, all inside one pipeline.medium8 min
  6. Reinforcement Learning BasicsReinforcement learning trains an agent by trial, error and rewards. Learn the key ideas, then watch Q-learning find the best route across a small map.medium8 min
  7. Reading AI Research and Running Fair ExperimentsHow to read an AI paper or claim critically, and how to run a fair experiment: baselines, several seeds, ablations and honest reporting.hard7 min

25Neural Networks and Deep Learning

  1. How Neural Networks WorkA neural network is layers of simple neurons: weighted sums passed through activation functions. Build a neuron and a tiny network that solves XOR.medium8 min
  2. Gradient DescentGradient descent trains models by stepping downhill on the loss. Fit a line to 200 house prices step by step, and compare learning rates.hard7 min
  3. BackpropagationBackpropagation computes every weight's gradient with the chain rule, working backward from the loss. Do it by hand in NumPy, check it, and train XOR.hard8 min
  4. PyTorch BasicsPyTorch is the most widely used deep learning library. Learn tensors, automatic gradients with autograd, and building networks with nn.Sequential.medium7 min
  5. Training a Network in PyTorchTrain a neural network to read handwritten digits: batches, epochs, a loss, an optimizer and the training loop, reaching 97.8% on unseen images.hard9 min
  6. GPUs and Hardware for AINeural networks are mostly matrix multiplication, which GPUs do in parallel. Time Python loops, NumPy, a CPU and a GPU, and see why AI needs special hardware.medium7 min

26Computer Vision and Speech

  1. Computer VisionComputer vision teaches computers to understand images. See a photo as 2 million numbers, and classify it with a pretrained model: golden retriever, 98.4%.medium8 min
  2. Convolutional Neural NetworksA CNN slides small learned filters over an image to find edges, then shapes, then objects. Compute a convolution by hand, then train a CNN on digits.hard11 min
  3. Transfer LearningReuse a model trained on millions of photos for your own task. Fine-tune ResNet-18 on 80 photos of school notices and sort new ones with 100% accuracy.hard14 min
  4. Speech Recognition and Speech SynthesisSpeech AI turns voice into text and text into voice. Make a school announcement with text-to-speech, transcribe it with Whisper, and measure errors.hard10 min

27Transformers and How LLMs Are Built

  1. Inside a TransformerOpen up a real language model: token embeddings, 30 Transformer blocks of attention and feed-forward layers, and scores for the next token.medium9 min
  2. TokenizationHow text becomes tokens: build byte-pair encoding from scratch, then see a real tokenizer split English, numbers, code, Spanish, Telugu and emoji.hard10 min
  3. Self-AttentionSelf-attention lets each token gather information from earlier tokens using queries, keys and values. Compute it by hand, then read the heads of a real model.hard10 min
  4. PretrainingPretraining teaches a model to predict the next token on trillions of tokens. Measure the loss of a real model, then pretrain a tiny GPT from scratch.hard10 min
  5. Instruction Tuning and RLHFHow a text predictor becomes an assistant: instruction tuning, chat templates and preference tuning (RLHF, DPO), compared on a real base and instruct model.hard10 min
  6. Sampling and DecodingHow a model picks each token: greedy decoding, temperature, top-k and top-p. Run a small open model locally and generate at three temperatures.hard9 min
  7. Scaling and Context WindowsWhy bigger models and more data help, what training compute costs, and why long context windows need memory and time. Real numbers from the SmolLM2 family.hard10 min

28Fine-Tuning and Customizing Models

  1. What Is Fine-TuningFine-tuning continues training a pretrained model on your examples. Learn what it changes, what it does not, and when it beats prompting or RAG.medium7 min
  2. Preparing Fine-Tuning DataFine-tuning is only as good as its examples. Build a chat-format dataset for Campus Helper, split it without leakage, and check it before training.hard12 min
  3. LoRA and Efficient Fine-TuningLoRA fine-tunes a model by training two small matrices per layer. Fine-tune Campus Helper with LoRA and test it against prompting on unseen questions.hard13 min
  4. Distillation and Smaller ModelsDistillation trains a small student model to copy a big teacher. Distill a digit classifier 70 times smaller, and see why small models are rising.hard8 min

29Generative Models for Images, Audio and Video

  1. Diffusion ModelsDiffusion models make images by removing noise step by step. Build one from scratch on digits, then generate images locally with Stable Diffusion.medium12 min
  2. Multimodal ModelsMultimodal models connect images and text. Match a photo to captions with CLIP, then ask a small vision-language model questions about photos.hard8 min
  3. Audio and Video GenerationHow AI generates speech, music and video, why video must stay consistent over time, and how to handle deepfakes, consent and content provenance.hard10 min

30Running AI in Production: MLOps and LLMOps

  1. MLOps and LLMOpsMLOps keeps machine learning working after launch: versioning, release gates, deployment, monitoring and retraining. LLMOps adds prompts, cost and safety.medium7 min
  2. Deploying Models and AI AppsDeploying puts a model behind a reliable API. Serve Campus Helper with FastAPI, validate inputs, add a health check, and speed it up with batching and caching.hard9 min
  3. Monitoring Quality, Cost and LatencyLog every request, chart quality, cost and speed, and alert when quality drops. Monitor Campus Helper through a bad release and a rollback.hard10 min
  4. Hosted, Open and Local ModelsChoose between a hosted model API, an open model on your own servers, and a model on the device, by cost, quality, privacy, speed and effort.hard8 min
  5. Quantization and Running Models LocallyQuantization stores model weights in fewer bits to save memory and run models locally. Quantize a real model to 8, 4, 3 and 2 bits and measure the damage.hard10 min
  6. Tracing, SLOs and Incident ResponseFollow every request with a trace, set service level objectives with an error budget, fail safely when a model or index is down, and run incidents well.hard10 min

31AI Security

  1. Threats to AI ApplicationsAI apps face new attacks: prompt injection, data leaks, poisoning and misused agent tools. Learn the OWASP Top 10 for LLMs and the core defenses.medium8 min
  2. Prompt Injection and JailbreaksPrompt injection hijacks an AI app with planted instructions. Attack Campus Helper three ways, then add layered defenses and show the attacks blocked.hard13 min
  3. Data Leakage and Privacy AttacksAI can leak private data through prompts, logs, retrieval and memorized training text. See a model recite text word for word, and redact data first.hard9 min
  4. Securing Agents and ToolsAn agent can only do as much damage as its tools allow. Use least privilege, limits and human approval, and watch a permission gate stop injected actions.hard8 min
  5. AI Threat Modeling and Supply Chain SecurityMap trust boundaries, list threats with controls and tests, and secure the supply chain: why pickle model files are dangerous, and how to pin hashes.hard8 min

32Responsible AI, Ethics and Regulation

  1. Responsible AI PrinciplesResponsible AI means fair, transparent, private, secure, reliable and accountable systems, with people in charge. Review Campus Helper against it.medium8 min
  2. Bias and FairnessModels learn the bias in their data, even without a group column. Measure fairness in a scholarship model, see a proxy carry bias, and fix the labels.medium8 min
  3. Keeping Humans in the LoopKeep people in charge of AI decisions that matter. Route uncertain answers to a person, measure the gain, and know where human oversight is required.medium8 min
  4. AI Laws and FrameworksThe main AI rules and frameworks, each with the date checked: the EU AI Act, the NIST AI Risk Management Framework, ISO 42001 and US state and city laws.medium8 min
  5. Copyright and AI-Generated ContentWho owns AI output, what training data rules apply, which licenses limit models, and when to disclose AI use. Check the licenses of every model in this course.medium7 min
  6. AI Governance in PracticeRun AI responsibly day to day: an inventory of every AI system with an owner, risk class and review date, plus model cards, approval gates and incident records.medium8 min

33The Future of AI and Career Paths

  1. AI Career PathsThe main AI careers, what each one does day to day, the skills it needs, and how to find the role that fits the skills you already have.easy7 min
  2. Learning Paths by BackgroundThe best order to learn AI depends on where you start. Four learning paths, and a six-month plan with one project, built from real study hours.easy8 min
  3. The Future of AITrends to watch as of November 2026: agents, reasoning models, smaller local models, multimodal AI, AI in science, regulation, and the open questions.easy6 min

34Projects and Capstone

  1. How to Plan an AI ProjectLearning AI without building is incomplete. Plan a project with a ten-part project document, and check a draft for missing and vague sections.easy7 min
  2. Beginner AI ProjectsFive beginner AI projects with clear "done when" checks, no coding required for most. Build one, and learn to check AI output against its source.easy6 min
  3. Intermediate AI ProjectsFive intermediate projects in code, each with a measured result. Build a support ticket classifier with a precision and recall report.medium7 min
  4. Advanced AI ProjectsFive advanced projects, from agents to production apps. Build an evaluation release gate that blocks a worse version before users see it.hard6 min
  5. Presenting Your AI ProjectDocument, present and grade a capstone: a README, a five-minute talk, and the course rubric. Score two capstones and see why evaluation can fail a project.easy7 min

35Interview Preparation and Practice

  1. 66 AI Interview Questions and Answers66 AI interview questions with model answers, from everyone to engineers. Filter by Easy, Medium or Hard, and revise each topic in its lesson.medium18 min
  2. 15 AI Scenario Interview Questions15 real-world AI scenarios with strong answers: wrong answers, rising costs, leaked prompts, vendor updates, unfair models, slow chat and failing launches.hard9 min
  3. AI GlossaryEvery key AI term in plain English, from agent to workflow: 50 short definitions, each linked to the lesson that explains it.easy6 min
  4. AI Practice ExercisesEvery lesson's practice exercise on one page: 186 hands-on AI tasks from foundations to production, grouped by level, each linked to its lesson.medium42 min
  5. Can You Explain AI?The final self-check: 20 questions to answer in your own words, with model answers, and one last challenge: explain AI to someone who has never used it.easy5 min

36Building an AI-Powered Application

  1. The Building Blocks of an AI ApplicationAn AI application is more than a model: a frontend, a backend, a model API, a database, sometimes retrieval, plus security and monitoring. See how they fit.medium5 min
  2. Building an AI Learning AssistantApply the seven-step method to an AI Learning Assistant: problem, solution, users, features and architecture, then build its tutor function in Python.medium7 min
  3. Frontend, Backend and the ModelBuild the AI Learning Assistant end to end: a FastAPI backend with a SQLite database, a small web page, and the model call, then run and test it locally.hard8 min
  4. Improving with FeedbackImprove an AI app from real use: measure satisfaction, speed and cost from stored interactions, find where answers fail, fix them, and evaluate again.medium6 min