Practical AI engineering tutorials

Hands-on tutorials and case studies for building AI systems you can trust: hybrid retrieval, evaluation, agent tools, and the data pipelines behind them.

From the journal

Latest articles

View all 55 articles
Terminal screenshot showing datagen generating a synthetic ERP and CRM dataset, followed by reconcile reporting a match rate by entity type

Score match quality and load results into Postgres

Use eval/score.py to compute precision, recall, and F1 for a reconciliation run against the ground_truth.json answer key, then optionally load the same run into a Postgres target schema.

Selected work

Featured projects

All projects

Enterprise RAG with access control

A permission-aware enterprise AI assistant that answers from documents and databases while respecting who is asking. It implements every control from the Brimmora case study and runs locally on Docker Compose.

Proves each control with 14 security regression tests and 10 end-to-end scenarios, and fails the CI build if a 19-question golden-set evaluation drops below its thresholds.

Learning paths

Build one lesson at a time

All series

6 lessons

Claude Chat CLI with hybrid RAG retrieval

Build the hybrid retrieval pipeline behind a Claude-powered command-line chat assistant: chunk a real codebase, rank chunks with Okapi BM25 and cosine similarity, fuse both rankings with Reciprocal Rank Fusion, then benchmark and evaluate the results.

Start lesson 1

5 lessons

ERP and CRM reconciliation pipeline

Generate a synthetic, deliberately messy enterprise resource planning (ERP) and customer relationship management (CRM) dataset, then reconcile the two divergent exports back into a single source of truth by matching customers, invoices, and payments on name, email, phone, and date and amount proximity, never on ID-format shortcuts.

Start lesson 1

Open to AI-focused software engineering roles

HLAB Journal is written by Kiarie Henry Mbugua, a software engineer in Nairobi building AI systems that are grounded, evaluated, and secure.