Skip to the content.

Developer Roadmap: AI Engineer 2027 - Step-by-Step Path to Build LLM Apps, RAG and AI Agents

A practical, step-by-step AI engineer roadmap for 2027: what to learn, in what order, which free resources to use, and how to prove each skill with a checkpoint project. It covers LLM APIs, prompt and context engineering, embeddings and RAG, AI agents and MCP, evaluation, open-weight models and fine-tuning, production deployment and AI security. It is written for software developers who want to become AI engineers, and for anyone who wants a clear AI engineering learning path instead of a pile of links.

Last reviewed: December 2026. Model names, prices and SDK versions change monthly, so this roadmap teaches concepts and skills that stay stable and links to official docs for the details. Time estimates assume about 10 hours per week.


Table of Contents


What an AI Engineer Does in 2027

An AI engineer builds software products whose core behavior comes from machine learning models, mostly large language models (LLMs) and other foundation models. Day to day, that means:

How it differs from neighboring roles:

Role Main question Typical output
AI engineer How do we build a reliable product on top of models? Applications, agents, RAG systems, eval suites
ML engineer How do we train, deploy and monitor models? Training pipelines, feature stores, model services
Data scientist What does the data say, and what should we do? Analyses, experiments, predictive models
Research engineer or scientist How do we make models fundamentally better? New architectures, training methods, papers
Software engineer How do we build reliable software? Everything else, and the foundation of all of the above

The roles overlap. This roadmap focuses on the AI engineer path, with enough ML depth (Stage 7) to talk to ML engineers and to fine-tune models when needed.


The Roadmap Diagram

flowchart TD
  S0[Stage 0<br/>Engineering foundations<br/>Python, Git, HTTP, SQL, Docker]
  S1[Stage 1<br/>LLM APIs<br/>tokens, sampling, streaming, cost]
  S2[Stage 2<br/>Prompt and context engineering]
  S3[Stage 3<br/>Structured output and tool calling]
  S4[Stage 4<br/>Embeddings, vector search, RAG]
  S5[Stage 5<br/>Evaluation and observability]
  S6[Stage 6<br/>Agents and MCP]
  S7[Stage 7<br/>How models work<br/>ML and deep learning essentials]
  S8[Stage 8<br/>Open-weight models, local inference, fine-tuning]
  S9[Stage 9<br/>Production, cost, latency, security]
  S10[Stage 10<br/>Multimodal and voice]
  S11[Stage 11<br/>Specialize and get hired]

  S0 --> S1 --> S2 --> S3
  S3 --> S4
  S3 --> S6
  S4 --> S5
  S6 --> S5
  S5 --> S9
  S1 --> S7
  S7 --> S8
  S8 --> S9
  S9 --> S10
  S9 --> S11
  S10 --> S11

Read it as: Stages 0 to 3 are a straight line. After Stage 3, RAG and agents can be learned in either order, and both feed into evaluation. Stage 7 (how models work) can run in parallel from Stage 1 onward, a few hours a week.


How to Use This Roadmap

Each stage has the same parts:

Mark your progress by forking this repository and ticking the checkboxes.


Stage 0: Engineering Foundations

Why it matters: AI engineering is software engineering first. Most production problems in AI apps are ordinary software problems: timeouts, retries, bad data, missing tests.

Learn

Free resources

Checkpoint project: a FastAPI service with two endpoints that stores notes in SQLite, validates input with Pydantic, has tests, and runs in Docker.

Self-test

Time: 0 weeks if you are already a working developer; 8 to 12 weeks otherwise.


Stage 1: Working with LLM APIs

Why it matters: every AI engineering task starts with calling a model well: the right parameters, streaming for good UX, and a clear idea of cost.

Learn

Free resources

Checkpoint project: a command-line chat app that streams responses, keeps conversation history, prints token usage and estimated cost per turn, retries on rate limits, and can switch between two providers or a local model with a flag.

Self-test

Time: 2 weeks.


Stage 2: Prompt and Context Engineering

Why it matters: the quality of a model’s output depends mostly on what you put in its context: instructions, examples, retrieved data, tool results and conversation history. “Context engineering” is the discipline of deciding what goes in, in what order, and what stays out.

Learn

Free resources

Checkpoint project: a “ticket triage” prompt that turns a raw customer email into category, urgency and a one-line summary. Write 30 test emails with expected labels, then improve the prompt in three versions and record accuracy for each version in a table.

Self-test

Time: 2 weeks.


Stage 3: Structured Output and Tool Calling

Why it matters: real applications need machine-readable output and models that can call your code. This is the bridge from chat to software.

Learn

Free resources

Checkpoint project: an “expense parser” that turns a photo or text of a receipt into a validated JSON object, plus a convert_currency tool the model can call. Log every tool call and its arguments.

Self-test

Time: 1 to 2 weeks.


Stage 4: Embeddings, Vector Search and RAG

Why it matters: retrieval-augmented generation (RAG) is the most common pattern in business AI. It lets a model answer from your data, with citations, without retraining.

Learn

Free resources

Checkpoint project: a “chat with the docs” app for an open-source project’s documentation. Requirements: hybrid search, reranking, citations with links, a refusal when nothing relevant is found, and a 50-question eval set reporting retrieval recall@5 and answer correctness for at least two chunking strategies.

Self-test

Time: 3 weeks.


Stage 5: Evaluation and Observability

Why it matters: evaluation is the core skill that separates AI engineers from prompt tinkerers. Without it, every change is a guess.

Learn

Free resources

Checkpoint project: add an eval pipeline to your Stage 4 RAG app: a test file, three scorer types (exact, code-based, LLM judge), a report that compares two prompt versions, and a CI job that fails if quality drops. Add tracing and look at 50 real traces; write down the top three failure categories.

Self-test

Time: 2 to 3 weeks, then forever.


Stage 6: AI Agents and MCP

Why it matters: agents let models take multi-step actions: search, run code, edit files, call APIs. They are powerful and fail in expensive ways, so design matters.

Learn

Free resources

Checkpoint project: an MCP server that exposes two tools from a real system you use (a notes folder, a bug tracker export, a calendar file), plus a small agent that uses it to complete a multi-step task. Include a step limit, a cost limit, a confirmation step for any write action, and 10 test tasks with success rate reported.

Self-test

Time: 3 weeks.


Stage 7: How Models Work (ML and Deep Learning Essentials)

Why it matters: you can build a lot without knowing how models work, but debugging, choosing models, fine-tuning and talking with ML teams all get much easier when you do. Run this stage in parallel, a few hours per week.

Learn

Free resources

Checkpoint project: train a tiny character-level transformer on a text you like, then write a one-page explanation of what happens to a prompt from tokenization to the next sampled token.

Self-test

Time: 6 to 8 weeks in parallel with Stages 1 to 6.


Stage 8: Open-Weight Models, Local Inference and Fine-Tuning

Why it matters: open-weight models give you privacy, control, offline use and sometimes much lower cost. Fine-tuning a small model can beat a large general model on a narrow task.

Learn

Free resources

Checkpoint project: pick your Stage 2 triage task. Fine-tune a small open model with LoRA on 500 to 2,000 examples, quantize it, serve it locally, and compare accuracy, latency and cost per 1,000 requests against a hosted model with your eval set.

Self-test

Time: 3 to 4 weeks.


Stage 9: Production, Cost, Latency and Security

Why it matters: this is where most AI projects fail: the demo worked, but production is slow, expensive, flaky or unsafe.

Learn

Free resources

Checkpoint project: harden your Stage 6 agent: add per-user rate limits and budgets, a fallback model, tracing, an indirect prompt-injection test suite (malicious instructions hidden in documents and tool results), and a short threat model document. Load test it and report p50 and p95 latency and cost per task.

Self-test

Time: 3 weeks.


Stage 10: Multimodal and Voice

Why it matters: many valuable products are not text-only: document understanding, image analysis, voice agents.

Learn

Free resources

Checkpoint project: a “receipt and invoice inbox” that accepts photos and PDFs, extracts fields with a vision model, and answers spoken questions about spending through a voice interface. Measure extraction accuracy and voice round-trip latency.

Time: 2 to 3 weeks.


Stage 11: Specialize and Get Hired

Pick one direction and go deep:

Specialization Focus Signature project
AI product engineer End-to-end features in a product team A full-stack AI feature with evals, analytics and a launch write-up
Agent engineer Tool design, long-running agents, sandboxes A coding or operations agent with a public benchmark result
Search and RAG engineer Retrieval quality at scale A hybrid search system with measured gains over a baseline
Evaluation engineer Measurement, judges, red teaming An open-source eval suite for a real use case
Inference engineer Serving, quantization, GPUs A serving benchmark comparing engines and settings
Applied fine-tuning engineer Data, training, distillation A small model that matches a large one on a narrow task
On-device AI engineer Mobile and desktop local models An app that works offline with a local model

Getting hired


Skills Matrix: Junior, Mid-Level and Senior AI Engineer

Skill Junior Mid-level Senior
LLM APIs Calls APIs, handles errors and streaming Chooses models and parameters with data Designs multi-model routing and fallback strategies
Prompting and context Writes clear prompts with examples Versions and tests prompts; manages long context Designs context strategies for complex agents
RAG Builds a basic pipeline Hybrid search, reranking, measured retrieval quality Retrieval architecture at scale, freshness, permissions
Evaluation Writes test cases Builds eval pipelines and validated judges Defines quality strategy and metrics for the org
Agents Single tool-calling loop Multi-step agents with guardrails Safe autonomous systems with sandboxing and oversight
Models Knows model families and trade-offs Runs open models; LoRA fine-tuning Distillation, training data strategy, serving optimization
Production Deploys a service Monitoring, cost control, caching Reliability, security reviews, capacity planning
Communication Explains own work Writes design docs with eval evidence Aligns product, legal and engineering on AI risk

The Tool Landscape (Pick One Per Row)

You do not need every tool. Learn one per row well; the concepts transfer.

Need Options (examples) Beginner pick
Model access Provider SDKs, multi-provider gateways such as LiteLLM One provider’s official SDK
Local models Ollama, llama.cpp, MLX, LM Studio Ollama
Serving open models vLLM, SGLang, llama.cpp server, TGI vLLM
Structured output Native structured outputs, Instructor, Outlines Native structured outputs
Orchestration Plain code, LangGraph, LlamaIndex, Pydantic AI, provider agent SDKs Plain code first
Vector storage pgvector, Qdrant, Chroma, Faiss pgvector if you already use Postgres
Evaluation promptfoo, DeepEval, Inspect, your own scripts Your own scripts plus one tool
Observability Langfuse, Phoenix, OpenTelemetry-based tracing Langfuse or Phoenix (both open source)
Fine-tuning TRL and PEFT, Unsloth, torchtune Unsloth notebooks
Agent tools protocol MCP MCP

Model leaderboards and price comparisons change weekly; sites such as Artificial Analysis track quality, speed and price across providers. Always confirm with your own eval set.


Fast Tracks: 30, 90 and 180 Days

30 days (experienced developer, about 10 h/week)

90 days

180 days


Common Mistakes on the Way

  1. No eval set. Changing prompts based on two or three manual tries. Fix: 30 test cases before the first prompt change.
  2. Reaching for agents too early. A fixed workflow is cheaper, faster and easier to test. Use agents when the path truly cannot be predicted.
  3. Fine-tuning to add knowledge. Use retrieval for facts; fine-tune for behavior, format and narrow skills.
  4. Ignoring cost until the bill arrives. Log tokens per request from day one.
  5. Trusting retrieved or tool content. Anything a model reads can contain instructions. Treat it as untrusted.
  6. Framework first, understanding later. Build one thing with plain API calls before adopting an abstraction.
  7. Chasing every new model. Re-run your eval suite on new models instead of rewriting your app for each release.
  8. No logs. Without traces of real requests you cannot do error analysis.

Reading List That Holds Up

Free articles and guides that stay useful even as models change:


FAQ

How long does it take to become an AI engineer? For an experienced software developer, about 3 to 6 months of steady part-time study and building is enough to be productive on AI features. Starting from zero programming experience, plan on 12 to 24 months, because Stage 0 is a full software engineering education.

Do I need a degree in machine learning or math? Not for most AI engineering roles. You need solid software engineering, a working understanding of how models behave (Stage 7), and strong evaluation skills. Deep math matters more for research and model training roles.

Is Python required? Python is the most common language for AI work, especially for evals, data and fine-tuning. Many AI product teams also use TypeScript. Learning Python is strongly recommended even if your app is in another language.

AI engineer versus ML engineer: what is the difference? AI engineers mostly build products on top of existing foundation models. ML engineers more often train, deploy and monitor custom models. The roles overlap, and many teams use the titles interchangeably.

Do I need a GPU? No for Stages 0 to 6 and 9 (hosted APIs and small local models run on a laptop). For fine-tuning (Stage 8), free notebook GPUs or short cloud rentals are enough for small models.

Which model provider should I learn? Learn the concepts with one, then make your code provider-agnostic. Tokens, context, tool calling, structured output and caching work similarly everywhere.

Is prompt engineering still a skill? Yes, but it has grown into context engineering: deciding what information, tools and history the model sees, and measuring the effect with evals.

What should be in an AI engineer portfolio? Two or three projects with real users or realistic data, each with an eval set, numbers, a clear architecture diagram and an honest limitations section.


Where to Go Next


Contributing

Pull requests are welcome. Please keep entries accurate:

License

This roadmap is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.