Track 09 · Core
AI Engineering
Build reliable products on top of foundation models: model APIs and structured output, retrieval-augmented generation, agents and tool use (MCP, A2A), evals, and shipping with real cost and latency budgets.
- Last updated
- Total effort
- 720 h · ≈ 72 weeks
Overview
AI engineering is the work of turning a foundation model into a product people can trust. You rarely train the model yourself. Instead you choose one, give it the right context (prompts, retrieved documents, tools), connect it to real systems, and measure whether it actually works. The core skills are software engineering skills applied to a probabilistic component: clean APIs, structured output, retrieval pipelines, agent loops that call tools, evals that catch regressions, and the cost, latency and safety trade-offs of running all of it in production. It is the most direct path from a software engineer to an AI role, and it builds naturally on API and integration work.
Why it matters heading into 2027
AI engineer is LinkedIn's fastest-growing US role for 2026, and the skills named are the ones in this track: RAG, LangChain-style orchestration and PyTorch. Lightcast data for the 2026 AI Index shows AI skills in a growing share of all postings, with the agentic AI cluster growing fastest while plain chatbot skills declined. The work is shifting from demos to dependable systems: agents connected through standards like the Model Context Protocol, evaluated continuously, and deployed inside customers' real environments. That last part is the forward-deployed engineer role, whose postings have grown very quickly. Engineers who can ship and measure AI features are in short supply.
- AI engineer is LinkedIn's #1 fastest-growing US role for 2026, with LangChain, RAG and PyTorch among the listed skills. — Dice on LinkedIn Jobs on the Rise 2026
- The agentic-AI skill cluster grew roughly 280% in US postings in one year; AI skills overall are in 2.5% of postings, up 55%. — Lightcast for the Stanford AI Index 2026
- Forward-deployed engineer postings in India grew nearly 19× in a year (Indeed data). — Analytics India Magazine, Oct 2026
Prerequisites
- Solid Python or TypeScript, HTTP/REST APIs, JSON and async code (Software Engineering Beginner–Intermediate).
- Basic SQL and comfort with one database.
- A rough mental model of how LLMs work: tokens, context window, sampling. Karpathy's one-hour Intro to LLMs talk is enough to start.
- An API key for at least one model provider, or a local model through Ollama or llama.cpp.
Learning path
How the stages build on each other, and where this track hands off to others.
flowchart TB
P["Prereqs: APIs · Python/TS · SQL"] --> B
subgraph B["1 · Beginner — calling models well"]
direction LR
B1["model APIs · tokens"] --> B2["prompts + structured output"] --> B3["tiny eval set"]
end
subgraph I["2 · Intermediate — RAG"]
direction LR
I1["chunk + embed"] --> I2["hybrid search + rerank"] --> I3["grounded answers + citations"]
end
subgraph A["3 · Advanced — agents & evals"]
direction LR
A1["tool use · MCP"] --> A2["workflows vs agents"] --> A3["error analysis · LLM judges"] --> A4["CI evals"]
end
subgraph E["4 · Expert — production"]
direction LR
E1["cost · latency · caching"] --> E2["guardrails · observability"] --> E3["forward-deployed delivery"]
end
B --> I --> A --> E
A -.-> CTX["Context Engineering"]
A -.-> HAR["Harness Engineering"]
E -.-> SEC["AI Security & Safety"]
Stages
Tick items as you go — progress is saved in this browser only. Times are focused hours (reading + building); the week estimates follow the study time you pick above.
01Beginner90 h · ≈ 9 weeksLearn to call models reliably. Understand tokens, context windows and sampling, get structured output you can parse, and start the habit of testing outputs against a small set of examples.
Key concepts
Build these
Ready for the next stage when…
02Intermediate150 h · ≈ 15 weeksBuild retrieval-augmented generation (RAG) that answers from your own documents, with citations, and measure retrieval quality separately from answer quality.
Key concepts
Build these
Ready for the next stage when…
03Advanced220 h · ≈ 22 weeksBuild agents that use tools safely, and an evaluation practice that tells you whether a change made things better. Prefer simple workflows; use autonomous agents only when they are needed.
Key concepts
Build these
Ready for the next stage when…
04Expert260 h · ≈ 26 weeksRun AI features in production for real users: cost and latency engineering, guardrails, observability, and delivering AI inside a customer's own systems.
Key concepts
Build these
Ready for the next stage when…
Field guide
The ideas behind the checklist, with diagrams and the math where it helps.
The shape of an AI feature
Almost every AI feature is the same loop: assemble context, call a model, check the output, maybe call a tool, and log everything so you can evaluate it later. The model is one component. Most bugs live in the code and data around it.
flowchart TB
U["user request"] --> CTX["assemble context<br/>system prompt · history · retrieved docs · tool list"]
CTX --> M["model call"]
M --> V{"valid structured output?"}
V -- "no" --> R["repair / retry / fallback"] --> M
V -- "tool call" --> T["run tool in your code<br/>validate inputs · least privilege"] --> CTX
V -- "final answer" --> G["guardrails<br/>PII · policy · citations"] --> OUT["response"]
M -.-> LOG["trace: tokens · cost · latency"]
T -.-> LOG
OUT -.-> LOG
RAG, step by step
RAG has two halves. Indexing happens offline; retrieval and generation happen per request. Measure the two halves separately: if the right chunk never reaches the model, no prompt will save you.
flowchart TB
subgraph IDX["Indexing (offline)"]
direction LR
D["documents"] --> C["chunk<br/>structure-aware"] --> CC["add context<br/>(contextual retrieval)"] --> EMB["embed"] --> VEC["vector index (HNSW)"]
CC --> BM["keyword index (BM25)"]
end
subgraph QRY["Query time"]
direction LR
Q["question"] --> H["hybrid search<br/>dense + BM25"] --> RR["rerank top 50 → top 5"] --> GEN["generate with citations"]
end
VEC --> H
BM --> H
Dense retrieval ranks chunks by cosine similarity between the query embedding and each chunk embedding :
Dense search finds paraphrases; keyword search finds exact names, error codes and IDs. That is why hybrid search plus a reranker beats either alone on most real document sets. Track retrieval with recall@k: the share of questions where at least one correct chunk is in the top .
Workflows before agents
Anthropic’s Building effective agents makes a simple point: start with the least autonomous design that solves the problem.
| Pattern | What it is | Good for |
|---|---|---|
| Prompt chain | fixed sequence of calls | tasks with clear steps |
| Router | classify, then send to a specialised prompt | mixed request types |
| Parallel | several calls at once, then combine | voting, independent sub-tasks |
| Orchestrator–workers | one model plans, others execute | tasks you can’t split in advance |
| Agent | model decides the next step in a loop | open-ended tasks with tools |
Agents cost more, are slower and are harder to test. Use them when the path really can’t be known in advance, and give them step and cost budgets.
Tools and MCP
A tool is just a function with a name, a description and a JSON schema. The model proposes a call and your code runs it, so your code is the security boundary. Validate arguments, scope credentials to the user, and make destructive tools require confirmation.
The Model Context Protocol standardises this: an MCP server exposes tools, resources and prompts, and any MCP client (an IDE, a chat app, your own agent) can use them. If you already build APIs and integrations, MCP servers are a natural next step. Treat them like any public API: authentication, rate limits, input validation and audit logs.
The eval loop
Evals are how you know a change helped. The practice that works is boring and manual at first:
flowchart LR
T["collect real traces"] --> L["read & label failures<br/>(error analysis)"] --> C["count failure modes"] --> F["fix the biggest one<br/>prompt · retrieval · tool · data"]
F --> E["automate a check<br/>code assertion or LLM judge"] --> CI["run in CI on every change"] --> T
- Look at data first. Read 50–100 traces and write down what went wrong, in your own words.
- Prefer code checks (valid JSON? cited a retrieved chunk? called the right tool?) over judges where you can.
- For judges, use binary pass/fail with a short rubric, and measure agreement with your own labels before trusting them.
- Keep a held-out set you never tune prompts against, so you can tell real improvement from overfitting.
Cost and latency budgets
A rough per-request cost is
where are token counts and the per-token prices. Output tokens usually cost several times more than input tokens and dominate latency, because they are generated one at a time. The levers, roughly in order of effort: shorter outputs, prompt caching for stable prefixes, a smaller model for easy steps (routing), batching offline work, and only then fine-tuning or distillation.
The forward-deployed engineer
A fast-growing role combines everything above with customer work: sit with a customer, find the workflow worth automating, connect an agent to their systems (identity, APIs, data), and prove it works with evals they believe. It rewards integration experience, clear writing and the ability to say no to an agent when a workflow would do.
How this track connects
- Context Eng.Most of AI engineering is deciding what goes into the context window. Context engineering goes deep on that.
- Harness Eng.Once agents run for many steps, the loop, tools, sandbox and permissions around the model become the product.
- Cloud & IAMAPI gateways, IAM, secrets and workload identity decide what your agent's tools are allowed to touch.
- AI SecurityEvery RAG document and tool result is untrusted input; prompt injection is the top risk for AI apps.
- Deep LearningUnderstanding training and post-training tells you when to fine-tune and why models fail the way they do.
- ArchitectureAI features are distributed systems: retries, idempotency, queues and fallbacks still apply.
References
Original sources first: arXiv, official docs, university courses and lab blogs. Every link was checked on 7 Nov 2026.
Foundational & seminal papers(14)
- Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs
Malkov & Yashunin · 2016 · arxiv.org
HNSW — the index inside most vector databases.
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
Reimers & Gurevych · 2019 · arxiv.org
Where practical sentence embeddings came from.
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Lewis et al. · 2020 · arxiv.org
The original RAG paper.
- Dense Passage Retrieval for Open-Domain Question Answering
Karpukhin et al. · 2020 · arxiv.org
Dense retrieval with dual encoders — the basis of embedding search.
- ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT
Khattab & Zaharia · 2020 · arxiv.org
Late-interaction retrieval; a strong reranking idea.
- ReAct: Synergizing Reasoning and Acting in Language Models
Yao et al. · 2022 · arxiv.org
The basic reason-act-observe agent loop.
- Retrieval-Augmented Generation for Large Language Models: A Survey
Gao et al. · 2023 · arxiv.org
A map of RAG techniques, from naive to modular RAG.
- Lost in the Middle: How Language Models Use Long Contexts
Liu et al. · 2023 · arxiv.org
Models miss information buried in the middle of long contexts.
- Toolformer: Language Models Can Teach Themselves to Use Tools
Schick et al. · 2023 · arxiv.org
Early self-taught tool use.
- Reflexion: Language Agents with Verbal Reinforcement Learning
Shinn et al. · 2023 · arxiv.org
Agents that improve by critiquing their own attempts.
- SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
Jimenez et al. · 2023 · arxiv.org
The standard benchmark for coding agents.
- GAIA: a benchmark for General AI Assistants
Mialon et al. · 2023 · arxiv.org
Questions easy for humans but hard for assistants.
- τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains
Yao et al. · 2024 · arxiv.org
Tests tool-using agents in realistic conversations with policies.
- Why Language Models Hallucinate
Kalai et al. · 2025 · arxiv.org
Argues hallucination is rewarded by how models are trained and graded.
Courses & videos(4)
- Intro to Large Language Models
Andrej Karpathy · 2023 · youtube.com
The best one-hour mental model of LLMs.
- DeepLearning.AI short courses
DeepLearning.AI · deeplearning.ai
Free hands-on courses on RAG, agents, MCP and evals.
- Hugging Face AI Agents Course
Hugging Face · 2025 · huggingface.co
A free, project-based agents curriculum.
- LLM Bootcamp
Full Stack Deep Learning · 2023 · fullstackdeeplearning.com
How to ship LLM apps, from prompts to deployment.
Books(1)
- AI Engineering: Building Applications with Foundation Models
Chip Huyen · 2025 · oreilly.com
The reference book for this track: evals, RAG, agents, fine-tuning, inference.
Articles, blogs & official docs(13)
- Building effective agents
Anthropic · 2024 · anthropic.com
Workflows vs agents, and the simple patterns that work.
- Contextual Retrieval
Anthropic · 2024 · anthropic.com
Adding context to chunks before indexing to cut retrieval failures.
- A practical guide to building agents
OpenAI · 2025 · cdn.openai.com
OpenAI's playbook for agent design and guardrails.
- Your AI Product Needs Evals
Hamel Husain · 2024 · hamel.dev
Why evals are the core of AI product work.
- AI Evals: Everything You Need to Know
Hamel Husain · 2025 · hamel.dev
A practical FAQ on error analysis, judges and eval process.
- Patterns for Building LLM-based Systems & Products
Eugene Yan · 2023 · eugeneyan.com
The classic catalogue: evals, RAG, caching, guardrails, feedback.
- What We've Learned From A Year of Building with LLMs
Yan, Bischof, Frye, Husain, Liu & Shankar · 2024 · applied-llms.org
Tactical, operational and strategic lessons from practitioners.
- Model Context Protocol specification
MCP project · modelcontextprotocol.io
The open standard for connecting models to tools and data.
- Agent2Agent (A2A) Protocol
Linux Foundation A2A project · 2025 · a2a-protocol.org
Interoperability between agents built on different stacks.
- Berkeley Function Calling Leaderboard
Gorilla, UC Berkeley · gorilla.cs.berkeley.edu
Compares models on tool-calling accuracy.
- Inspect
UK AI Security Institute · inspect.aisi.org.uk
An open eval framework used by AI safety institutes.
- promptfoo documentation
promptfoo · promptfoo.dev
Eval and red-team tests you can run in CI.
- OpenAI Evals
OpenAI · github.com
An eval framework and a registry of example evals.