Free course

Building LLM Apps

Build real LLM apps in Python on your own laptop with Ollama and Docker, free with no API key: chat, JSON, tools, agents, RAG, tests and a web UI.

16 lessons3.1 hoursHands-on

Building LLM Apps

Who it's for

Junior engineers and students who know basic Python and Docker and want to build, test and ship small LLM apps locally.

What you'll learn

  • Run an open LLM locally with Ollama in Docker and call it from Python
  • Manage chat history and system prompts, and get validated structured JSON back
  • Build tool calling and a simple agent loop with safety limits
  • Build a RAG app with chunking, local embeddings and verified source citations
  • Evaluate quality, measure latency and tokens, and add basic guardrails and logging
  • Package the app with a web UI into a Docker Compose setup anyone can run

Recommended before: AI Fundamentals

Syllabus

Setup

Hands-on3 lessons · 34 min
  1. Run an LLM Locally with Ollama, Step by Step, 11 min
  2. Call an LLM API from Python: Your First Request, 12 min
  3. Chat History and System Prompts, Hands-On, 11 min

Structured Output and Tools

Hands-on3 lessons · 35 min
  1. Get Structured JSON Output from an LLM, Hands-On, 11 min
  2. LLM Tool Calling Explained with a Working Example, 12 min
  3. Build a Simple AI Agent Loop in Python, 12 min

A RAG App

Hands-on4 lessons · 47 min
  1. Chunking Documents for RAG: A Practical Guide, 11 min
  2. Create Embeddings Locally with Ollama, Hands-On, 12 min
  3. Build a RAG App over Your Own Documents, 12 min
  4. Make Your RAG App Cite Its Sources, Hands-On, 12 min

Quality, Cost and Safety

Hands-on4 lessons · 47 min
  1. Evaluate Your LLM App with a Small Test Set, 12 min
  2. LLM Latency and Cost: Measure and Reduce Both, 12 min
  3. LLM Guardrails: Prompt Injection and Safe Outputs, 11 min
  4. Observe Your LLM App: Logs, Traces and Token Usage, 12 min

Ship It

Hands-on2 lessons · 23 min
  1. Add a Simple Web UI to Your LLM App, Hands-On, 12 min
  2. Capstone: Package and Run Your LLM App with Docker, 11 min