Vibe Engines
YouTube
LEARNING PATH · AI Engineering

Become an AI Engineer

For developers building real features on top of LLMs.

Intermediate ~6h16 lessons19 steps

From prompting to retrieval to agents to evaluation and serving — the full arc of shipping LLM-powered features, threaded through handbooks, system designs, runnable challenges and tools.

  • Structure prompts and LLM calls that hold up in production
  • Build a retrieval pipeline from chunking to ranked context
  • Design agent + tool-calling systems and evaluate them honestly
  • Reason about inference cost, latency and serving at scale
0 / 16 done · 0%
  1. HandbookNext up

    The Prompting Handbook

    Start at the interface to every model — prompting.

  2. Paper Breakdown

    Attention Is All You Need

    See what you’re actually prompting — the Transformer, explained.

  3. ToolTool · optional

    Context Budget & Cost Planner

    Feel how context length drives latency and cost.

  4. AI System Design

    Design a RAG Pipeline

    The canonical RAG architecture, end to end.

  5. AI System Design

    Design a Vector Database

    Go inside the vector store: IVF, HNSW, ANN search.

  6. Challenge

    Cosine Similarity

    Implement the similarity metric retrieval runs on.

  7. Challenge

    Top-K Retrieval

    Rank documents by similarity — the “R” in RAG.

  8. ToolTool · optional

    RAG Chunking Playground

    Tune chunking and watch retrieval quality shift.

  9. AI System Design

    Design Semantic Search

    Assemble it all: embeddings, hybrid retrieval, reranking.

  10. AI System Design

    Design an AI Agent System

    Move from single calls to tool-using agents.

  11. AI System Design

    Design Multi-Agent Orchestration

    Coordinate many agents with a durable workflow engine.

  12. ToolTool · optional

    Tool-Schema Designer

    Design the tool interfaces agents call.

  13. Handbook

    The Agent Evaluations Handbook

    Evaluate agents — the hard part of shipping them.

  14. Challenge

    Token-Level F1

    Implement a real eval metric by hand.

  15. Handbook

    The Loop Engineering Handbook

    Then stop prompting — design the loops that run your agents unattended.

  16. Handbook

    Self-Improving Agents

    Close the loop: make the agent learn from its own runs — and know when that is going wrong.

  17. Challenge

    Ship or Stop

    Write the gate that decides whether a round of self-improvement ships.

  18. AI System Design

    Design an LLM Inference Server

    Serve models at scale: batching, KV-cache.

  19. Handbook

    The Senior AI Engineer Interview Handbook

    Tie it together at senior scope.

How this path works

This path is for developers who have already called an LLM API and now need to ship something that works every day: a support assistant grounded in your own docs, a search box that understands questions, an agent that finishes a workflow on its own. You do not need to train models, but you do need to understand what the model sees and what each design choice costs.

The job, and the interviews for it, mostly concern the system around the model. Can you get structured, reliable output from a prompt? Can you retrieve the right passages from your data and explain why they ranked first? Can you let a model call tools without handing it the keys to everything? Can you show that a change made quality better rather than just different, and keep latency and cost inside a budget?

The steps follow the life of a request. Prompting, the Transformer and the cost planner come first, because every later decision is priced in tokens. Retrieval takes the next six steps, from the architecture down to the similarity math you implement and back up to hybrid search. Agents follow, then evaluation, placed after them because multi-step systems are where one accuracy number stops meaning much. Unattended loops, a ship gate for self-improvement, serving at scale and a senior question set close the path, since each assumes everything before it.

What each step gives you

  1. The Prompting Handbook

    A short, non-technical field guide built around CRISP (context, role, instruction, specifics and proof by example), with side-by-side bad and good prompts, the eight most common mistakes, and a playground that scores your own prompt. For an engineer the habits carry straight into system prompts: state the output format, say what to avoid, and include one example of a good answer instead of a paragraph describing it.

  2. Attention Is All You Need

    Before designing around a model, learn what it does with your prompt: each token attends to the others through queries, keys and values, and position has to be added explicitly because attention on its own ignores order. The breakdown computes attention by hand and in about 30 lines of Python, which is enough to explain why attention cost grows with the square of the context length.

  3. Context Budget & Cost Planner

    An interactive planner: set the system prompt, tool definitions, retrieved context, number of turns and price tier, then read the cost per conversation, per day and per month. Use it to answer the cost questions design reviews ask, such as why resent history dominates an agent's input tokens and which lever (trimming retrieval, windowing history, prefix caching or a smaller model) actually moves your number.

  4. Design a RAG Pipeline

    The canonical retrieval-augmented generation design, built one component at a time: chunk and embed documents, embed the query, search by similarity, set top-k on the recall and precision dial, rerank, then build a grounded prompt with citations and a way to say it does not know. Several stages end with how they break in production, which is the material for both a RAG design interview and debugging an answer drawn from the wrong passage.

  5. Design a Vector Database

    Inside the store that retrieval depends on: exact kNN and the choice of distance metric, IVF with nprobe as the speed and recall dial, HNSW graphs, product quantization to compress vectors, and the recall trap that metadata filters create. It prepares you to pick an index for a given corpus size and latency budget, and to explain how approximate search can silently miss the one document that mattered.

  6. Cosine Similarity

    Retrieval ranks chunks by how closely their embeddings point the same way as the query's, and here you write that score yourself against hidden tests. It takes minutes, yet it makes later design choices concrete: why many vector stores normalize embeddings so a plain dot product gives the same ranking, and why mixing metrics between indexing and querying quietly degrades results.

  7. Top-K Retrieval

    Given a query embedding and a list of document embeddings, return the indices of the k most similar, best first, with ties broken by the smaller index so results stay deterministic. This brute-force version is exactly what an approximate index tries to match, so it doubles as the ground truth you would measure a vector store's recall against.

  8. RAG Chunking Playground

    Paste a real document and compare fixed-size, recursive, sentence and paragraph chunking, with overlap highlighted and a token estimate for every chunk. It turns chunk size from a guess into an experiment: large chunks keep context but dilute relevance and spend tokens at query time, small ones are precise but lose surrounding meaning, and overlap keeps a sentence split across a boundary retrievable.

  9. Design Semantic Search

    The full search stack: one embedding model shared by the indexer and the query path, a chunk, embed and index pipeline, hybrid retrieval that adds BM25 for exact terms, a cross-encoder reranker over the shortlist, and model versioning with reindexing. It prepares you for the design question of when vector search alone falls short, and the operational one of what happens to the index when you upgrade the embedding model.

  10. Design an AI Agent System

    The move from one call to an agent: a goal and a plan, act and observe loop, typed tool calls, an executor that sandboxes every action, working versus long-term memory, budgets and human approvals, and a graceful way to give up. Work through it before building one, because it answers what reviewers ask first: what stops a runaway loop, what the agent may touch, and how you trace what it did.

  11. Design Multi-Agent Orchestration

    An orchestrator over specialist workers, including a section on when not to go multi-agent at all, then shared state versus message passing, a durable workflow engine, typed contracts between agents, parallel fan-out and fan-in, and loop detection. It prepares you to justify the extra moving parts with a concrete win, usually context isolation, and to explain how a long workflow survives a crash halfway through.

  12. Tool-Schema Designer

    Compose a function-calling definition field by field (name, description, typed parameters and required flags) and export valid JSON in both the Claude and OpenAI formats. Vague descriptions and loose types are a leading cause of wrong tool choices and invented arguments, so draft the tools your agent design needs here before you write any executor code.

  13. The Agent Evaluations Handbook

    Evaluation stops being one accuracy number here: tasks, trials and transcripts, code-based graders, calibrated LLM judges and human review, and metrics for non-determinism that separate succeeding once in k tries from succeeding every time. After the agent designs above, use it to write an eval plan for one of them, including which failures block a release and which only get logged.

  14. Token-Level F1

    A small, real metric: lowercase and split a prediction and a reference, count overlapping tokens as a multiset, and combine precision and recall into F1. Building it shows what cheap code-based graders can and cannot catch, which is the judgment you need when deciding where an LLM judge is worth its extra cost and latency.

  15. The Loop Engineering Handbook

    Once an agent works, the next step is a system that runs it without you: a trigger, a framed task, the agent's own inner loop, independent verification, and state recorded outside the model. The handbook covers heartbeat, cron, hook and goal loops, hard caps and verifiable stop conditions, cost levers such as model routing and caching, and failure modes like token runaway that compound while nobody is watching.

  16. Self-Improving Agents

    A long, hands-on handbook on making an agent better at its own job: repeated sampling and the selection gap, majority vote versus verifiers, building and then breaking a verifier, choosing which traces to keep, and the six places a lesson can land. It prepares you for the hardest question about any improvement loop: how you know the agent got better rather than better at fooling its own grader.

  17. Ship or Stop

    Write the release gate for one round of self-improvement: from two rounds of measurements and a canary, return whether to ship and which stop conditions fired, from reward hacking, where the verifier's score rose and the human pass rate did not follow, to a canary read on too few runs. It turns the previous handbook's checklist into code with hidden tests.

  18. Design an LLM Inference Server

    What happens after the API call: a router and a queue in front of the GPUs, compute-bound prefill versus memory-bound decode, continuous batching, the KV cache and paged attention, sharding weights across GPUs, and autoscaling on GPU pressure. It prepares you to explain time to first token, why memory rather than compute usually caps how many requests run at once, and what you give up when you trade latency for throughput.

  19. The Senior AI Engineer Interview Handbook

    Sixty questions that test whether the previous eighteen steps hold together: multi-tenancy on a shared platform, model routing, rolling back a bad prompt, a provider outage, hallucinations in production, agent state and runaway cost, retrieval at scale, and evals. Use it as the final self-test, answering each question aloud and returning to the step that covers any answer you cannot give.

A study plan

  1. Week 1

    Read The Prompting Handbook and the Attention Is All You Need breakdown, then open the Context Cost Planner with numbers from a feature you actually want to build. Write that feature's system prompt with an explicit output format and one example answer, and note its monthly cost at your expected traffic.

  2. Week 2

    Work through Design a RAG Pipeline and Design a Vector Database, then solve Cosine Similarity and Top-K Retrieval without hints. Run your own top-k function over a few dozen of your documents, using any embedding model you can access, and write down three queries it gets wrong.

  3. Week 3

    Put the same documents through the RAG Chunking Playground at two chunk sizes, then read Design Semantic Search. Re-run your three failing queries after each change and keep a short log of what fixed them: chunking, hybrid BM25 or reranking.

  4. Week 4

    Read Design an AI Agent System and Design Multi-Agent Orchestration, then define two tools in the Tool Schema Designer. Before writing any code, write down the agent's step budget, the actions that need human approval, and the condition under which it gives up.

  5. Week 5

    Read The Agent Evaluations Handbook, solve Token-Level F1, and build twenty test cases for your retrieval or agent feature. Score them twice to see how much results move between runs, then read The Loop Engineering Handbook and pick a stop condition a machine can check.

  6. Week 6

    Finish with The Self-Improving Agents Handbook, Ship or Stop and Design an LLM Inference Server. Then answer five questions a day from 60 Senior AI Engineer Interview Questions out loud, and revisit the step behind any answer you could not give.

Questions about this path

What does an AI engineer actually do?

An AI engineer builds product features on top of pretrained models rather than training models from scratch. Day to day that means writing prompts with clear output formats, retrieving the right context from company data, connecting models to tools and APIs, building evaluation sets that show whether a change helped, and keeping latency and cost under control in production. The work sits closer to backend engineering than to research: most of the effort goes into the system around the model, its data, its failure handling and its monitoring.

What is the difference between an AI engineer and an ML engineer?

An ML engineer typically trains, tunes and deploys models from data: feature pipelines, training jobs, model serving and retraining. An AI engineer usually starts from a pretrained foundation model and builds the application layer around it, with prompts, retrieval, agents, evaluation and cost management. The roles overlap in evaluation and serving, and job titles vary a lot between companies, so read the job description rather than the title. This path targets the AI engineer side; the ML Engineering Foundations path covers the primitives underneath.

Do I need a math or machine learning background to become an AI engineer?

You need less than most people expect, but not zero. Vectors and dot products explain embeddings and similarity search, a little probability explains softmax and sampling, and basic statistics helps you read eval results honestly. Strong software engineering matters more day to day: APIs, data pipelines, testing and debugging. If the math feels shaky, the ML Engineering Foundations path implements the key primitives in a few short exercises, and the Transformer breakdown in this path works its formula by hand.

How long does it take a software developer to become an AI engineer?

It depends mostly on how much you build. Reading this path takes roughly a working day spread over several sessions, but becoming productive on real AI features usually takes a few months of building them: a retrieval feature over your own data, an agent with real tools and limits, and an eval set you actually maintain. Developers who already ship backend services usually have the easiest start, because the hardest parts are system design, failure handling and measurement rather than model internals.

What projects should I build to practice AI engineering?

Pick one small problem you understand and take it through the whole path. Build retrieval over documents you know well, so you can judge the answers yourself, and keep a list of questions it gets wrong. Add an agent with two or three tools, a step budget and a clear stop condition. Then write twenty to fifty test cases, score every change against them, and record the cost per request. A project with an honest eval set and a written log of trade-offs shows more judgment than a polished demo.

What this path builds toward

AI engineering isn't one skill — it's a stack. This path walks it in the order the work actually happens: start at the prompt, the interface to every model; add retrieval so the model answers from real data; move to agents that take actions through tools; then the two things that separate a demo from a product — honest evaluation and cost-aware serving at scale.

Each step is a concrete artifact — a system design you can reason about, a tool you can play with, a metric you implement by hand — not a video to watch. By the end you'll be able to take an idea from "call an LLM" to a grounded, agentic, evaluated feature you'd be comfortable shipping.

← All learning paths