Artificial Intelligence
From the perceptron to language models and agents, the field as told through the free samples of the Leanpub books about machine learning, deep learning and AI at work.
Created from the free samples of 28 Leanpub books and the descriptions and tables of contents of 30 more, with every source cited.
Artificial intelligence (AI) is the branch of computer science concerned with building systems that perform tasks associated with human intelligence: recognising patterns, understanding language, making decisions, and generating text, images and code. The term dates from a 1956 workshop at Dartmouth College. For most of the field's history its two traditions, symbolic reasoning with rules and logic, and statistical learning from data, competed; since the 2010s machine learning, and in particular deep learning with neural networks, has been the dominant approach, and since 2022 the large language models behind products such as ChatGPT have brought the field into general use.
A language model of that kind is a deep neural network of the Transformer type, trained on a large body of text to predict the next token, and then adjusted to follow instructions. Around it has grown a practice of prompting, retrieval, tool use and agents, and an engineering discipline for building, evaluating and running such systems.
This article covers machine learning, deep learning, language models, the applications and engineering built around them, and their place in organisations. Its sources are the free samples of the Leanpub books listed at the end: where a sample states something, the sentence cites it; the rest is general knowledge of the field.
Where to start
The sources divide by whether the reader intends to write code. For a reader who does not, Generative AI in a Nutshell explains what generative AI is and how to use it well, in plain English with hand-drawn illustrations,[2] and The inner workings of Large Language Models walks through one transformer's pipeline from tokens to logits, with no programming required.[28] Zefs Guide to Deep Learning covers the ideas of deep learning in about 150 pages of prose and diagrams, without code.[4]
For a reader who will write code, the shortest path through machine learning is The Hundred-Page Machine Learning Book, which keeps the equations and compresses the field into about 150 pages,[3] and the shortest path to language models is The Hundred-Page Language Models Book, which reaches a Transformer in PyTorch by way of count-based models and recurrent networks and asks only for Python;[1] the same material is available as a course with quizzes and exercises.[25] Hands-On Machine Learning from Scratch builds the classic models by hand in Python on small tasks,[7] and Deep Learning with PyTorch Step-by-Step is the long, first-principles route into the library itself.[16]
A practitioner who already trains models can go to A Hands-On Guide to Fine-Tuning Large Language Models with PyTorch and Hugging Face for adapting open models on consumer hardware,[31] to LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World or Patterns of Application Development Using AI for building applications on them,[33][27] and to Under The Hood for the internals, one project at a time.[29]
History
The field was named at the Dartmouth workshop of 1956, organised by John McCarthy with Marvin Minsky, Nathaniel Rochester and Claude Shannon. Frank Rosenblatt's perceptron (1958) was the first trainable neural network, a single layer of learnable parameters; Minsky and Papert's 1969 analysis of its limits, together with unmet promises elsewhere, led to the first "AI winter", when, as one source puts it, funding and enthusiasm waned significantly between 1975 and 1980.[1] The same source notes a pattern that held for decades: predictions of general artificial intelligence kept it roughly 25 years away, decade after decade.[1] Expert systems brought a revival in the 1980s and a second winter at its end; the 1990s belonged to statistical methods, decision trees and support vector machines among them.[1]
Neural networks returned as deep learning. Where the perceptron had one layer of learnable parameters, the deep approach stacked many, and surging computational power, abundant data and algorithmic advances converged on breakthroughs in speech and image recognition;[1] the 2012 ImageNet result by Krizhevsky, Sutskever and Hinton is usually taken as the turning point. Tomáš Mikolov's word2vec (2013) showed that word meanings could be learned as vectors, and he wrote the foreword to one of the sources below.[1] The Transformer architecture was introduced in the 2017 paper "Attention Is All You Need" by researchers at Google and the University of Toronto, a paper since cited more than a hundred thousand times; it is the T in GPT.[2] OpenAI's GPT series scaled it up, and the release of ChatGPT in November 2022 made conversational language models a mass product.
Machine learning
Machine learning is the part of AI in which a program's behaviour is fitted to data rather than written by hand. The most-read machine learning book in this library opens by telling the truth, as its author puts it: machines don't learn. What a learning machine does is find a mathematical formula which, applied to a collection of inputs called training data, produces the desired outputs, and which also produces the correct outputs for most other inputs it was not trained on.[3] That second property, generalisation, is the whole point, and the book's epigraph is George Box's remark that all models are wrong, but some are useful.[3]
Kinds of learning
The standard division is by what the data provides. Supervised learning fits a function from labelled examples, such as emails marked spam or not; unsupervised learning finds structure in unlabelled data; semi-supervised learning uses a little of each; and reinforcement learning learns a policy from rewards.[3] Self-supervised learning is a further category that uses unlabelled data differently from clustering: the data supplies its own targets, as when a model is trained to predict a missing part of its input, and it is how large language models are pretrained.[4]
Beneath these categories lie different attitudes to what a model is for. One source describes frequentism, Bayesianism, likelihoodism, causal inference and machine learning as distinct mindsets, each with its own assumptions and limits, and subtitles itself "the many cultures of learning from data".[5] Another draws the line between prediction and explanation: a statistical model assumes a parametric form and seeks its best parameters in order to explain, while a non-parametric machine learning model forgoes explanatory power for predictive power.[6]
Classical algorithms
Linear and logistic regression, support vector machines, decision trees and their ensembles, k-nearest neighbours, k-means clustering and naive Bayes make up the classical toolkit, and they remain the right choice for most tabular data. The hundred-page overview walks supervised learning through a spam-detection support vector machine before setting up the notation, derivatives, gradients and probability that the rest of the subject needs.[3] A from-scratch treatment implements k-means to extract a colour palette from interface screenshots, and a multinomial naive Bayes classifier, with log probabilities and Laplace smoothing, to classify film reviews at about 86 percent accuracy.[7] Metaheuristic search sits beside these: genetic algorithms improve a population of candidate solutions using a fitness score as feedback, and one source grows a reusable engine across eighteen puzzles while noting that the engine does not learn in the machine learning sense.[8] A tabular reference covers gradient boosting, hyperparameter optimisation and, in its 2026 edition, tabular foundation models.[6]
Feature engineering, choosing and shaping the inputs, often matters more than the choice of algorithm; feature selection methods are grouped into filter, wrapper and embedded families, each with a Python implementation.[9] Low-code libraries compress the whole workflow: PyCaret's compare_models call trains and ranks every available regression model by a chosen metric in one line.[10] The Python ecosystem that carries all of this, pandas, scikit-learn, PyTorch, TensorFlow, Keras, XGBoost and the explainability libraries, is catalogued one library at a time elsewhere.[11]
Validation, leakage and uncertainty
A model is judged on data it has not seen, which is why data is split into training and test sets and why cross-validation resamples the split; one pipeline-oriented introduction spends as much time on data definition, cleaning and resampling as on algorithms.[12] Applied machine learning is largely the management of what goes wrong between a notebook and production: data leakage, where information from the test set or the future reaches training; distribution shift, where the world changes after training; and imbalanced data.[13] Time series add a rule of their own. Before any model, one source asks whether a series is forecastable at all, and it points out that the random train-test splits used in ordinary regression are usually invalid for forecasting because they mix past and future.[14]
Predictions carry uncertainty of two kinds, aleatoric (noise in the world) and epistemic (ignorance in the model), and a well-made model reports it through calibrated probabilities and prediction intervals, which conformal prediction can supply without distributional assumptions.[6]
Interpretability
As models are used for decisions about people, explaining a prediction has become a requirement in its own right; the GDPR's right to an explanation is one driver.[6] Shapley values, introduced in game theory by Lloyd Shapley in 1953 to share a cooperative game's payout fairly, were first applied to machine learning around 2010, and SHAP (Lundberg and Lee, 2017) made them practical: it produces one value per input feature that says how that feature contributed to a prediction.[15] One source devotes a whole book to the method, its estimators and maskers for linear, tree, neural, image and text models, and its limits, including the problem of correlated features,[15] while the tabular reference is frank about where SHAP and LIME fall short.[6]
Deep learning
Deep learning is machine learning with neural networks of many layers, trained by gradient descent. The pieces are small, a weighted sum, a nonlinearity and a loss, and the training loop that connects them, computing a loss, differentiating it with respect to every parameter by backpropagation and stepping the parameters downhill, is the same whether the network recognises images or writes text.
Networks and training
One source builds the whole mechanism up from a single regression, visualising gradient descent, loss surfaces and learning rates before introducing tensors, automatic differentiation, the optimiser and a reusable training class in PyTorch.[16] A code-free guide explains what networks do in terms of reshaping the feature space until the classes separate, and sets out bias and variance, baselines and success thresholds.[4] The same construction can be done in JavaScript, by hand and then with TensorFlow.js, running in the browser.[17] The main frameworks are Google's TensorFlow (2015), with Keras as its high-level API, and Facebook's PyTorch (2016); one short tutorial builds components in raw TensorFlow before using tf.keras,[18] and a project-driven book trains a Keras regression with dropout and early stopping and serves it as a Flask API on App Engine.[19]
Architectures
Convolutional networks for images, recurrent networks and LSTMs for sequences, attention and the Transformer, and diffusion models for generation are the architectures a reader now needs, and one guide covers each in prose and diagrams along with self-supervised and contrastive learning.[4] Object detection illustrates how a task shapes an architecture: RetinaNet adds a focal loss so that the many easy background regions do not swamp the few objects, and its quality is measured by intersection over union and mean average precision.[19] Project collections apply the same frameworks to image classification, LSTM forecasting and anomaly detection, object detection and BERT sentiment analysis.[20] Classical computer vision, filtering, edges, the Hough transform, camera models, features and tracking, predates deep learning and still underlies it; one set of course notes covers it in full while deliberately leaving out convolutional networks.[21]
Hardware and infrastructure
Training large networks is a problem of moving numbers between graphics processors. Data, pipeline and tensor parallelism split a model and its data across GPUs, and collective operations such as all-reduce synchronise them. In the data centre those operations appear as elephant flows between GPUs, carried over RDMA at line rate; because ordinary equal-cost multipath routing sends every packet of a flow down one path, such flows congest it, and AI back-end networks answer with flowlet load balancing, adaptive routing and packet spraying.[22] At the other end of the scale, a trained model can run on a phone: Apple's Core ML takes converted models in its mlmodel format, and getting a model through conversion, preprocessing and the format's limits was enough to fill a 500-page guide, which its author later declared out of date as the platform moved on.[23] Between the two sit the managed machine learning services of the public clouds.[24]
Language models
A language model assigns probabilities to sequences of words. The large language models of the 2020s are Transformers with billions of parameters, trained on trillions of tokens, and they are the reason most people now encounter AI.
From n-grams to the Transformer
The idea is older than the architecture. Count-based n-gram models estimated the next word from the previous few; bag-of-words representations and then learned word embeddings gave words vectors; recurrent networks read sequences one token at a time. One source retraces exactly this path, from bag of words through count-based models and RNNs to a Transformer coded in PyTorch, so that the modern architecture reads as the natural next step,[1] and its course version adds quizzes, exercises and video interviews with the author.[25] An illustrated study guide covers the same ground from word2vec and RNNs to BERT, GPT and T5, with fine-tuning and preference tuning.[26]
How a Transformer generates text
Text first becomes tokens, which can be whole words, parts of words or punctuation,[27] usually through byte-pair encoding. Each token becomes a vector, an embedding. The decoder block that follows applies self-attention, which lets every position weigh every earlier position, in several heads at once; positions are encoded, in current models by rotary position embedding; a position-wise feed-forward layer follows; residual connections and normalisation keep the stack trainable; and a key-value cache avoids recomputing attention over the prompt at each step.[1] The last layer produces logits, scores for every token in the vocabulary, from which the next token is chosen.[28] A plain-English guide calls the result a "guess the next word" machine that balances probability with some randomness for diversity and loops to generate text, while noting there is more going on than statistical prediction.[2]
The amount of text a model can attend to at once is its context window; by 2024 some models accepted millions of tokens.[27] Models also fabricate: hallucination is treated as a standing property to be managed,[1] and reasoning models, which plan before answering, are one of the ways the behaviour has been improved.[2] Mixture-of-experts designs route each token through a subset of the network's parameters.[28]
Training, fine-tuning and alignment
A model is pretrained on a large corpus, then adapted. Supervised fine-tuning on instruction and response pairs teaches it to follow instructions; preference methods, reinforcement learning from human feedback and direct preference optimisation, shape its behaviour; and parameter-efficient methods such as low-rank adapters (LoRA) make adaptation feasible on modest hardware. One workshop-style book takes the whole path as thirty-six projects, from a single autograd scalar to a GPT and on through pretraining, distributed training, KV caches, speculative decoding, mixture of experts, fine-tuning, RLHF and DPO, quantisation and newer architectures such as Mamba and RWKV, each with a deliberate "break it" step.[29] A hands-on manual keeps the same pretrain, fine-tune, DPO and deploy pipeline at the scale of 125 to 350 million parameters so that it runs on a laptop or in Google Colab.[30] For adapting open models on consumer GPUs the decisive details are configuration: data types, 4-bit and 8-bit quantisation, which modules LoRA targets, chat templates and memory settings, with GGUF export for local inference.[31]
Applications
A language model is used through its prompt, and applications differ in what they put there: instructions, retrieved documents, the results of tools, or the model's own previous steps.
Prompting
Prompt engineering is the craft of writing the input so that the output is useful: giving the model a role, asking it to work step by step, supplying examples, structuring the answer. One guide organises the craft as a library of about twenty named templates with quizzes and exercises, and extends it to reasoning models and context engineering;[32] another prefers "prompt imagination" to prompt engineering and offers the mental model of an expert in your basement who knows nothing of your situation until you tell them.[2] The language-model text closes with prompting and hallucination after the Transformer chapters.[1]
Retrieval-augmented generation
A model's knowledge stops at its training data. Retrieval-augmented generation (2020) adds the user's own documents at query time: text is split, embedded as vectors and searched by similarity, and the best passages are placed in the prompt. The practice has grown patterns of its own, hybrid retrieval, reranking and context engineering,[33][27] and is explained for non-specialists as the way to make a model answer from your material.[2] It is built in every language that can call a model: in Swift with a vector store on Apple platforms,[34] and in Common Lisp alongside agents and knowledge graphs.[35]
Agents and tools
An agent is a program that calls a model in a loop, gives it tools to act with and memory to act on, and acts on what comes back. One source builds a terminal coding agent in plain Python with only an HTTP library and a test framework, no SDK and no agent framework: an Agent class with brain, tools, memory and loop, a raw call to the model's API, conversation history as memory, and, because API calls are slow, expensive and non-deterministic, a FakeBrain test double so the whole test suite runs without making a single call.[36] Framework-level treatments cover ReAct agents, durable agents with checkpoints, human-in-the-loop steps and multi-agent supervisors,[33] and a pattern catalogue names tool use, streaming, self-healing data and agent orchestration as reusable architecture.[27] The Model Context Protocol (2024) standardises how an assistant reaches tools and data.
Coding agents such as Claude Code are the first widely used agents, and a literature on running them has followed. A production reference covers the agent loop and context, the stack of tools, subagents, hooks, skills, MCP and plugins, governance through permissions, sandboxing and audit, and evaluation, observability and cost, with worked examples from financial services.[37] Harness engineering names the files, tools, gates and conventions around a non-deterministic agent that narrow its output to something shippable, and argues that reliability rather than determinism is the goal.[38] Developer-experience teams measure the effect with the SPACE, DX Core 4 and DORA frameworks, and one source argues that most automation should remain deterministic scripts and hooks, with the model as the remainder.[39] Product teams fold the same tools into prototyping, code editors and agents across the delivery cycle,[40] and requirements writing is being recast so that an agent can implement a use case directly from its specification.[41]
Engineering and operations
Putting a model into production is an engineering project with its own lifecycle, from scoping and team structure through data preparation, feature engineering and training to deployment, monitoring and maintenance.[13] Ordinary software practice applies: one source structures a deep learning codebase with classes and configuration, unit-tests it with mocks, adds logging and schema validation, and serves the model with Flask, uWSGI and Nginx in Docker and Kubernetes, with pipelines in TFX and Vertex AI.[42] The deployment step can be as small as a Flask endpoint on a managed platform[19] or a Streamlit app,[10] and the cloud providers' managed services take over much of the rest.[24] For agents, evaluation moves to the centre: evals, often with a model as judge, and observability of every call are what make a non-deterministic system operable.[37]
AI in organisations
The last decade's models have reached the company as well as the laboratory. For managers, one illustrated guide covers what generative AI is, how to use it well, and how to lead an AI transformation, with case stories.[2] Building AI products is team work, and Scrum has been adapted to it with MLOps practice and case conversations from open-source AI companies.[43] Hiring the people is its own problem: data science is "as wonderful as it is ambiguous", and ten data scientists asked to define it will give ten answers, so one guide starts from the business tasks and works back to roles, skills and titles.[44]
Sectors have their own literature. Generative AI in healthcare is examined from the medical side, from what GPT-4 and medical models such as Med-PaLM can and cannot do to regulation, medical education and the cases where a language model must not be used.[45] At enterprise scale, AI adoption is treated as one theme of an operating model built on feedback loops and platform engineering.[46] The common thread across these books is that the technology's limits, hallucination, data dependence and the gap between a demonstration and a dependable system, are management questions as much as technical ones.
Sources
Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.
- 1.The Hundred-Page Language Models Book, Andriy Burkov: hands-on with PyTorch Free sample: foreword by Tomáš Mikolov, preface, chapter 1 on the history of AI (the perceptron, AI winters, decision trees, SVMs, deep learning) and the start of the machine learning basics; table of contents for the Transformer and LLM chapters. 2025. Free sample: PDF
- 2.Generative AI in a Nutshell, Henrik Kniberg: How to Survive and Thrive in the Age of AI Free sample: foreword, why computers got smarter, the Einstein-in-your-basement model, terminology (AI, generative AI, LLMs, the Transformer), how an LLM predicts the next token, reasoning models. 2025. Free sample: PDF · EPUB
- 3.The Hundred-Page Machine Learning Book, Andriy Burkov Free sample: preface, chapter 1 on the kinds of learning and how supervised learning works, chapter 2 on notation and mathematics. 2019. Free sample: PDF
- 4.Zefs Guide to Deep Learning, Roy Keyes Free sample: parts of the machine learning chapter (task types, self-supervised learning, bias and variance) and the neural networks chapter. 2024. Free sample: PDF · EPUB
- 5.Modeling Mindsets, Christoph Molnar: The Many Cultures of Learning From Data Free sample: introduction, statistical modelling and frequentism. 2026 (first edition 2022). Free sample: PDF
- 6.The Orange Book of Machine Learning - Green edition, Carl McBride Ellis: The essentials of making predictions using supervised regression and classification for tabular data. Free sample (the 2024 Orange edition): introduction on prediction versus explanation, uncertainty, prediction intervals, explainability and the GDPR, and the start of the statistics chapter. 2026 edition. Free sample: PDF
- 7.Hands-On Machine Learning from Scratch, Venelin Valkov: Develop a Deeper Understanding of Machine Learning Models by Implementing Them from Scratch in Python Free sample: clustering with k-means for colour palettes, and naive Bayes sentiment analysis of IMDB reviews. 2019. Free sample: PDF · EPUB
- 8.Genetic Algorithms with Python, Clinton Sheppard Free sample: what genetic algorithms are, the password-guessing and One Max projects, and extracting a reusable engine with tests. 2019. Free sample: PDF
- 9.Feature Selection in Machine Learning, Soledad Galli, PhD: Over 20 methods to select the most predictive features and build simpler, faster, and more reliable machine learning models. Description and table of contents: filter, wrapper and embedded feature selection methods with Python implementations. 2026.
- 10.Simplifying Machine Learning with PyCaret, Giannis Tolios: A Low-code Approach for Beginners and Experts! Free sample: preface, a brief introduction to learning types, and the full regression chapter with compare_models. 2023. Free sample: PDF · EPUB
- 11.A Hands-On Introduction to Essential Python Libraries and Frameworks (With Code Samples), Murat Durmus Free sample: a history of Python and the pandas, scikit-learn, SHAP, regex and Flask entries. 2023. Free sample: PDF
- 12.Machine Learning Pipeline, Hisham El-Amir: Experience Gain Description and table of contents: data handling, resampling, cross-validation, feature selection and supervised algorithms. 2019.
- 13.Machine Learning Engineering, Andriy Burkov Free sample: front matter and the table of contents for chapters 1 to 6, including data leakage, feature engineering and model evaluation. 2020. Free sample: PDF
- 14.Mastering Modern Time Series Forecasting, Valery Manokhin: A Comprehensive Guide to Statistical, Machine Learning, and Deep Learning Models in Python Free sample: chapter 2 on the forecastability of time series, uncertainty, when a problem is a forecasting problem, and why random splits are invalid. 2026. Free sample: PDF
- 15.Interpreting Machine Learning Models With SHAP, Christoph Molnar: A Guide With Python Examples And Theory On Shapley Values Free sample: introduction, model-agnostic interpretation (PDP, ICE, ALE, LIME), the history of Shapley values from 1953 to SHAP in 2017, and the start of the theory chapter. 2026 (first edition 2023). Free sample: PDF
- 16.Deep Learning with PyTorch Step-by-Step, Daniel Voigt Godoy: A Beginner's Guide Free sample: front matter and the table of contents for chapters 0 to 2 (visualising gradient descent, tensors, autograd, the training loop). 2024. Free sample: PDF
- 17.Hacker's Guide to Neural Networks in JavaScript, Venelin Valkov: Beginners guide to understanding Machine Learning in the browser with TensorFlow.js Description and table of contents: neural networks by hand, then TensorFlow.js. 2020.
- 18.Tensorflow 2 Tutorial, Ren Zhang: A somewhat intermediate level intro to Tensorflow 2 Description: raw TensorFlow 2 before tf.keras. 2020.
- 19.Hacker's Guide to Machine Learning with Python, Venelin Valkov: Hands-on guide to solving real-world Machine Learning problems with Scikit-Learn, TensorFlow 2, and Keras Free sample: an end-to-end Keras regression deployed with Flask on App Engine, and object detection with RetinaNet and focal loss. 2020. Free sample: PDF · EPUB
- 20.Get SH*T Done with PyTorch, Venelin Valkov: Solve Real-World Machine Learning Problems Description and table of contents: ten PyTorch projects from image classification to BERT and a REST API. 2020.
- 21.Fundamentals of Computer Vision, George K: A gentle, accessible introduction to foundational concepts in computer vision and computational perception. Free sample: the author's note that deep learning is omitted, the table of contents and the preface. 2020. Free sample: PDF
- 22.Deep Learning for Network Engineers, Toni Pasanen: Understanding Traffic Patterns and Network Requirements in the AI Data Center Free sample: chapter 12 on load balancing in RoCEv2 AI back-end networks, RDMA writes, elephant flows, flowlets and packet spraying. 2025. Free sample: PDF
- 23.Core ML Survival Guide, Matthijs Hollemans: More than you ever wanted to know about mlmodel files and the Core ML and Vision APIs Free sample: introduction, what Core ML is and is not, coremltools, image preprocessing and the mlmodel format. 2020. Free sample: PDF · EPUB
- 24.Cloud Computing for Data Analysis, Noah Gift: The missing semester of Data Science Description and table of contents: cloud fundamentals for data scientists, including managed machine learning services. 2021.
- 25.The Hundred-Page Language Models CourseCourse, Andriy Burkov Description and table of contents: the course version of the language models book, with quizzes, exercises and video interviews. 2025.
- 26.Super Study Guide: Transformers & Large Language Models, Afshine Amidi, Shervine Amidi Description: an illustrated study guide from neural-network foundations and embeddings to Transformers, LLMs and applications. 2025.
- 27.Patterns of Application Development Using AI, Obie Fernandez Free sample: introduction, LLM basics (transformers, inference, tokenisation, context windows), multimodal models and providers, and deployment patterns. 2024. Free sample: PDF · EPUB
- 28.The inner workings of Large Language Models, Roger Gullhaug: how neural networks learn language Description and table of contents: tokenisation, embeddings, attention, transformer blocks, logits, training and fine-tuning, with an appendix on mixture of experts. 2025.
- 29.Under The Hood, Ramchand Kumaresan: Build Every Layer of a Large Language Model from Scratch Description and table of contents: thirty-six projects from autograd to pretraining, alignment, quantisation and newer architectures. 2026.
- 30.How to Build and Fine-Tune a Small Language Model, J. Paul Liu: A Step-by-Step Guide for Beginners, Researchers, and Non-Programmers Description and table of contents: a GPT from scratch, pretraining, supervised fine-tuning, DPO, quantisation and deployment at small scale. 2025.
- 31.A Hands-On Guide to Fine-Tuning Large Language Models with PyTorch and Hugging Face, Daniel Voigt Godoy Free sample: front matter and the detailed table of contents on quantisation, LoRA, chat templates and deployment. Revised 2025. Free sample: PDF
- 32.Generative AI Professional Prompt Engineering Guide, George Tome: Prompt Engineering Excellence: Unlock the Full Potential of Generative AI Free sample: the table of contents, with its template library, advanced techniques, reasoning models and context engineering. 2026. Free sample: PDF
- 33.LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World, Mark Watson: Using local models using Ollama andHugging Face. Notes provided for switching to commercial inference providers like OpenAI, Anthropic, Google, etc. Description and table of contents: RAG patterns, ReAct and checkpointed agents, human-in-the-loop and multi-agent supervisors with LangChain, LangGraph and LlamaIndex. 2026.
- 34.Artificial Intelligence Using Swift, Mark Watson: Large Language Models, NLP, Deep Learning, Semantic Web and Linked Data, Knowledge Graphs, Knowledge Representation Description and table of contents: LLM APIs, Apple's on-device models, retrieval-augmented generation and knowledge graphs in Swift. 2026.
- 35.Loving Common Lisp, or the Savvy Programmer's Secret Weapon, Mark Watson Description and table of contents: Common Lisp with LLM clients, agents, RAG and knowledge graphs. 2026.
- 36.Build Your Own Coding Agent, J. Owen: The Zero-Magic Guide to AI Agents in Pure Python Free sample: preface, chapters 1 to 3 (the agent as brain, tools, memory and loop; a raw API call; memory and the FakeBrain test double) and the opening of the capstone. 2026. Free sample: PDF · EPUB
- 37.Claude Code: Building Production Agents That Actually Scale, Thomas De Vos: Build, Evaluate, Secure, and Operate Production AI Agents with Claude Code, MCP, Hooks, and the Claude Agent SDK Description and table of contents: the agent loop, the primitive stack, the Agent SDK, governance, evals and observability, team workflows. 2026.
- 38.Harness Engineering, Ian Johnson: Building Reliable Workflows Around Non-Deterministic Agents Description and table of contents: project, team and organisation harnesses, agent loops, security, evals and orchestration. 2026.
- 39.Claude Code for Developer Experience, Artem Mukhin: How to use Claude Code to improve developer experience - with data, not hype Description and table of contents: Claude Code as a platform, applied to onboarding, documentation and review, measured with SPACE, DX Core 4 and DORA. 2026.
- 40.Product Engineering with AI, Addy Osmani, Hassan Djirdeh: A practical guide to product engineering in an AI native era Description: product engineering with prompt-driven prototyping, AI code editors, coding agents, RAG and MCP. 2026.
- 41.Writing Use Cases for AI, Simon Martinelli: How to write use cases for stakeholders, engineers, and AI agents Description and table of contents: use cases that stakeholders, engineers and AI coding agents can all read. 2026.
- 42.Deep Learning in Production, Sergios Karagiannakos Free sample: chapter 4 on project layout, object-oriented model code, unit testing, mocking, debugging and logging. 2022. Free sample: PDF
- 43.Scrum in AI, Paolo Sammicheli: Artificial Intelligence Agile Development with Scrum and MLOps Description and table of contents: Scrum and MLOps for AI teams, with case conversations and a foreword by Jeff Sutherland. 2023.
- 44.Hiring Data Scientists and Machine Learning Engineers, Roy Keyes: A Practical Guide Free sample: introduction and chapter 2 on what data science and machine learning are. 2021. Free sample: PDF · EPUB
- 45.Generative AI in Healthcare - The ChatGPT Revolution, Dr. Bertalan Mesko: 45-day Money-back guarantee: If you're not satisfied, simply return the book and you get a full refund Description and table of contents: generative AI and LLMs for patients, doctors, medical schools and regulators. 2026.
- 46.The Cybernetic Enterprise, Romano Roth: How to Build a Future-Ready Organization Description and table of contents: an enterprise operating model with AI adoption through platform engineering. 2025.
Further reading
Other books in the library on the same ground, not cited above.
- Models of Learning and Optimization for Data Scientists, Sergio Rojas Galeano: A Python hands-on approach Classic machine learning and metaheuristic optimisation through about ninety Python challenges. 2019.
- Understanding Deep Learning, Chitta Ranjan: Application in Rare Event Prediction Deep learning fundamentals tied to rare event prediction. 2022.
- Machine Learning Algorithms For Laymen, Ashmin, Asal Kc A short plain-language introduction to machine learning algorithms. 2025.
- The Computer Science Book, Tom Johnson: For self-taught developers A survey of computer science for self-taught developers, ending with machine learning, deep learning and LLMs. 2026.
- Data Science Project, Filipe A. N. Verri: An Inductive Learning Approach A formal methodology for running data science projects. 2026.
- A Mathematical Theory of the Unknown, R. A. García Leiva: Journey Beyond the Frontiers of Human Understanding A mathematical theory of what is not known, with a chapter on machine learning. 2026.
- A Lisp Programmer Living in Python-Land: The Hy Programming Language, Mark Watson: Use Hy with Large Language Models, Semantic Web, Web Scraping, Web Search, Knowledge Graphs. The Hy Lisp dialect on Python, driving Keras, spaCy, LangChain and Ollama. 2026.