Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Engineering 101: LLMs, RAG, Agents and Evals in Python
New

AI Engineering 101: LLMs, RAG, Agents and Evals in Python

Learn AI engineering from zero by building one assistant in Python: prompts, RAG, tool calling, agents, MCP and evals
Last updated 11/2026
English

What you'll learn

  • Explain how a language model writes: tokens, next-token prediction, the context window and temperature
  • Call an LLM from Python with messages, roles and a system prompt, and build a chatbot that remembers
  • Write prompts that work, get structured JSON back, and read a receipt photo or a PDF into data
  • Run an open model on your own laptop with Ollama, using the same code
  • Turn documents into embeddings, store them in a vector database and search them by meaning
  • Build a RAG assistant that answers from your docs with sources, and says "I don't know" when it should
  • Improve retrieval with chunking, hybrid search and a reranker, and measure that it got better
  • Give the model tools, write an agent loop by hand, and see what a framework like LangChain hides
  • Turn your tools into an MCP server that AI apps like Claude Code can use
  • Test an AI app with an answer key in pytest and an LLM judge checked against your own labels
  • Know when to use prompting, RAG or fine-tuning, and what each one changes
  • Guard against prompt injection in code, and log every answer to find what it couldn't answer

Course content

8 sections • 25 lectures • 2h 10m total length
  • What AI engineering is: AI, machine learning, generative AI, and the job5:38
  • Your setup: Python, uv, an API key, and an AI coding assistant4:47
  • Quiz: Start here

Requirements

  • Basic Python: you can read a function and run a script. No AI or machine learning background needed
  • A computer with Python 3.12 and an Anthropic API key; the setup is shown step by step in the course
  • Optional: Ollama on your laptop for the open model lesson

Description

Most AI courses either stay in theory or race through a demo you can't rebuild. This one builds a single working assistant, step by step, and every number on screen comes from a real run.

You'll build a help desk for Bramblecup, a made-up online shop for coffee and tea gear. Its help docs, orders and receipts were written for this course, so the model has never seen them, and you can judge every answer yourself.

Each lesson adds one piece. You start with how a language model actually writes text, then call it from Python, write prompts that work, get JSON back, and read a receipt photo. You run an open model on your own laptop with the same code. You turn the shop's docs into embeddings, put them in a vector database, and build a RAG assistant that answers with its sources and says "I don't know" when it should. Then you make search better, and measure that it did.

From there the assistant gets tools: it looks up orders, and you write the agent loop by hand before you see what a framework like LangChain hides. You turn those tools into an MCP server and watch Claude Code use them. You test the whole thing with an answer key in pytest and an LLM judge, checked against your own labels. And you protect it from prompt injection and log every answer, so you can read what it couldn't answer.

New ideas come first as a drawing or a short analogy, then straight away in code. The code is small and readable, and you get the full project to follow along.

By the end you'll know the fundamentals of AI engineering at a 101 level, and you'll recognise them when you meet them at work: tokens, context, prompts, structured output, embeddings, vector databases, RAG, tool calling, agents, MCP, evals, fine-tuning and guardrails.

Who this course is for:

  • Developers who want to build with LLMs and understand what they're building
  • Python programmers taking their first step into AI engineering
  • Software engineers moving into AI roles who want the fundamentals in one place
  • Students and career changers who know some Python and want a practical start