Public engineering notebook · 7 stages · 28 modules

The Forward Deployed
AI Engineer Roadmap

A Forward Deployed AI Engineer scopes, builds, evaluates, and ships production AI systems directly inside real workflows. This site is a build-in-public notebook documenting that progression, from core software and data foundations to enterprise delivery, with working code, failure notes, and honest progress tracking.

Explore syllabus → Module updates
Your progress
0%
Modules completed
0 / 28
Next lesson
00.1
The syllabus

Seven stages of learning

PLANNED · Not yet published IN PROGRESS · Currently studying PUBLISHED · Lesson available
STAGE 00 · FOUNDATION REFRESHER
Python, Shell, Auth, APIs & SQL Foundations

Refresher bridge for working engineers (or prerequisite ramp via CS50x or MIT Missing Semester) covering shell, auth, typed Python, testing, backend APIs, and SQL.

00.1 Python Logic, Shell & Environment Setup Set up an isolated Python environment across macOS, Linux, Windows CMD, or PowerShell, validate environment config, and build a CLI file checker with honest exit codes. ~1-2h · Prereq: Python 3 & shell · Ref: Python docs Done when: Commit line_check.py, .env.example, and .gitignore in a local Git repo (without .venv/ or .env) and verify exit codes 0, 1, and 2. Published
00.2 Data Validation & Unit Testing Customer data is never as clean as promised. Learn how to validate data structures and business rules with Pydantic, write automated test suites with Pytest, and isolate new features using Git branches before bad inputs crash your pipeline. ~1-2h · Prereq: Module 00.1 · Ref: Pydantic & Pytest docs Done when: Write a passing Pytest suite for a Pydantic model on a feature branch, and merge it into main. Published
00.3 HTTP APIs, Auth, Retries & Rate Limits Customer APIs stall, rate-limit, and expire tokens in production. Build a typed HTTP client with httpx and Pydantic featuring explicit timeouts, bearer authentication, exponential backoff with jitter, and deterministic unit tests. ~1-2h · Prereq: 00.1-00.2 · Refs: httpx docs, Pydantic v2 docs, RFC 9110 Retry-After Done when: Build a typed httpx API client with bearer auth, bounded Retry-After/backoff handling, and a passing pytest MockTransport suite. Published
00.4 Relational SQL, Schemas & Safe Querying Relational schemas, foreign keys with ON DELETE SET NULL, LEFT JOINs, indexes, EXPLAIN QUERY PLAN, atomic transaction rollbacks, and parameterized SQLite queries tested with pytest. ~1-2h · Prereq: 00.1-00.2 · Refs: SQLite docs, Use The Index, Luke Done when: Build fde-00-4 with a relational schema, ON DELETE SET NULL, get_tickets_by_assignee, transaction rollback tests, and passing pytest + GitHub Actions CI. Published
STAGE 01 · ML & EVAL BASELINE
ML Intuition, LLM APIs, Evals & Demo UIs

Understand embeddings and model trade-offs, call LLM APIs reliably, measure quality early, and put a simple UI in front of workflows.

01.1 ML & LLM Fundamentals Tokens, context windows, sampling, embeddings, cosine similarity, and precision/recall trade-offs implemented in Python and verified with pytest. ~1-2h · Prereq: 00.2-00.3 · Refs: Embeddings guides, IR precision/recall notes Done when: Build fde-01-1 with cosine_similarity, rank_notes, compute_precision_recall, and f1_score tested with pytest and GitHub Actions CI. Published
01.2 Structured Outputs, Fallbacks & Basic Tracing Schema-enforced JSON outputs with Pydantic validation retries, deterministic model fallbacks, and structured per-request latency and token trace logs tested with pytest. ~1-2h · Prereq: 00.3, 01.1 · Refs: Pydantic v2 docs, Structured output specs, Tracing basics Done when: Build fde-01-2 with TriageResult schema validation, run_with_fallback_and_trace, log_request_trace, and summarize_trace_batch tested with pytest and GitHub Actions CI. Published
01.3 Early Golden-Set Evals & Cost/Latency Budgets Building a compact evaluation set, grading accuracy, and tracking cost per run and p50/p95 latency. ~4h · Prereq: 01.2 · Refs: Eval methodology notes Done when: Run a repeatable eval harness across 20+ test cases reporting accuracy, cost per run, and p95 latency. Planned
01.4 Lightweight Demo UIs for Pilot Feedback Building a fast interactive web UI backed by your API so stakeholders can test realistic inputs. ~4h · Prereq: 00.3, 01.2 · Refs: Gradio / Streamlit / lightweight web UI docs Done when: Connect a clean interactive UI to your backend API showing responses, sources/metadata, and error states. Planned
STAGE 02 · DATA & RETRIEVAL
Grounded Retrieval, Reranking & Enterprise Data

Retrieve accurately from messy documents, tables, and permission-scoped enterprise data.

02.1 Chunking, Hybrid Search & Reranking Chunk boundaries, lexical + vector retrieval, cross-encoder/LLM reranking, and hit-rate measurement. ~5h · Prereq: 01.1, 01.3 · Refs: Hybrid search & reranking guides Done when: Benchmark lexical, vector, hybrid, and reranked retrieval on a test corpus with measurable recall/MRR. Planned
02.2 Citations, Grounding & Abstention Source-linked answers, refusing unsupported claims when evidence is missing, and grounding checks. ~4h · Prereq: 02.1 · Refs: Groundedness & citation evaluation guides Done when: Return inline citations for supported claims and abstain cleanly when retrieved chunks do not answer the query. Planned
02.3 Tables, PDFs, Scanned Docs & Text-to-SQL Parsing tables and PDFs/OCR quirks alongside safe, schema-checked read-only SQL generation. ~5h · Prereq: 00.4, 02.1 · Refs: Document parsing & SQL guardrails Done when: Query structured tables and document excerpts safely with read-only SQL enforcement and result validation. Planned
02.4 Permission-Aware Retrieval & Freshness Enforcing document ACLs/roles at query time, incremental syncs, and handling stale or updated records. ~5h · Prereq: 02.1-02.2 · Refs: Access-controlled RAG patterns Done when: Enforce user/role permission filters during retrieval and verify restricted docs never appear for unauthorized users. Planned
STAGE 03 · AGENTS & WORKFLOWS
Tools, MCP, Guardrails & Bounded Workflows

Combine tool calling, MCP integrations, prompt-injection defenses, and human-in-the-loop state safely.

03.1 Tool Calling, MCP & Prompt-Injection Defense Structured tools, Model Context Protocol (MCP) servers and clients, argument validation, and untrusted-input isolation. ~5h · Prereq: 00.3, 01.2 · Refs: MCP specification, OWASP LLM Top 10 Done when: Connect a tool/MCP action with strict schema validation and test resistance to prompt injection in external text. Planned
03.2 When Not to Use Open-Ended Agents Choosing deterministic pipelines, routers, or bounded graphs over autonomous loops. ~3h · Prereq: 03.1 · Refs: Workflow vs. agent architecture notes Done when: Write an ADR comparing a deterministic workflow against an agent loop with clear failure and cost reasons. Planned
03.3 Stateful Workflows & Human-in-the-Loop Persisting state, approval gates before external side effects, and resuming runs after human review. ~5h · Prereq: 03.1-03.2 · Refs: Durable execution & HITL patterns Done when: Pause a workflow before a write/external action, record approval/rejection, and resume state cleanly. Planned
03.4 Loop Budgets, Checkpoints & Graceful Failure Max steps/timeouts, cycle detection, context compaction, and safe fallback summaries. ~4h · Prereq: 03.3 · Refs: Reliability & fault-tolerance patterns Done when: Trigger a simulated tool failure or step limit and verify bounded termination with clear diagnostics. Planned
STAGE 04 · EVALS, CI & INFRA
Evaluations, Containers, Cloud & Model Routing

Test end-to-end trajectories, automate CI gates, containerize services, and configure cloud/model trade-offs.

04.1 Agent Trajectory Evals & Regression Gates Scoring multi-step tool trajectories, calibrated LLM-as-judge checks, and CI regression gates. ~5h · Prereq: 01.3, 03.1 · Refs: Trajectory eval & CI testing guides Done when: Run an automated eval suite checking final output + tool calls and block simulated regressions in CI. Planned
04.2 Dockerfiles, Health Checks & Release Pipelines Multi-stage Docker builds, non-root containers, /health and /ready probes, and automated build/test pipelines. ~4h · Prereq: 00.3, 01.4 · Refs: Docker best practices, CI pipeline docs Done when: Package API + UI in a clean Docker image with health checks and automated test execution. Planned
04.3 Cloud IAM, Networking, Secrets & Rollouts Least-privilege IAM, VPC/private networking, secret managers, staged rollouts, and basic cluster/container ops. ~5h · Prereq: 04.2 · Refs: Cloud IAM, secrets management, rollout guides Done when: Document and test least-privilege secret/config injection and a staged/canary rollout plan. Planned
04.4 Fine-Tuning, Open-Weight Models & Routing Prompt/RAG vs. fine-tuning, self-hosting open-weight models, and routing simple vs. hard requests. ~4h · Prereq: 01.3, 02.1 · Refs: Fine-tuning vs. RAG guides, model routing notes Done when: Compare prompt/RAG, fine-tuning, or model routing on a sample task with explicit quality/cost/privacy trade-offs. Planned
STAGE 05 · ENTERPRISE FDE
Discovery, Integrations, Governance & Ops

Apply everything to Northwind Freight & Logistics: customer discovery, messy integrations, compliance, and incident ops.

05.1 Customer Discovery & Pilot Scoping (Northwind) Shadowing Northwind dispatch/ops workflows, separating root bottlenecks, and setting pilot scope & non-goals. ~4h · Prereq: 01.4, 03.2 · Case: Northwind Freight & Logistics Done when: Publish a Northwind discovery brief with current-state workflow, baseline metrics, and strict pilot scope. Planned
05.2 Enterprise Integrations, Webhooks, Auth & Data Integrating CRM/ERP/warehouse/storage/queue APIs, webhooks, SSO/RBAC, and messy enterprise payloads. ~5h · Prereq: 00.3, 02.4, 04.3 · Case: Northwind CRM, warehouse & webhooks Done when: Build an integration connector handling webhook/API events, auth/RBAC mapping, and malformed payload retries. Planned
05.3 Data Residency, PII, Auditability & AI Governance Regional data residency, PII redaction, audit trails, model/data retention, and governance rules (e.g., EU AI Act). ~4h · Prereq: 02.4, 03.1, 05.2 · Case: Northwind compliance & audit review Done when: Complete a Northwind data-residency, PII/audit, and governance review checklist with clear mitigations. Planned
05.4 Production Tracing, Alerts & Incident Runbooks End-to-end traces, quality/latency/error alerts, fallback switches, and post-incident runbooks. ~4h · Prereq: 01.2, 04.1, 04.3 · Case: Northwind incident & rollback drill Done when: Write and walk through a Northwind incident runbook covering bad outputs, vendor slowdowns, and rollbacks. Planned
STAGE 06 · CAPSTONE & DELIVERY
Adoption, ROI & End-to-End Capstone

Drive real team adoption, model total cost and business value, and ship the complete Northwind FDE capstone.

06.1 User Adoption, Training & Change Management Onboarding champions, training frontline users, handling trust gaps, and measuring real workflow usage. ~3h · Prereq: 01.4, 05.1 · Case: Northwind ops team rollout Done when: Create a practical user guide and feedback loop tailored to non-technical Northwind operators. Planned
06.2 Business Impact, ROI & Total Cost of Ownership Quantifying time, error, and cycle-time gains against engineering, inference, infra, and maintenance costs. ~4h · Prereq: 01.3, 04.4, 06.1 · Case: Northwind pilot business case Done when: Build a transparent ROI and TCO spreadsheet/model showing assumptions, unit economics, and sensitivity. Planned
06.3 Capstone: End-to-End Northwind FDE Solution Deliver the complete Northwind solution: discovery brief, API + UI + integration, eval suite, runbook, and ROI readout. ~8h · Prereq: 05.1-06.2 · Deliverable: Full repo + walkthrough + docs Done when: Publish a cohesive capstone repository, architecture summary, eval report, runbook, and recorded/live demo. Planned
06.4 Executive Readout, Handoff & Iteration Plan Presenting pilot outcomes, risks, and post-handoff ownership to engineering and business leaders. ~3h · Prereq: 06.2 · Case: Northwind leadership readout Done when: Deliver a concise pilot readout covering metrics, limitations, and clear next-step ownership. Planned
Optional specialisations
TypeScript & Node/Full-Stack AI Voice & Realtime Pipelines Multimodal & Document AI Salesforce / ERP / Warehouse Integrations Evaluation & Observability Tooling
Personal workspace

Study Log & Mastery Gates

Track what you have studied, what you have built and what you can demonstrate without following a tutorial. Using the fictional Northwind Freight & Logistics pilot scenario across later stages helps ground practice in realistic constraints.

Your current progress

0 / 28

Browser data can be lost if you clear site data or change devices. Export a backup periodically.

Stage mastery gates

Stage 00

Software, Auth, API & SQL Gate

Done when you write typed, pytest-tested Python, build a basic authenticated API endpoint, and run safe SQL queries.

Stage 01

Model, Eval & UI Baseline Gate

Done when you measure accuracy, latency, and cost on a golden set, trace runs, and demo a working UI.

Stage 02

Retrieval, Reranking & Permissions Gate

Done when hybrid search + reranking, citations, abstentions, and permission filters hold up on messy data.

Stage 03

MCP, Security & HITL Workflow Gate

Done when tools/MCP resist prompt injection, bound loops, and pause for human approval on side effects.

Stage 04

Trajectory Eval, Docker & Cloud Gate

Done when trajectory evals gate changes and the service is containerized with clear cloud/routing trade-offs.

Stage 05

Northwind Integration & Governance Gate

Done when discovery scope, integrations/webhooks, residency/audit rules, and runbooks are complete.

Stage 06

Capstone & Business Impact Gate

Done when you ship the end-to-end Northwind solution with adoption guide, ROI model, and demo.

Study note template

For every module, record what you understood, what you implemented, what failed and how you fixed it, what still needs verification, and evidence such as repositories, tests and diagrams.

Proof of work

Portfolio Projects

Build eight projects that grow with the curriculum. A project is complete when you can demonstrate it, explain the architecture and show how you tested it.

P1
Stage 00-01

Validated API Service & Golden Eval Harness

Typed Python service with auth/retries, pytest tests, and a golden-set eval runner tracking accuracy, cost, and p95 latency.

P2
Stage 01-02

Cited Knowledge & Reranked Search Assistant

Hybrid search + reranking pipeline with citations, abstention logic, and a lightweight interactive demo UI.

P3
Stage 02

Permission-Scoped Docs & SQL Copilot

Retrieval + read-only SQL/table assistant enforcing user/role permissions and handling document updates.

P4
Stage 03

MCP + Human-in-the-Loop Triage Workflow

Tool/MCP-enabled workflow with prompt-injection checks, loop limits, and human approval before side effects.

P5
Stage 03-04

Trajectory Eval & CI Regression Gate

Automated evaluation harness scoring multi-step trajectories and gating changes in CI.

P6
Stage 04

Containerized AI Service & Cloud Rollout Pack

Dockerized API + UI with health probes, model routing notes, and cloud IAM/secrets/rollout configuration.

P7
Stage 05

Northwind Integration, Governance & Runbook Pack

CRM/warehouse/webhook connector prototype, data-residency/audit checklist, and incident rollback runbook.

P8
Stage 06

Capstone: Northwind End-to-End FDE Delivery

Complete enterprise solution combining discovery brief, tested system, eval evidence, runbook, and ROI case.

Final capstone

An end-to-end enterprise AI solution

Take a realistic workflow from customer discovery to a deployed, evaluated and documented solution. Include a problem statement, workflow map, architecture, security considerations, evaluation evidence, deployment demo, runbook and ROI rationale.

Client execution artifacts

Field Playbooks

Reusable templates to practise the non-coding side of FDE work, applied around a sample enterprise case (Northwind Freight & Logistics) so you can practise end-to-end before client work.

FP-01

Discovery & Workflow Shadowing Brief

Applied to Northwind Freight & Logistics: maps shipment/dispatch steps, handoffs, data sources, and bottlenecks.

FP-02

Pilot Scope, Non-Goals & Success Metrics

Defines in-scope vs. out-of-scope Northwind workflows, baseline metrics, target thresholds, and exit criteria.

FP-03

Integrations, Residency, PII & Governance Pack

Covers external APIs/webhooks, RBAC/SSO, regional data residency, audit logs, and governance checks.

FP-04

Architecture Decision Record (ADR)

Documents context, options (workflow vs. agent, RAG vs. fine-tuning/routing), decision, and trade-offs.

FP-05

Incident Runbook & Rollback Playbook

Step-by-step response guide for bad outputs, API/model errors, injection flags, and safe rollbacks.

FP-06

Adoption, TCO & ROI Readout

Translates eval results, user adoption, and total cost into clear executive and engineering decisions.

Role boundaries & interview preparation

FDE Career Blueprint

Understand the work behind the title. Most FDE roles expect prior software engineering experience (typically 2–6+ years) combined with customer problem-solving and delivery ownership.

01 · Engineering

Build

APIs, data systems, AI workflows, integrations, deployment and reliability.

02 · Customer

Discover

Workflow mapping, stakeholder conversations, requirements and iteration.

03 · Outcomes

Deliver

Adoption, success metrics, cost, risk and measurable customer value.

Interview practice

Q1 · SCOPING & WORKFLOWS

At Northwind Freight, ops asks for an autonomous agent to resolve shipment exceptions end-to-end. How do you scope a safe first phase and decide where human sign-off is required?

Q2 · RETRIEVAL, RERANKING & ACLS

Users report outdated answers and mismatched top results in search. How do you combine chunking, hybrid search, reranking, freshness syncs, and permission filters?

Q3 · MCP, SECURITY & TRAJECTORY EVALS

An assistant connected via MCP tools processes external documents. How do you defend against prompt injection and evaluate multi-step trajectories before releasing changes?

Q4 · CLOUD, INTEGRATIONS & ROI

A prototype passes offline checks but hits webhook/API flakiness, latency spikes, and cost pushback during rollout. Walk through your cloud, observability, and ROI plan.

Portfolio principle

Show evidence, not claims: source code, demos, tests, architecture decisions, evaluation results, operational notes and clear explanations of trade-offs.

The platform and its principles

Learn in public. Build with evidence.

LearnAI.dev documents a practical journey from software foundations to Forward Deployed AI Engineering. Created by Vardaan, an enterprise IT practitioner building toward applied AI systems, every module separates verified code and tests from research, opinion, and open questions.

01 · Clear foundations

Refresh Python, auth/APIs, SQL, and testing before introducing autonomous agents.

02 · Build before claiming

Every published lesson is backed by working code, tests, and honest notes on what failed during implementation.

03 · Enterprise reality

Treat integrations, security, latency, cost, RBAC, and rollback runbooks as first-class engineering work.

04 · Honest progress

Use Published, In Progress, and Planned badges transparently as modules move from study to working proof of work.

Follow along & verify

Connect or review the work in progress

Follow code repositories, read the full background on the About page, or reach out with technical feedback on any module.

Read full About page → GitHub ↗ LinkedIn ↗ Contact →