AI Engineering Learning Hub

AI Engineering Learning Hub

Machine learning and AI engineering explained the way I learned them: by building real systems. Each topic has a plain-English explanation, working code and interview questions.

29 topics 3 learning paths 0 read by you

Machine Learning Fundamentals

Start here. The maths and intuition behind every model, explained with the house-price regression I built while learning.

01✓ Read

Features, Labels, Weights & Bias

What features, labels, weights and bias mean in machine learning, with a house-price example and runnable NumPy code.

02✓ Read

Vectors, Matrices & Matrix Multiplication

How ML represents data as vectors and matrices, the shape rule for matrix multiplication, and why it replaces Python loops.

03✓ Read

Normalization / Feature Scaling

Why features must share a scale before gradient descent, min-max vs standardisation, and the train/test scaling rule most people get wrong.

04✓ Read

Loss Functions (MAE, MSE, RMSE)

What a loss function is, how MAE, MSE and RMSE differ, and how to choose between them for training and reporting regression models.

05✓ Read

Gradient Descent & Learning Rate

How gradient descent updates weights step by step, what the learning rate controls, and a from-scratch NumPy implementation you can run.

06✓ Read

Linear Regression

Linear regression explained with a house-price example: the formula, how weights are learned with gradient descent, and when it breaks.

07✓ Read

Logistic Regression & Sigmoid

Logistic regression and the sigmoid function: how a linear score becomes a 0-1 probability, why log loss is used, and the threshold trade-off.

08✓ Read

Overfitting, Underfitting & Train/Test Split

How to tell overfitting from underfitting, why the train/test split exists, and the fixes that actually work in practice.

09✓ Read

Neural Networks & Backpropagation

Neural networks and backpropagation from scratch: how layers of simple neurons learn non-linear patterns like XOR, with runnable numpy code.

10✓ Read

Decision Trees

Decision trees explained: how Gini impurity picks the best split, why trees overfit, and how max_depth and ensembles fix it.

RAG & AI Engineering

Everything I learned building production RAG systems, agents and LLM features, with the code that actually shipped.

11✓ Read

Embeddings

What text embeddings are, how sentence-transformers turn sentences into vectors, and how to pick a model for RAG.

12✓ Read

Chunking Strategy

How to split documents into chunks for RAG: paragraph vs fixed-size vs recursive splitting, overlap, and the self-contained rule.

13✓ Read

Cosine Similarity & Semantic Search

How cosine similarity scores two embeddings, why it beats Euclidean distance for text, and how semantic search uses it.

14✓ Read

Top-K Retrieval

How to choose k in RAG retrieval, why top-5 beat top-3 for this site, and when thresholds, filters and reranking help.

15✓ Read

RAG Pipeline (Retrieval-Augmented Generation)

How a RAG pipeline works end to end: chunk, embed, retrieve, build the prompt, generate. With the FastAPI code behind this site.

16✓ Read

Conversation Memory (Multi-Turn Chat)

How LLM chat memory really works: replaying history, trimming and summarising it, and rewriting follow-up questions for retrieval.

17✓ Read

Function Calling / Tool Use (AI Agents)

How LLM function calling works, the two-call loop, tool schemas, and how a voice agent uses tools to search a knowledge base.

18✓ Read

Structured Output (JSON Mode / Schema)

How to get reliable JSON from an LLM: JSON mode vs schema-enforced structured outputs, Pydantic parsing, and lead capture as an example.

19✓ Read

Vector Databases (ChromaDB)

What a vector database does, when a NumPy array is enough, and how ChromaDB, pgvector, Qdrant and FAISS compare for RAG.

20✓ Read

Guardrails

Input, prompt and output guardrails for LLM apps: prompt injection defence, staying on topic, and cost limits, with real examples.

21✓ Read

RAG Evaluation

How to evaluate a RAG system: retrieval recall and precision, faithfulness, LLM-as-judge, RAGAS, and a test set you can build in an hour.

22✓ Read

Hybrid Retrieval & Reranking

Combining BM25 keyword search with embeddings using reciprocal rank fusion, then reranking with a cross-encoder, to fix naive RAG misses.

Agents & Production

Beyond a single prompt: agents that use tools, voice pipelines, MCP, evaluation and shipping LLM apps to a real server.

No topics match that search yet. Try a broader term.

Get new topics by email

One short, practical AI-engineering lesson whenever a new topic is published. No spam, unsubscribe any time.

Need this built for your product?

I build production RAG pipelines, LLM automations and voice agents. Open to freelance projects and full-time roles.