AI Agentic Handbook

Roadmap AI Engineer

AI Engineer Roadmap 2026

Six chapters, about six months of evenings, and one rule that matters more than any tool: build the thing, then measure it.

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.
What you'll work with
Python, LLM APIs, Structured output, Embeddings, Vector search, Evals, Tool calling, MCP, FastAPI, Docker
What's inside
6 chapters, 41 steps (roughly 32 h of reading and practice) and 6 projects to build

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.

The reading list

7 steps · about 19 h · 0 done
  1. 01Official docs · about 15 h

    Python, to the point of writing a small tool ↗

    Stop at the chapter on modules; that is enough to build everything in this roadmap.

    Functions, classes, type hints, virtual environments, reading JSON and files.

  2. 02Official docs · about 3 h

    Git and GitHub ↗

    Every project here goes in a public repository, so learn the basics once and properly.

    Commit, branch and open a pull request.

  3. 03Article · 5 min

    What happens when you ask an AI a question

    A plain-language tour of one request, start to finish. Read it first; the rest of the chapter hangs off it.

  4. 04Concept · 5 min

    Token

    Pricing, limits and half of the odd behaviour you will see are counted in tokens. Do the quiz at the bottom.

  5. 05Concept · 5 min

    Context window

    Notice that the answer shares the window with everything you send. That is why long chats degrade.

  6. 06Article · 5 min

    The three dials: tokens, temperature and context

    The two bugs nearly everyone hits in their first integration, and the settings that cause them.

  7. 07Question set · 10 questions · about 1 h

    How LLMs work

    Ten interview questions on the basics. Try to answer each aloud before you open the model answer.

Build this

A command-line chat tool that tells you what it cost

Put it in a public repository. It's finished when:

  • Streams responses from a hosted model API
  • Prints input tokens, output tokens and cost after every turn
  • Trims old turns when the conversation nears the context limit

0 of 3

Chapter 2 Weeks 5–7

Answers your code can actually use

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.

The reading list

6 steps · 40 min · 0 done
  1. 01Concept · 5 min

    Prompt & system prompt

    A useful reframe: the prompt is the whole request, documents and all, not just the instruction you typed.

  2. 02Concept · 5 min

    Few-shot prompting

    Two or three good examples usually beat a paragraph of rules. Watch for the model copying your examples too literally.

  3. 03Concept · 5 min

    Structured output / decoding

    This is how providers guarantee valid JSON. Know what it guarantees and, more importantly, what it doesn't.

  4. 04Article · 10 min

    Structured outputs that don't break

    The longest read in the chapter and the most useful. It treats reliable output as a system, not a trick.

  5. 05Concept · 5 min

    Reasoning models & extended thinking

    When to pay for a model that thinks before it answers, and when it only makes you wait.

  6. 06Article · 5 min

    Prompt, retrieve or fine-tune? A decision guide

    Keep this one. You will come back to its decision table more than once.

Build this

A field extractor for invoices or CVs

Put it in a public repository. It's finished when:

  • Outputs JSON that validates against a schema
  • Measured on 30+ real documents with a pass rate in the README
  • Retries or flags documents it cannot parse instead of guessing

0 of 3

Chapter 3 Weeks 8–12

Letting the model look things up

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.

The reading list

8 steps · about 2 h · 0 done
  1. 01Article · 5 min

    RAG in plain English: letting the AI look it up

    Start here if the acronym is still fuzzy. Six minutes, no code.

  2. 02Concept · 5 min

    Embedding

    The idea that makes meaning searchable. The diagram of points in space is worth a minute of staring.

  3. 03Concept · 5 min

    Chunking

    The least glamorous decision in RAG and often the one that matters most.

  4. 04Article · 10 min

    Your first RAG pipeline in pure Python

    Type it out rather than copying it. About 150 lines, no libraries, and you will understand every one.

  5. 05Concept · 5 min

    Hybrid search

    Meaning search misses exact names and part numbers; keyword search misses paraphrase. Use both.

  6. 06Concept · 5 min

    Reranker

    The cheapest large improvement most RAG systems never make.

  7. 07Concept · 5 min

    Grounding & groundedness checks

    Making the model stick to the sources, and checking that it did.

  8. 08Question set · 10 questions · about 1 h

    RAG Fundamentals

    The interview questions on when RAG is and isn't the right answer. The second matters more than people expect.

Build this

Q&A over a set of documents you care about

Put it in a public repository. It's finished when:

  • Every answer cites the chunk it came from
  • Refuses when retrieval finds nothing relevant
  • Hybrid search (keyword + vector) beats vector-only on your own test questions

0 of 3

Chapter 4 Weeks 13–15

Knowing whether it works

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.

The reading list

6 steps · 40 min · 0 done
  1. 01Article · 5 min

    How do you know if an AI is any good?

    Why a good demo proves so little. A short, plain read to set up the rest.

  2. 02Concept · 5 min

    Golden set

    The single most useful artefact in an AI project. Version it like code.

  3. 03Article · 10 min

    Your first eval set in an afternoon

    A practical recipe. Do it on your RAG project the same day you read it.

  4. 04Concept · 5 min

    Recall@k

    If the right passage was never retrieved, no prompt can save the answer. This number tells you.

  5. 05Concept · 5 min

    LLM-as-judge

    Useful for grading at scale, and biased in ways you need to know before you trust it.

  6. 06Article · 5 min

    Error analysis, step by step: from 100 traces to a failure taxonomy

    How to go from a hundred failed answers to the three fixes that matter.

Build this

An eval report for your RAG project

Put it in a public repository. It's finished when:

  • 50+ question–answer pairs written by hand
  • Retrieval and answer quality scored separately
  • One before/after change with the numbers and the failure categories that moved

0 of 3

Chapter 5 Weeks 16–20

Giving the model tools

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.

The reading list

7 steps · 50 min · 0 done
  1. 01Article · 5 min

    What is an AI agent, really?

    A four-minute definition that will save you from a lot of marketing.

  2. 02Concept · 5 min

    Tool use & function calling

    The mechanics: how a model asks for a tool and how the answer gets back to it.

  3. 03Concept · 5 min

    The agent loop (ReAct)

    Pay attention to how the loop ends. Most agent bugs are about stopping.

  4. 04Article · 10 min

    Build your first tool-using agent (offline, in pure Python)

    Build it offline, in plain Python, before you touch any framework.

  5. 05Article · 10 min

    Workflows before agents: pick the simplest pattern that works

    Read this before you build anything agent-shaped at work. Then reread the cost column.

  6. 06Concept · 5 min

    MCP (Model Context Protocol)

    One sentence version: a standard plug for tools. The page explains what it does and doesn't standardise.

  7. 07Article · 5 min

    Build your first MCP server

    Thirty lines of Python. Connect it to an AI app you already use and watch it call your tool.

Build this

A research or support agent with real tools

Put it in a public repository. It's finished when:

  • At least three tools with typed inputs
  • A step cap and a cost cap that actually stop it
  • An MCP server exposing one of the tools

0 of 3

Chapter 6 Weeks 21–26

Running it for real people

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.

The reading list

7 steps · about 8.5 h · 0 done
  1. 01Official docs · about 8 h

    Serve your project with FastAPI and Docker ↗

    Aim for one command that anyone can run. You'll need the same thing for every demo from here on.

    An HTTP API in a container that streams its responses.

  2. 02Concept · 5 min

    Observability & traces

    For an LLM feature that means traces of what was retrieved, what was sent and what came back.

  3. 03Article · 5 min

    The real cost of an LLM feature: latency, tokens and the bill

    Work through the arithmetic with your own project's numbers. Most people are surprised.

  4. 04Concept · 5 min

    p50 / p95 / p99 latency

    Averages hide the slow answers your users actually complain about.

  5. 05Concept · 5 min

    Prompt injection (indirect)

    The security problem specific to this field. Read it twice if you plan to build agents.

  6. 06Article · 10 min

    Shipping LLM features safely

    How careful teams roll out a prompt or model change without betting the product on it.

  7. 07Concept · 5 min

    Eval gate (CI)

    The point where your eval set stops being a report and starts protecting you.

Build this

Your RAG project, deployed

Put it in a public repository. It's finished when:

  • Public URL or a one-command Docker run
  • Traces show retrieval, model call and tokens per request
  • CI runs your eval set and fails the build on a regression

0 of 3

Where people get stuck

  1. Collecting frameworks instead of fundamentals

    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.

  2. 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.

  3. 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.

  4. 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.

aiagentichandbook.com/roadmaps/ai-engineer/

Further reading

All 33 articles →

Thinking models, explained without the hype

What a reasoning model does with its extra time, why the same question can cost ten times more and take forty seconds longer, and a simple rule for when that is worth it.

Anatomy of a production RAG system

Every box between the user's question and a cited answer, with a latency and cost budget per stage, who owns it, and the one metric that tells you it is broken.

LLM-as-judge without fooling yourself

A model can grade open-ended answers at scale, but only after you have measured its true-positive and true-negative rates against people and corrected the pass rate it reports.

What happens to what you type into an AI

Your words can be logged, kept, reviewed, used for training, or indexed for search, and each is a separate decision. The questions that tell you which ones apply, without needing to trust a marketing page.

The AI engineering ladder: what each level's week looks like

Budding, Mid, Senior and Staff are not years of experience; they are the size of the problem you own and the evidence you leave behind. What a week looks like at each, what gets you promoted, and how to use this handbook's tracks to get there.

A reading list by level: the papers, posts and books worth your time

Twenty-eight primary sources, grouped from first steps to staff level, with one line on why each one still matters.

Questions people ask about this roadmap

What does an AI engineer do?

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.

Other roadmaps

All roadmaps →
About 5 months

Agentic AI Engineer

You want to build systems that take actions, not just answer questions.

About 4 months

RAG Engineer

You care about search quality and want to be the person who makes answers correct.

About 3 months

Software Engineer → AI Engineer

You're already a working software engineer and want the shortest path.

More from the handbook

All free at aiagentichandbook.com