← All coursesCoding & software

Generative AI for Beginners: Understand It, Use It, Build With It

Learn what generative AI is, how to use it safely and well, and how to build small AI apps in Python with free models that run on your own computer.

Beginner · 38 lessons · 8 h 58 min · Certificate on completion · With Avro Academy Team

Understand it, use it well, build with it

Generative AI writes, summarises, answers questions, makes images and writes code — and it's now part of almost every kind of work. This course takes you from how it works to building your own small AI apps, using free models that run on your own computer: no accounts, no API keys and no cost.

You'll build tools for Brightside Tutoring, a (made-up) tutoring centre: a lesson-plan generator, Study Buddy — a homework helper that answers from Brightside's own notes, with sources — and a small booking agent.

What you'll learn

  • How large language models work: tokens, prediction, training and temperature, and why they get things wrong
  • Kinds of models — closed and open, big and small — and how to compare them fairly with your own tests
  • Responsible AI: the principles, the harms to look for, AI security threats like prompt injection, and red-teaming your own app
  • Prompt engineering for apps: system prompts, examples, step-by-step reasoning, templates and JSON output
  • Building text, chat and search apps in Python, tool use, and answers from your own documents (RAG)
  • Image generation, designing AI people can trust, no-code AI, agents, fine-tuning and running an AI app for real

Before you start

Modules 1, 3 and 7 have no code. For the rest you need some Python — variables, lists, dictionaries, functions and loops; our free Python Foundations course covers it all — and a Windows, Mac or Linux computer with at least 8 GB of memory and about 10 GB of free disk space.

How it works

  • 8 modules, 30 lessons, about 9 hours including quizzes
  • Every program and AI reply in the lessons was run for real with the free models you'll use — including the mistakes, so you learn to spot them
  • Starter files with the code for every lesson, a cheat sheet, a quiz after each module and a certificate

Free forever — like every self-paced course on Avro Academy: all lessons, quizzes, downloads and your certificate. Our promise

Adapted from Microsoft's Generative AI for Beginners, MIT licence. Avro Academy is not affiliated with or endorsed by Microsoft. The full licence notice is in the last lesson.

Course outline

  1. Module 1: What generative AI is

    How we got here, how large language models write, what they get right and wrong, and the Brightside project.

  2. Module 2: Choosing a model

    Kinds of models, big and small open models, setting up Ollama and Python, and comparing models fairly.

    • Kinds of models: text, image, embedding, open and closed15 min
    • Big and small models: Llama, Qwen, Gemma, Mistral and Phi12 min
    • Set up Ollama and Python25 min
    • Compare models fairly with a test sheet25 min
    • Module 2 quiz5 min
  3. Module 3: Using AI responsibly and safely

    Responsible AI principles, harms and the layers that reduce them, AI security threats, and red-teaming.

    • Principles of responsible AI12 min
    • Harms and the layers that reduce them12 min
    • Security threats: prompt injection, data leaks and more15 min
    • Red-team your own app20 min
    • Module 3 quiz5 min
  4. Module 4: Prompting for builders

    Parts of a prompt and system prompts, few-shot and step-by-step prompting, temperature, templates and JSON.

    • Parts of a prompt and the system prompt15 min
    • Examples, step-by-step thinking and self-checking20 min
    • Controlling output: temperature, templates and JSON20 min
    • Module 4 quiz5 min
  5. Module 5: Build text apps

    Your first text-generation program, a template app with streaming, a chat with memory, and tool use.

    • Your first text-generation program15 min
    • A lesson-plan generator with prompt templates20 min
    • A chat app with memory20 min
    • Let the model call your functions25 min
    • Module 5 quiz5 min
  6. Module 6: Search and your own data

    Embeddings and cosine similarity, semantic search over your notes, RAG with sources, and testing answers.

    • Embeddings and searching by meaning15 min
    • Build a search for Brightside's notes25 min
    • RAG: answers from your own documents20 min
    • Checking answers are right20 min
    • Module 6 quiz5 min
  7. Module 7: Images, design and no-code

    How image generation works and how to use it well, designing AI apps people trust, and AI without code.

    • Image generation, and using it well15 min
    • Designing AI apps people trust12 min
    • AI without code: automations and builders12 min
    • Module 7 quiz5 min
  8. Module 8: Beyond the basics

    AI agents, when fine-tuning helps, the AI app lifecycle, your next steps and about this course.

    • AI agents: models that take steps25 min
    • Fine-tuning: when it helps and when it doesn't12 min
    • From prototype to product: the app lifecycle12 min
    • Your Study Buddy, next steps and about this course10 min
    • Final quiz5 min