explaingit

microsoft/generative-ai-for-beginners

🔥 Hot110,270Jupyter NotebookAudience · developerComplexity · 2/5ActiveLicenseSetup · moderate

TLDR

Free Microsoft course teaching beginners how to build generative AI applications through 21 hands-on lessons with code examples in Python and TypeScript.

Mindmap

mindmap
  root((repo))
    What it does
      Teaches AI fundamentals
      21 structured lessons
      Learn and Build formats
    How to use it
      Choose model provider
      Run code examples
      Setup development environment
    Tech stack
      Python
      TypeScript
      Azure OpenAI
      OpenAI API
    Use cases
      Build AI applications
      Add AI to projects
      Learn from scratch
    Audience
      Beginners
      Developers
      Microsoft ecosystem

Things people build with this

USE CASE 1

Learn how to build chatbots and text generation applications using large language models.

USE CASE 2

Add generative AI features to your existing Python or TypeScript projects with working code examples.

USE CASE 3

Understand prompting, embeddings, and retrieval-augmented generation through hands-on lessons and exercises.

Tech stack

PythonTypeScriptJupyter NotebookAzure OpenAIOpenAI APIGitHub Actions

Getting it running

Difficulty · moderate Time to first run · 30min

Requires API keys for Azure OpenAI or OpenAI to run code examples.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

This repository is a free course from Microsoft Cloud Advocates that teaches the fundamentals of building generative AI applications. Generative AI is the type of artificial intelligence that produces new content, like text, images, or code, in response to a prompt. The course is aimed at beginners and is organized as 21 short lessons that you can take in order or jump into wherever interests you most. The way it is structured is into two kinds of lessons. Learn lessons explain a generative AI concept, while Build lessons explain a concept and then walk through code examples, with versions provided in both Python and TypeScript when possible. Each lesson also has a Keep Learning section pointing to extra material. There is a separate companion course for .NET developers maintained in another repository. To actually run the code, students choose one of three model providers, Azure OpenAI Service, the GitHub Marketplace Model Catalog, or the OpenAI API, and the lessons are tagged so you know which assignments use which. A Course Setup lesson helps you prepare a development environment. You would use this if you are new to AI and want a structured, hands-on introduction to building things with large language models, or if you are a developer who wants to add generative AI features to your work and prefers Microsoft's free curriculum. The repository carries translations into more than fifty languages, automated through a GitHub Action, and the README explains how to do a sparse clone if you only want the English content. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Walk me through lesson 1 of this Microsoft generative AI course and show me how to set up my first API call to OpenAI.
Prompt 2
I want to build a chatbot using this course. Which lessons should I follow and what's the Python code structure I need?
Prompt 3
Show me the difference between the Learn and Build lessons in this course and give me an example of what I'll code in a Build lesson.
Prompt 4
How do I choose between Azure OpenAI Service, GitHub Marketplace Model Catalog, and OpenAI API for this course's exercises?
Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.