Home » Learn AI Engineering from Scratch: Open-Source Project Launched

Learn AI Engineering from Scratch: Open-Source Project Launched

By

–

Learn AI Engineering from Scratch: Open-Source Project Launched

Most AI courses teach you to call an API. AI Engineering From Scratch, a free GitHub curriculum from user rohitg00, asks learners to build the machinery instead: model internals, retrieval pipelines and agent runtimes, then test them and study where they fail. It runs to 542 lessons across 20 phases, mostly in Python, with TypeScript, Rust and Julia in places.

How the lessons work

The course is released under the MIT licence. Learners can read it on the website, work with a coding agent as tutor, or run the code locally. One lesson shows twenty starting points sliding down a quadratic loss surface, with mean loss plotted after each update; students change the learning rate and compare gradient descent, momentum and Adam in code.

The phases build on one another. Math is the floor, the project’s own description goes, and agents and production are the roof. Phase 1 covers math foundations in 22 lessons, Phase 14 on agent engineering runs to 54, and the course tells readers not to skip the lower layers and then wonder why the top breaks. A ten-question placement quiz maps existing knowledge to a starting phase and saves a study plan to a LEARNING.md file. Separate shorter routes cover Model Context Protocol (17 lessons) and Agent Skills (five).

Three projects

Each project ships with a starter that fails until the learner implements its stages, plus a reference solution and a local grader.

The Retrieval Evaluation Lab, in Python 3.10 or newer, deals with a candidate system that improves mean NDCG while ranking one query’s most relevant evidence lower. The task is a query-by-query comparison that reports the regression and can fail a release check. The project warns that its metrics describe the judgments used, not answer correctness.

The Agent Trace Debugger uses TypeScript on Node.js 22.18 or newer, with a Python grader. A trace still takes 100 ms, yet token use rises by 200 and a span starts failing. Learners parse JSONL, validate parent links, use interval arithmetic to separate overlapping child work, and output an HTML timeline and JSON regression report with exclusive per-span token counts.

The Tool Call Firewall, in Rust, covers role checks and approval receipts. It validates the call envelope, checks the caller’s role and path, then consumes an approval bound to the exact request and content. Approvals are single-use, and the project offers no persistent authorization or operating-system sandbox.

Reach

The README links translations in more than 30 languages, including Hindi, Bengali, Urdu, Thai, Vietnamese, Indonesian and Tagalog alongside the European ones. It does not claim to be an accredited course, and sponsors fund the free lessons.

Sources

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News