Reading edition · Reference

Applied AI Engineering

Sample · 3 sections12 min readEnglish · العربية

This is a sample of the book, which you can read here in full. Under it is the contents of the whole book, so you know what it holds before you buy it.

Applied AI Engineering
Reading progress
0 of 3 sections read

The sample

Contents of the whole book

The sample above is from the start of the book. This is all the book holds, in your printed or electronic copy.

1Mathematics of Artificial Intelligence

Every artificial intelligence model, no matter how complex it looks, rests on seven mathematical pillars. It turns data into numbers with linear algebra, measures what it does not know with probability, judges what it sees with statistics, finds the direction of improvement with calculus, walks along it step by step with optimisation, measures its error with information theory, and then we ask it the most important question of all: has it truly learnt, or has it merely memorised?

  1. Starter unit: The tools
  2. Unit 1: Linear algebra
  3. Unit 2: Probability
  4. Unit 3: Statistics
  5. Unit 4: Calculus
  6. Unit 5: Optimisation
  7. Unit 6: Information theory
  8. Unit 7: Learning theory
  9. Test yourself
  10. Guide project
2Algorithms and Decision-Making

An algorithm is a recipe: specific steps that take an input and give you a result. Every AI system you see today relies on relatively old algorithms: how we sort, how we search, how we find the shortest path, and how we choose a step now while thinking about what comes next.

  1. Starter unit: Measuring an Algorithm
  2. Unit 1: Data Structures
  3. Unit 2: Searching and Sorting
  4. Unit 3: Graphs
  5. Unit 4: Search in AI
  6. Unit 5: Dynamic Programming
  7. Unit 6: Sequential Decisions
  8. Unit 7: Decision-Making Under Uncertainty
  9. Test yourself
  10. Guide project
3Machine Learning from Modelling to Production

Machine learning means writing a program whose rules you do not know: you give the computer examples and their answers, so it works out the rule for itself, then applies it to examples it has never seen before. Most of the artificial intelligence that powers companies today is not huge language models, but models of this kind: predicting a price, spotting fraud, or ranking customers by their likelihood of leaving.

  1. Starter unit: From Question to Data
  2. Unit 1: Linear Models
  3. Unit 2: Trees and Ensembles
  4. Unit 3: Neighbours and Margins
  5. Unit 4: Unsupervised Learning
  6. Unit 5: Honest Evaluation
  7. Unit 6: Feature Engineering and Pipelines
  8. Unit 7: Into Production
  9. Test yourself
  10. Guide project
4Neural Networks and Deep Learning

A neural network is a program that learns its function from examples, like the models you saw in Guide 3, except that it builds its own features layer by layer. That is why it can understand images, sounds and text, things whose features are hard to describe by hand. Every large language model you hear about today is a neural network at its core.

  1. Starter unit: From Neuron to Network
  2. Unit 1: How a Network Learns
  3. Unit 2: Fighting Memorisation
  4. Unit 3: Vision and Convolutional Networks
  5. Unit 4: Sequences and Embeddings
  6. Unit 5: Attention and Transformers
  7. Unit 6: Graph Networks
  8. Unit 7: From Experiment to Device
  9. Test yourself
  10. Guide project
5Generative AI and Language Model Engineering

A large language model is a neural network that has learnt one simple thing: how to predict the next word. Because it learnt this from vast amounts of text, it can now write, summarise, translate and answer questions. Once you grasp this single idea, you will understand why these models amaze you at times, and why they get things confidently wrong at others.

  1. Starter unit: From text to tokens
  2. Unit 1: Building a small language model
  3. Unit 2: Generation and measurement
  4. Unit 3: Prompt engineering
  5. Unit 4: Fine-tuning
  6. Unit 5: Retrieval-augmented generation
  7. Unit 6: Evaluation and hallucination
  8. Unit 7: Security and cost
  9. Test yourself
  10. Guide project
6Agentic AI and Multi-Agent Systems

A language model answers you and then stops. An agent, by contrast, takes a goal, decides the next step itself, and uses real tools: it searches, reads files, sends messages, and keeps repeating that until it gets there. That is where both its power and its danger lie, because every step it takes has an effect on the world.

  1. Starter unit: What an Agent Is
  2. Unit 1: Planning and Reasoning
  3. Unit 2: Memory and Context
  4. Unit 3: Agent Teams
  5. Unit 4: Coordination Between Agents
  6. Unit 5: Measuring the Agent
  7. Unit 6: Security and Governance
  8. Unit 7: From Experiment to Production
  9. Test yourself
  10. Guide project
7AI Data Engineering

A model is only as good as the data it learns from, and an assistant is only as accurate as the documents it retrieves. Most AI systems that fail in companies do not fail because of the model, but because of incomplete, outdated or scattered data whose origin nobody knows.

  1. Starter unit: Data before the model
  2. Unit 1: Storage and querying
  3. Unit 2: Vectors and similarity search
  4. Unit 3: Advanced retrieval
  5. Unit 4: Knowledge graphs
  6. Unit 5: From text to graph
  7. Unit 6: Governance and privacy
  8. Unit 7: Data in production
  9. Test yourself
  10. Guide project
8AI in Production

Most models do not die in the lab, but in production: a version nobody knows which data it was trained on, a service that slows down when users grow, performance that collapses quietly after two months, and a vulnerability exploited by an attacker nobody thought of. Running AI in production is a complete engineering discipline with its own tools and rules.

  1. Starter unit: From experiment to version
  2. Unit 1: Model serving and deployment
  3. Unit 2: Monitoring and reliability
  4. Unit 3: Running language models
  5. Unit 4: Attacking the model
  6. Unit 5: Privacy
  7. Unit 6: Governance and fairness
  8. Unit 7: Cost and incidents
  9. Test yourself
  10. Guide project
9Emerging Technologies and How to Evaluate Them

Every month you hear about a new technology that will change everything. Some really do, and most vanish after a year. Your job is to tell them apart before your organisation spends time and money, not afterwards.

  1. Starter unit: Reading the hype
  2. Unit 1: Evaluating models yourself
  3. Unit 2: Making the adoption decision
  4. Unit 3: Running a pilot
  5. Unit 4: Edge AI
  6. Unit 5: Quantum computing
  7. Unit 6: Data and energy
  8. Unit 7: Risk and horizon scanning
  9. Test yourself
  10. Guide project
10Applied Research Methodology

Applied research starts with a real problem in a workplace and ends with an answer that changes a decision. Between the start and the finish lies a long road where it is easy to lose your way: a vague question, a biased sample, a scale that does not measure what you think, or a result that came about by chance.

  1. Starter unit: From problem to question
  2. Unit 1: Study design
  3. Unit 2: Sampling
  4. Unit 3: Measurement
  5. Unit 4: Data collection
  6. Unit 5: Research in AI
  7. Unit 6: Reproducibility and integrity
  8. Unit 7: Ethics and writing up
  9. Test yourself
  10. Guide project
11Quantitative and Qualitative Analysis

You have gathered the data, and now you ask: what does it say? This guide answers you with two kinds of tools: quantitative tools that count, compare and test, and qualitative tools that read what people said and understand why they said it. A good researcher needs both together.

  1. Starter unit: Describing data
  2. Unit 1: Comparing two groups
  3. Unit 2: Relationships between variables
  4. Unit 3: Categorical data
  5. Unit 4: More groups and nested data
  6. Unit 5: Qualitative analysis
  7. Unit 6: Mixed methods
  8. Unit 7: Results you can trust
  9. Test yourself
  10. Guide project
12Applied Thesis

An applied thesis is the final stop in this series, and the biggest one. In it, you bring together everything you have learnt: mathematics, algorithms, models, production, evaluation, methodology, and analysis. You apply them to a real problem at work, so you come out with a contribution that people actually benefit from.

  1. Starter unit: Choosing a Topic
  2. Unit 1: Proposal and Plan
  3. Unit 2: Theoretical Framework
  4. Unit 3: Execution
  5. Unit 4: Applied Contribution
  6. Unit 5: Writing
  7. Unit 6: Discussion and Limitations
  8. Unit 7: Defence and Publication
  9. Test yourself
  10. Guide project