Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Generative AI and Large Language Models for Beginners
Rating: 4.5 out of 5(14 ratings)
324 students

Generative AI and Large Language Models for Beginners

Generative AI for beginners: how LLMs work, from tokens and transformers to prompts, RAG, AI agents and hallucination
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Explain how generative AI produces an answer: a large language model (LLM) predicts the next small piece of text, one token at a time
  • Read a token count and explain why tokens, the unit AI tools bill in, differ from words
  • Explain what a transformer is and what attention does, in plain English
  • Describe what pre-training stores in a model, and how that differs from a searchable library of sources
  • Choose between fine-tuning and retrieval (RAG) when a model needs your organization's facts
  • Explain how a context window fills up, and what a larger context window changes in practice
  • Name the two main causes of AI hallucination and the checks that catch invented answers
  • Decide when a reasoning model is worth the extra time and cost, and when a fast answer fits better
  • Write a prompt that sets out the task, the context and the format, and lets the model say when it is unsure
  • Explain what happens to your documents in a RAG system before the model reads them
  • Explain what an AI agent is and how it differs from a chat assistant
  • Apply a clear rule for what information to keep out of AI tools, and stop-rules for tasks where another approach fits better

Course content

3 sections • 18 lectures • 52m total length
  • What Is Generative AI, and Why Now?2:57
  • Download Resources: Everything that comes with this course2:44
  • Udemy Review0:15
  • What Can Generative AI Actually Make?3:13
  • How Does AI Predict the Next Word?2:55
  • What Is a Token, and Why Does It Cost Money?3:13
  • What Is a Transformer, and What Does Attention Do?3:05

Requirements

  • Some experience with a chat-based AI assistant, even a single question
  • Curiosity about how a generative AI tool turns your question into an answer

Description

Generative AI for beginners, explained in plain English: learn how large language models (LLMs) produce an answer, from tokens and transformers to context windows, prompt engineering, retrieval-augmented generation (RAG), AI agents and AI hallucination. The course follows one realistic request all the way through. A professional asks an AI assistant to summarize a supplier contract, and each lesson adds one more part of what happens to that request: how the text becomes tokens, what attention does, why the context window fills up, and how the model can invent a clause that is missing from the document.

By the end you can explain in your own words why the model lost track of the start of the contract, why it invented that clause, and how to choose between retrieval and fine-tuning for that task.

The lessons answer these questions, section by section.

What and why

  • What is generative AI, and why now?

  • What can generative AI make?

  • How does AI predict the next word?

  • What is a token, and why does it cost money?

  • What is a transformer, and what does attention do?

How it works

  • How is an AI model trained?

  • What is fine-tuning, and when do you need it?

  • How does a text predictor become a helpful assistant?

  • What is a context window, and why does AI forget?

  • Why does AI hallucinate?

  • Why do newer reasoning models think before answering?

Where and when to use it

  • How do you write a prompt that works?

  • What is RAG, and how does AI read your own documents?

  • What is an AI agent, and how is it different?

  • What should you keep out of an AI tool?

  • When is generative AI the right choice, and when does another approach fit better?

How the course is built

The key ideas are checked against the research papers they rest on, so you learn the accurate version of each one. Reasoning models are covered too, including what is happening when a model pauses to think before it answers. The final lesson sets out clear stop-rules that show when another approach fits a task better than generative AI.

The ideas are explained with diagrams, and the course resources are collected in one lecture in the first section. For learners who want to go on and build AI applications, the closing lesson points to the next step.

Who this course is for:

  • Working professionals who use AI tools at work and want to understand how the answers are produced
  • Managers, analysts, consultants and operations staff who make decisions about the AI tools their teams use
  • Career changers and students who want a clear mental model of generative AI before a longer technical course
  • Beginners who want plain English explanations of LLMs, prompt engineering, RAG and AI agents