Six chapters, about six months of evenings, and one rule that matters more than any tool: build the thing, then measure it.
By the editors of the AI Agentic HandbookUpdated · 5 min read · Free, no sign-up
In brief
To become an AI engineer in 2026, learn Python and how LLMs behave, then build in this order: structured prompting, retrieval-augmented generation (RAG), evaluation, tool-using agents and production deployment. Ship one portfolio project per step. At 10–15 hours a week this takes about six months.
Most people who set out to become an AI engineer start in the wrong place. They watch a video about the newest framework, follow along, and end the evening with a chatbot that answers questions about a PDF. It works in the demo. Nobody, including them, could say whether it works on the forty-first question.
The job is mostly the forty-first question. An AI engineer builds features on top of models someone else trained (search over a company's documents, a form that fills itself from an email, an assistant that can look up an order) and is answerable for whether those features are right, fast, affordable and safe. The model is the easy part. Retrieval, evaluation and cost are where the work lives.
So this roadmap is ordered the way the job is. You start with how models behave, because every later bug traces back to tokens, context and sampling. You learn to get structured answers out reliably. You build retrieval, then learn to measure it, and only then do you hand a model tools and let it act. The last chapter is about running all of it for real people.
Each chapter ends with something you build on data you chose, with the numbers written in the README. Those six projects are the portfolio. If a chapter covers ground you already know, the "already there?" test tells you so, and you can skip it without guilt.
How long
About 6 months at 10–15 hours a week
Where to start from
You can write basic code in any language. No machine learning background needed.
Work through the chapters in order. Tick each step when you've done it; your progress stays in this browser. Use the filters to see only articles, concepts or interview practice, and skip any chapter you already know.
Chapter 1 · Weeks 1–4
Python, and how models actually behave
Before you build anything clever, learn what the model is doing when you call it. It reads tokens, not words. It holds a fixed amount of text at once. It picks each next token with a little randomness you control. Almost every confusing bug in a first LLM project comes from one of those three facts: the answer that changes on every run, the conversation that suddenly forgets its instructions, the bill that is three times what you expected.
You also need enough Python to stop thinking about Python. Not data science: functions, types, files, JSON and a virtual environment. If you already write Python at work, skim the first two steps and spend your time on the model.
By the end of this chapter You can call an LLM API from Python, stream the answer, count tokens and explain why the same prompt gives different answers.
Already there? You can explain tokens, the context window and temperature without notes, and have called a model API from code.
A chat reply is for a person. A feature needs an answer a program can read: a date, a category, a list of line items, in the same shape every time. Getting there is less about clever wording than about structure — a clear instruction, a few worked examples, and a schema the model is held to.
The second half of this chapter is a judgement you will make for the rest of your career: when a better prompt is the fix, when the model needs facts it doesn't have, and the rare case where fine-tuning earns its cost. Most teams reach for fine-tuning too early. Learn to diagnose the failure first.
By the end of this chapter You can turn messy text into validated JSON reliably, and you know when a prompt fix stops being enough.
Already there? You've shipped a feature that parses model output into typed objects and handles the failures.
A model knows a great deal about the world and nothing about your company. Retrieval-augmented generation, or RAG, closes that gap: find the few passages that answer the question, hand them to the model, and make it answer from them and say where it looked.
It sounds simple, and the first version is. The difficulty is that a RAG system fails quietly. When it retrieves the wrong passage, the model still writes a fluent, confident answer. So the habit to build in this chapter is to look at what was retrieved, not just at what was said. You will write your first pipeline by hand, without a framework, so you can see every step.
By the end of this chapter You can build question-answering over your own documents that cites its sources and says “I don't know” when the answer isn't there.
Already there? You've built a RAG system with hybrid search and can explain why you chose your chunk size.
This is the chapter that separates people who build AI features from people who build demos. Change a prompt and some answers get better and others get worse. Without a fixed set of test questions and a way to score them, you are guessing, and so is everyone you show it to.
An eval set does not need to be large or clever. Fifty questions you wrote by hand, with the answers you expect, will teach you more than any dashboard. The harder skill is reading the failures, sorting them into kinds, and fixing the kind that happens most. Expect this chapter to change how you look at the RAG project you just built.
By the end of this chapter You can prove a change made your system better, not just different — with a test set, metrics and an error analysis.
Already there? You maintain an eval set for an LLM feature and run it before every change.
An agent is a model in a loop: it decides what to do next, your code does it, and the result goes back to the model until the job is finished or a limit is reached. That loop is genuinely powerful, and it is also the easiest way to build something expensive and unpredictable.
So this chapter teaches restraint as much as technique. You will build an agent by hand, then read about the simpler patterns (a fixed chain of calls, a router, a planner with workers) that solve most real problems more cheaply. Finish with MCP, the protocol that lets the tools you write work across many AI apps.
By the end of this chapter You can give a model tools, keep the loop bounded, and decide when a fixed workflow beats an agent.
Already there? You've built a tool-calling agent with stop conditions and can name when you would not use one.
Everything so far has run on your laptop, for you. Production adds people who type things you didn't expect, a bill that arrives monthly, and the uncomfortable fact that anything the model reads might be trying to give it instructions.
The work here is ordinary engineering applied to an unusual component: serve it behind an API, trace every request, know your cost and slowest response times, and make your eval set a gate that a change must pass before it ships. None of it is glamorous. All of it is what an interviewer is listening for.
By the end of this chapter You can deploy an LLM feature behind an API, watch its cost and latency, and defend it against prompt injection.
Already there? You've run an LLM feature for real users with tracing, cost tracking and a rollout plan.
Frameworks change every few months; tokens, retrieval, evals and cost do not. Learn each idea once by hand, and the framework becomes a convenience rather than a mystery.
Leaving evals for later
Later never comes, and in the meantime you can't tell an improvement from a coin flip. Write the first twenty test questions before you tune anything.
Starting with an agent
Most real features are a fixed sequence of one or two model calls. Reach for an agent only when the steps genuinely can't be known in advance.
A portfolio that looks like a tutorial
Hiring managers have seen the chatbot over a PDF. Use data you chose, show where it fails, and publish the numbers.
A last word
If you finish all six chapters you will have six working projects, an eval set you trust and a fairly accurate sense of what you still don't know. That last part is the useful one. The field moves quickly enough that nobody is finished; what employers want is someone who can learn the next thing and tell, with evidence, whether it helped.
When you're ready to specialise, the roadmaps below go deeper into agents, retrieval and the platform that runs it all. You will find that most of what you need for them, you already have.
Take this roadmap with you
Copy every step as a Markdown checklist for Notion, GitHub Issues or your notes, or send someone the link.
An AI engineer builds software features on top of large language models — search and chat over company data, document extraction, and tool-using agents — and owns their quality, cost, latency and safety in production.
How long does it take to become an AI engineer?
About six months at 10–15 hours a week if you can already code. Experienced software engineers often finish in three months because the deployment and testing skills transfer.
Do I need a machine learning degree?
No. AI engineering is closer to backend engineering than to research. You need to understand how models behave, not how to train them from scratch.
Which programming language should I learn?
Python first: most model SDKs, evaluation tools and examples use it. TypeScript is a strong second language for product teams.
What is the difference between an AI engineer and an ML engineer?
An ML engineer usually trains and serves models. An AI engineer usually builds products on top of models someone else trained, focusing on prompts, retrieval, evals and integration.
Is this roadmap free?
Yes. Every step links to a free handbook page or free official documentation. There's no course to buy and no sign-up.