Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
LLM, Generative AI and Prompt Engineering for Beginners
New
1 students

LLM, Generative AI and Prompt Engineering for Beginners

Understand the basics of AI, learn how large language models think and are prompted, then call them from Python.
Created byAshish Anand
Last updated 11/2026
English
English

What you'll learn

  • Explain how large language models work, from tokens and embeddings to attention and the transformer
  • Describe how LLMs are pre-trained, fine-tuned and aligned with RLHF, and what model scale means
  • Write reliable prompts with few-shot, chain-of-thought, prompt chaining and strong system prompts
  • Treat prompts as code: version them, test them with evals and defend them against prompt injection
  • Control model output with temperature, top-p, max tokens, stop sequences and reasoning effort
  • Manage context windows, conversation memory and token budgets in real applications
  • Compare open and closed models and choose the right provider and model for a task
  • Call an LLM API from Python with multi-turn chat, streaming and proper error handling
  • Recognise hallucinations and bias, reduce them, and apply a responsible AI checklist
  • Explain the limits of standalone LLMs and the building blocks of AI agents

Course content

8 sections • 53 lectures • 4h 59m total length
  • Course Overview3:08
  • Section 1: Intro1:00
  • The AI Landscape: AI, ML, Deep Learning and LLMs8:40
  • A Brief History of Language Models: N-grams to Transformers10:36
  • Section 1 Quiz: The AI Landscape and Its History

Requirements

  • No prior AI or machine learning knowledge is needed
  • Basic Python helps for Section 6 (variables, functions, running a script); everything else needs no code
  • A computer that can run Ollama for the local exercises (8 GB RAM is enough for small models)

Description

Everyone uses ChatGPT, Claude and Gemini. Very few people understand what is actually happening inside them.

This course changes that. It is Part 1 of the AI Agents series, and it gives you the foundation every AI builder needs: how large language models work, how they are trained, how to prompt them well, how to control their output, how to call them from code, and where they fail.

There is no heavy maths and no hype. Every lesson is short (5 to 11 minutes), focused on one idea, and paired with a written reference, a quiz and a hands-on exercise.

What you will learn

  • Where LLMs sit in the AI landscape and how we got from N-grams to transformers

  • How a language model predicts the next token, and why that simple objective is so powerful

  • Tokens, embeddings, attention and the transformer architecture, explained visually

  • Pre-training, fine-tuning, RLHF, and what "parameters" and "scale" really mean

  • Prompt engineering that still matters in 2026: few-shot, chain-of-thought, meta prompting, pre-flight prompting, prompt chaining, system prompts, and prompts as tested, versioned code

  • Prompt injection and how to defend against it

  • Model settings: temperature, top-p, top-k, max tokens, stop sequences and reasoning effort

  • Context windows, memory and token budgets

  • Open vs. closed models, the major providers today, and the open-model ecosystem

  • Your first API call, multi-turn conversations, streaming and error handling in Python, ending with your own terminal chat app

  • Hallucinations, bias and responsible AI, with a practical builder's checklist

  • Why a standalone LLM is not enough, and the building blocks of AI agents

Up to date for 2026. The course covers today's model lineups (Claude Opus 5.5 and Fable 5.2, GPT-6, Gemini 4, Qwen, Llama and more) and today's practices: reasoning effort, evals, prompt caching, context engineering, the Responses API and MCP.

Hands-on throughout. You will run models locally with Ollama and call frontier models through the Claude API, so you learn by doing, not just watching.

By the end you will understand LLMs well enough to use them with confidence, explain them to others.

Who this course is for:

  • Developers who want to build with LLMs and AI agents and need a solid foundation first
  • Students and career switchers who want to understand AI beyond the buzzwords
  • Product managers, founders and analysts who make decisions about AI features
  • Everyday ChatGPT, Claude or Gemini users who want to get much better results
  • Anyone aspiring to become an AI Engineer