explaingit

microsoft/generative-ai-for-beginners

Analysis updated 2026-05-18

110,270Jupyter NotebookAudience · developerComplexity · 2/5LicenseSetup · 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
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

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.

What is it built with?

PythonTypeScriptJupyter NotebookAzure OpenAIOpenAI APIGitHub Actions

How does it compare?

microsoft/generative-ai-for-beginnersrasbt/llms-from-scratchmicrosoft/ml-for-beginners
Stars110,27092,05185,669
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultymoderateeasyeasy
Complexity2/53/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get 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

Generative AI for Beginners is a free 21-lesson course from Microsoft Cloud Advocates that teaches the basics of building applications with generative AI, the kind of AI that produces new text, images, or other content in response to a prompt. The course is aimed at people who are new to this area and want a structured walkthrough rather than scattered tutorials. The lessons are designed to stand on their own, so you can start at the beginning or jump to whichever topic interests you. Each lesson is tagged as either a Learn lesson, which explains a concept like how a language model works, or a Build lesson, which explains a concept and then walks through code examples in both Python and TypeScript where possible. Every lesson ends with a Keep Learning section pointing to extra material. A separate edition of the course exists for .NET developers in a sibling repository. To actually run the code samples, you pick one of three model services, Azure OpenAI Service, the GitHub Marketplace Model Catalog, or the OpenAI API, and the lessons are labeled to tell you which provider each assignment uses. A dedicated Course Setup lesson helps you prepare a working environment. You would use this if you are a beginner who wants to understand large language models and learn how to wire them into your own apps, or a developer adding generative-AI features and looking for Microsoft's free curriculum. The repository carries translations into more than fifty languages, generated automatically by a GitHub Action, and the README explains a sparse-checkout command for cloning only the English content to save space. There is also a Discord server linked from the README for meeting other learners and asking questions.

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?

Frequently asked questions

What is generative-ai-for-beginners?

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

What language is generative-ai-for-beginners written in?

Mainly Jupyter Notebook. The stack also includes Python, TypeScript, Jupyter Notebook.

What license does generative-ai-for-beginners use?

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

How hard is generative-ai-for-beginners to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is generative-ai-for-beginners for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub microsoft on gitmyhub

Verify against the repo before relying on details.