General AI

General AI

RAG, hallucination mitigation, embeddings, evals, prompt engineering, agentic safety.

53Articles
53Topics covered
Articles in this category

All 50 articles, sorted alphabetically

ARTICLE · 01

Agentic Safety in 2026

Sandboxing, capability limits, and human-in-the-loop.

Read article →
ARTICLE · 02

ML A/B testing -- measuring model impact in production

Deep-dive on ML A/B testing: the offline-online impact gap, traffic splitting (control vs treatment), business and guardrail metrics, statistical sign…

Read article →
ARTICLE · 03

Active learning architecture, in depth: the labeling loop, query strategies and how it fails

How to build an active learning system: the pool-score-select-label-retrain loop, uncertainty, committee and diversity strategies with formulas, a run…

Read article →
ARTICLE · 04

Automated retraining architecture

Deep-dive on automated model retraining: signal-driven triggers (drift, decay, schedule), point-in-time snapshots, reproducible training, slice-aware …

Read article →
ARTICLE · 05

Batch inference architecture

Deep-dive on offline batch inference: partitioning input into restartable shards, a batch builder that fills each accelerator, an autoscaling model-wo…

Read article →
ARTICLE · 06

Bias-Variance Tradeoff, in depth: deriving the decomposition, measuring it by simulation, and using learning curves to decide what to fix

A first-principles guide to the bias-variance tradeoff: the squared-loss decomposition and why the cross term vanishes, a runnable Monte Carlo that me…

Read article →
ARTICLE · 07

Champion/challenger model evaluation architecture

Deep-dive on champion/challenger evaluation: the champion serves and decides while the challenger shadow-scores the same live inputs risk-free, a metr…

Read article →
ARTICLE · 08

Acting on Model Confidence in Production: Thresholds, Abstain and Escalate Policies, and Cost-Based Routing with Calibrated Decision Models

Turning calibrated probabilities into actions: Bayes thresholds from a cost matrix, Chow-style abstain bands, multi-action expected cost, model cascad…

Read article →
ARTICLE · 09

Data labeling -- the human fuel of supervised learning

Deep-dive on ML data labeling: the labeled-data need, the labeling pipeline, clear guidelines (consistency), quality control (inter-annotator agreemen…

Read article →
ARTICLE · 10

ML Data Versioning Architecture, in depth: dataset identity, content addressing, branching, table snapshots and reproducible runs

How to version training data so any model can be traced and rebuilt: what a data version must pin, content-addressed files with DVC, object-store bran…

Read article →
ARTICLE · 11

ML drift detection -- catching silent model degradation

Deep-dive on ML drift detection: data drift, concept drift, and prediction drift, statistical detection methods and training baselines, the ground-tru…

Read article →
ARTICLE · 12

Ensemble serving architecture

Deep-dive on serving model ensembles in production: running several diverse models on each input and combining their predictions for accuracy and robu…

Read article →
ARTICLE · 13

AI Evaluation Frameworks, in depth: anatomy, choosing a framework, scoring, statistics and reproducibility

What every AI evaluation framework contains, how lm-evaluation-harness, HELM, Inspect and others differ, scoring methods, pass@k, paired bootstrap int…

Read article →
ARTICLE · 14

AI Feature Store Architecture, in depth: registry, offline and online stores, point-in-time joins and skew

How a feature store works: registry, offline and online stores, point-in-time joins, Feast definitions, freshness tiers, a fraud-scoring example, fail…

Read article →
ARTICLE · 15

Gradient Descent, in depth: the update rule from first principles, a worked example by hand, learning rates, batches, momentum and debugging training

A first-principles guide to gradient descent: why stepping against the gradient reduces the loss, a fully worked numerical example, why curvature caps…

Read article →
ARTICLE · 16

AI and ML History, in depth: seventy years of ideas, the bottlenecks that stopped each era, and why deep learning arrived when it did

A history of AI and machine learning for engineers: early neuron models and Turing, symbolic AI and the perceptron, the AI winters, expert systems, ba…

Read article →
ARTICLE · 17

Hyperparameter Optimization Architecture, in depth: studies, trials, ask/tell, parallel workers, pruning and recovering from dead trials

How a production hyperparameter optimization system is built around the search algorithm: the study and trial records, the ask/tell interface, the tri…

Read article →
ARTICLE · 18

Inference autoscaling architecture

Deep-dive on autoscaling model inference: why GPU utilisation is a broken signal under continuous batching, queue depth and TTFT as control inputs, de…

Read article →
ARTICLE · 19

LLM Evaluation Architecture, in depth: components, data flow from dataset to release gate, and closing the loop with production

How to architect an LLM evaluation system: the components and their contracts, a versioned item and run schema, an async runner with caching, tiered s…

Read article →
ARTICLE · 20

MLOps Architecture, in depth: three kinds of change, CI vs CD vs CT, promotion policy as code and who owns what

MLOps as a platform and operating model rather than a tool list: why models change in three ways, the planes of an MLOps architecture, maturity levels…

Read article →
ARTICLE · 21

Model calibration architecture

Deep-dive on model calibration: why calibration is separate from accuracy and invisible to AUC, temperature/Platt/isotonic calibrators fit on a held-o…

Read article →
ARTICLE · 22

Model distillation architecture

Deep-dive on knowledge distillation: soft targets and dark knowledge, temperature-softened KL loss, rationale/chain-of-thought distillation, data cura…

Read article →
ARTICLE · 23

ML model registry

Deep-dive on the ML model registry: immutable model versions, lineage capture for reproducibility, metadata and evaluation metrics, stages and aliases…

Read article →
ARTICLE · 24

Model serving architecture

Deep-dive on model serving: gateway admission and model routing, dynamic batching economics on GPUs, feature services and prediction caches, shadow an…

Read article →
ARTICLE · 25

Multi-armed bandit architecture

Deep-dive on multi-armed bandits for online model and variant selection: a policy (epsilon-greedy, UCB, Thompson sampling) that routes each request to…

Read article →
ARTICLE · 26

Neural Networks Introduction, in depth: neurons, layers as matrix multiplies, why nonlinearity matters, backprop by hand and a network from scratch

A first-principles introduction to neural networks: what a neuron computes, layers as matrix multiplications with shapes and parameter counts, why a l…

Read article →
ARTICLE · 27

Online Learning Architecture, in depth: log-at-serve, delayed labels, streaming learners and safe model promotion

How to build a machine learning system that updates from live traffic: the three meanings of online learning, logging features at serve time, joining …

Read article →
ARTICLE · 28

Overfitting, in depth: measuring the generalization gap, overfitting the validation set, leakage, and the deep learning cases

How to diagnose overfitting rather than guess at it: the generalization gap, a reproducible polynomial example, why picking the best of many models ov…

Read article →
ARTICLE · 29

AI/ML pipeline architecture

Deep-dive on end-to-end ML pipelines: data lake, feature store, training, model registry, serving, monitoring, governance, and metadata orchestration.

Read article →
ARTICLE · 30

ML Pipeline v2 Architecture, in depth: from script chains to typed artifacts, content-addressed caching, data contracts and a safe migration

What a second-generation ML pipeline changes and how to migrate to it: the failures of cron-chained scripts, immutable fingerprinted artifacts, steps …

Read article →
ARTICLE · 31

Regularization, in depth: L2, L1, weight decay versus AdamW, early stopping, augmentation and label smoothing, with a reproducible worked example

A first-principles guide to regularization in machine learning: why constraining a model reduces variance, ridge regression worked through with real n…

Read article →
ARTICLE · 32

RL for LLM architecture, in depth: choosing the reward signal, reward models, PPO vs GRPO vs DPO, the KL constraint and how the loop fails

How reinforcement learning is used to post-train large language models: choosing between human preference, AI feedback and verifiable rewards, how rew…

Read article →
ARTICLE · 33

Semi-supervised learning architecture

Deep-dive on semi-supervised learning: training on a small labeled set plus a large unlabeled pool by exploiting cluster and smoothness structure. Cov…

Read article →
ARTICLE · 34

ML shadow deployment architecture

Deep-dive on shadow (dark-launch) deployment for ML models: asynchronous traffic mirroring off the response path, prediction logging and comparison, a…

Read article →
ARTICLE · 35

Supervised vs Unsupervised Learning, in depth: the objectives behind the split, how each is evaluated, k-means and PCA from first principles, and a discover-then-classify worked example

What really separates supervised from unsupervised learning: modelling p(y|x) from labelled pairs versus modelling the structure of p(x). Loss and gen…

Read article →
ARTICLE · 36

Synthetic Data Pipelines, in depth: a cost-ordered funnel of verifiers, dedup, judges and decontamination

How to build a synthetic training data pipeline: coverage grids, execution verifiers, MinHash and semantic dedup, judge panels, decontamination, linea…

Read article →
ARTICLE · 37

Train / Validation / Test Split, in depth: choosing the split unit, stopping leakage and sizing a trustworthy test set

How to split data into training, validation and test sets so the final number predicts production: the three roles, splitting by row, entity or time w…

Read article →
ARTICLE · 38

AI Training Pipeline Architecture in Depth: run manifests, leakage checks, resumable training, checkpoint intervals and evaluation gates

AI training pipeline architecture in depth: run manifests, data validation and leakage, input pipelines, a resumable PyTorch loop, determinism, checkp…

Read article →
ARTICLE · 39

Transfer Learning, in depth: why pretrained features transfer, feature extraction versus fine-tuning, linear probing first, BatchNorm, negative transfer and a PyTorch recipe

A practical guide to transfer learning for vision and encoder models: why early layers transfer and late layers do not, the four strategies from linea…

Read article →
ARTICLE · 40

Constitutional AI: Anthropic’s Approach to Giving AI a 'Moral Compass'

The rise of powerful Large Language Models (LLMs) has brought with it a critical, existential challenge: AI alignment.

Read article →
ARTICLE · 41

Prompt Engineering in 2026, in depth: contracts over pleading, prompting reasoning models, cache-aware layout, context budgets and eval-driven iteration

What prompt engineering means in 2026 and how to practise it: structured outputs as contracts, how to prompt reasoning models, laying out prompts for …

Read article →
ARTICLE · 42

RAG Evaluation Metrics, in depth: computing retrieval and answer metrics correctly, validating the LLM judge, and deciding whether a change really helped

The measurement side of RAG evaluation: exact definitions and code for recall@k, precision@k, MRR and nDCG, claim-level faithfulness with an LLM judge…

Read article →
ARTICLE · 43

RAG vs Fine-Tuning, in depth: a decision framework that starts from your failures, with a cost model, an evaluation harness and when to use both

How to decide between retrieval-augmented generation and fine-tuning: separate knowledge gaps from behaviour gaps, score your requirements, model the …

Read article →
ARTICLE · 44

Self-Improving AI: Are We Close to the 'Recursion Point' Where AI Writes Its Own Better Code?

The ultimate aspiration of Artificial Intelligence research is to create systems that can not only learn but also continually enhance their own intelligence, far…

Read article →
ARTICLE · 45

Synthetic Data Done Right, in depth: split before you generate, then prove fidelity, utility and privacy on real holdouts before anything ships

An acceptance discipline for synthetic data: when it helps and when it cannot, why real holdouts must be split off before the generator sees anything,…

Read article →
ARTICLE · 46

Synthetic Data Pipelines: Can AI-Generated Data Actually Make the Next Generation of AI Smarter?

"More data, better models" has been a consistent truth driving the rapid advancements in Artificial Intelligence, particularly for Large Language Models (LLMs).

Read article →
ARTICLE · 47

The 'Dead Internet' Theory: Is LLM-Generated Content Ruining the Web for Humans?

The "Dead Internet Theory" began as a fringe conspiracy theory, suggesting that sometime around 2016, the internet was largely taken over by bots and AI-generated…

Read article →
ARTICLE · 48

The Energy Crisis: The Environmental Cost of Training a Frontier Model in 2026

Artificial Intelligence, particularly the rapid advancement of Large Language Models (LLMs), is a testament to human ingenuity.

Read article →
ARTICLE · 49

Vector Databases Compared (Pinecone, Weaviate, Qdrant, Chroma), in depth: data models, filtering, hybrid search, tenancy, consistency and a benchmark you run yourself

A practical comparison of Pinecone, Weaviate, Qdrant and Chroma: what a vector database adds to an ANN index, the same upsert and filtered query in fo…

Read article →
ARTICLE · 50

World Models: Moving from Text Prediction to Predicting Physical Reality (Sora and Beyond)

Large Language Models (LLMs) have demonstrated astonishing capabilities in text generation, understanding, and even complex reasoning within symbolic domains.

Read article →