A free, rigorous, implementation-first online book on modern AI: machine learning, deep learning, LLMs, RAG, and AI agents, taught with mathematics and runnable Python. Built with Quarto.