generative-ai-for-beginners README

The project's README from github.com/microsoft/generative-ai-for-beginners. As one markdown file: README.md.

Generative AI For Beginners

21 Lessons teaching everything you need to know to start building Generative AI applications

GitHub license GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

GitHub watchers GitHub forks GitHub stars

Microsoft Foundry Discord

🌐 Multi-Language Support

Supported via GitHub Action (Automated & Always Up-to-Date)

Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Khmer | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese

Prefer to Clone Locally?

This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:

Bash / macOS / Linux:

git clone --filter=blob:none --sparse https://github.com/microsoft/generative-ai-for-beginners.git
cd generative-ai-for-beginners
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

CMD (Windows):

git clone --filter=blob:none --sparse https://github.com/microsoft/generative-ai-for-beginners.git
cd generative-ai-for-beginners
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"

This gives you everything you need to complete the course with a much faster download.

Generative AI for Beginners (Version 3) - A Course

Learn the fundamentals of building Generative AI applications with our 21-lesson comprehensive course by Microsoft Cloud Advocates.

🌱 Getting Started

This course has 21 lessons. Each lesson covers its own topic so start wherever you like!

Lessons are labeled either "Learn" lessons explaining a Generative AI concept or "Build" lessons that explain a concept and code examples in both Python and TypeScript when possible.

For .NET Developers checkout Generative AI for Beginners (.NET Edition)!

Each lesson also includes a "Keep Learning" section with additional learning tools.

What You Need

To run the code of this course, you can use either:

We have created a Course Setup lesson to help you with setting up your development environment.

Don't forget to star (🌟) this repo to find it easier later.

🧠 Ready to Deploy?

If you are looking for more advanced code samples, check out our collection of Generative AI Code Samples in both Python and TypeScript.

🗣️ Meet Other Learners, Get Support

Join our official Microsoft Foundry Discord server to meet and network with other learners taking this course and get support.

Ask questions or share product feedback in our Microsoft Foundry Developer Forum on Github.

🚀 Building a Startup?

Visit Microsoft for Startups to find out how to get started building with Azure credits today.

🙏 Want to help?

Do you have suggestions or found spelling or code errors? Raise an issue or Create a pull request

📂 Each lesson includes:

🗃️ Lessons

# Lesson Link Description Video Extra Learning
00 Course Setup Learn: How to Setup Your Development Environment Video Coming Soon Learn More
01 Introduction to Generative AI and LLMs Learn: Understanding what Generative AI is and how Large Language Models (LLMs) work. Video Learn More
02 Exploring and comparing different LLMs Learn: How to select the right model for your use case Video Learn More
03 Using Generative AI Responsibly Learn: How to build Generative AI Applications responsibly Video Learn More
04 Understanding Prompt Engineering Fundamentals Learn: Hands-on Prompt Engineering Best Practices Video Learn More
05 Creating Advanced Prompts Learn: How to apply prompt engineering techniques that improve the outcome of your prompts. Video Learn More
06 Building Text Generation Applications Build: A text generation app using Azure OpenAI / OpenAI API Video Learn More
07 Building Chat Applications Build: Techniques for efficiently building and integrating chat applications. Video Learn More
08 Building Search Apps Vector Databases Build: A search application that uses Embeddings to search for data. Video Learn More
09 Building Image Generation Applications Build: An image generation application Video Learn More
10 Building Low Code AI Applications Build: A Generative AI application using Low Code tools Video Learn More
11 Integrating External Applications with Function Calling Build: What is function calling and its use cases for applications Video Learn More
12 Designing UX for AI Applications Learn: How to apply UX design principles when developing Generative AI Applications Video Learn More
13 Securing Your Generative AI Applications Learn: The threats and risks to AI systems and methods to secure these systems. Video Learn More
14 The Generative AI Application Lifecycle Learn: The tools and metrics to manage the LLM Lifecycle and LLMOps Video Learn More
15 Retrieval Augmented Generation (RAG) and Vector Databases Build: An application using a RAG Framework to retrieve embeddings from a Vector Databases Video Learn More
16 Open Source Models and Hugging Face Build: An application using open source models available on Hugging Face Video Learn More
17 AI Agents Build: An application using an AI Agent Framework Video Learn More
18 Fine-Tuning LLMs Learn: The what, why and how of fine-tuning LLMs Video Learn More
19 Building with SLMs Learn: The benefits of building with Small Language Models Video Coming Soon Learn More
20 Building with Mistral Models Learn: The features and differences of the Mistral Family Models Video Coming Soon Learn More
21 Building with Meta Models Learn: The features and differences of the Meta Family Models Video Coming Soon Learn More

🌟 Special thanks

Special thanks to John Aziz for creating all of the GitHub Actions and workflows

Bernhard Merkle for making key contributions to each lesson to improve the learner and code experience.

🎒 Other Courses

Our team produces other courses! Check out:

LangChain

LangChain4j for Beginners LangChain.js for Beginners LangChain for Beginners

Azure / Edge / MCP / Agents

[AZD for Beginners](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-kor

generative-ai-for-beginners (microsoft/generative-ai-for-beginners)

Searching Database…

这是什么?这是由 Microsoft Cloud Advocates 制作的 21 节课程,讲解构建生成式 AI 应用的基础知识,涵盖提示词工程、聊天应用、RAG、微调和 AI 智能体等概念。
这是编程框架还是学习课程?这是一门结构化的学习课程,不是框架。课程分为「学习」课和「构建」课:「学习」课讲解概念,「构建」课在讲解之外,还提供可直接运行的 Python 和 TypeScript 代码示例。
我该怎么开始学这门课程?从第 00 课(课程设置)开始,它会指导你配置开发环境。之后可以按任意顺序学习各课,因为每节课都有独立的主题。
运行代码示例需要什么?你需要能使用以下任一服务:Azure OpenAI Service、Microsoft Foundry Models、OpenAI API,或用于完全离线使用的 Foundry Local。此外,还需要具备 Python 或 TypeScript 的基础知识,以及一个用于 fork 仓库的 GitHub 账号。
GitHub Models 还能用于课程吗?不能了。GitHub Models 将于 2026 年 7 月底停用,因此课程建议这些课改用 Microsoft Foundry Models。
这门课适合零基础的人吗,还是我需要先有 AI 经验?本课程面向生成式 AI 的入门学习者。具备 Python 或 TypeScript 基础会有帮助。如果你需要先补这方面的知识,README 中提供了这两种语言的入门课程链接。
运行课程是否一定要把数据发送到云端?不一定。你可以使用 Foundry Local,在自己的设备上完全离线运行模型,无需任何云端订阅。
除了基础提示词,课程还涵盖哪些内容?课程从基础知识(大语言模型、提示词工程)讲起,接着介绍文本、聊天、搜索和图像生成应用的构建,再到函数调用、基于向量数据库的 RAG、AI 智能体、微调,以及 Mistral 和 Meta 等小型语言模型等进阶主题。
我能不下载所有翻译就克隆仓库吗?可以。仓库包含 50 多种语言的翻译,体积很大。你可以使用 sparse checkout 只克隆英文内容,跳过翻译文件。
课程包含视频吗?大部分课程(共 21 节)在文字讲义之外还附有简短的视频介绍,但第 19 至 21 课的视频标注为即将推出。
这门课有面向 .NET 开发者的版本吗?有。Microsoft 为 .NET 开发者单独维护了一门「Generative AI for Beginners (.NET Edition)」课程。
Creator
microsoft
Size
6.3 GB
Stars
121.5K
Updated
CommitOct 16
Age
3y
Commits · 90 Days