站内导读
中文 这是微软 Cloud Advocates 推出的 21 课生成式 AI 入门课程,讲解构建生成式 AI 应用所需的基础知识。课程分为讲解概念的 Learn 课与给出 Python、TypeScript 代码示例的 Build 课,可按任意顺序学习。README 提供 50 多种语言译文,并给出 sparse checkout 命令以减小克隆体积。适合希望系统入门生成式 AI 开发的初学者,.NET 开发者另有对应版本。
日本語 Microsoft Cloud Advocates による全21回の生成AI入門コース。生成AIアプリ開発に必要な基礎を扱い、概念を説明する Learn 回と Python・TypeScript のコード例を示す Build 回で構成され、順序は自由。README には50以上の言語の翻訳と、clone サイズを抑える sparse checkout の手順が記載されている。これから生成AI開発を学ぶ初心者向けで、.NET 開発者向けの版もある。
한국어 Microsoft Cloud Advocates가 만든 21개 레슨의 생성 AI 입문 과정으로, 생성 AI 애플리케이션 개발에 필요한 기초를 다룹니다. 개념을 설명하는 Learn 레슨과 Python·TypeScript 코드 예제를 제공하는 Build 레슨으로 구성되며 순서는 자유롭게 정할 수 있습니다. README에는 50개 이상 언어 번역과 클론 크기를 줄이는 sparse checkout 방법이 안내되어 있습니다. 생성 AI 개발을 처음 배우려는 입문자에게 적합하고 .NET 개발자용 버전도 따로 있습니다.
English A 21-lesson introductory course from Microsoft Cloud Advocates covering the fundamentals of building generative AI applications. Lessons are split into Learn sessions that explain concepts and Build sessions with Python and TypeScript code examples, and you can start anywhere. The README lists 50+ language translations and sparse checkout steps to keep the clone small. It suits beginners starting generative AI development; a .NET edition is also available.
README · 详细文档
来源 · 查看原文
Generative AI For Beginners
21 Lessons teaching everything you need to know to start building Generative AI applications
🌐 Multi-Language Support
Translations maintained with Co-op Translator
<!-- CO-OP TRANSLATOR LANGUAGES TABLE START --> 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: ``bash 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):**`cmd 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.
<!-- CO-OP TRANSLATOR LANGUAGES TABLE END -->
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:
- Azure OpenAI Service - Lessons: "aoai-assignment" - Microsoft Foundry Models - Lessons: "githubmodels" (GitHub Models is retiring at the end of July 2026 - use Microsoft Foundry Models instead) - OpenAI API - Lessons: "oai-assignment" - Foundry Local - Run models fully offline on your own device, no cloud subscription required
- Basic knowledge of Python or TypeScript is helpful - \*For absolute beginners check out these Python and TypeScript courses
- A GitHub account to fork this entire repo to your own GitHub account
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:
- A short video introduction to the topic
- A written lesson located in the README
- Python and TypeScript code samples supporting Azure OpenAI and OpenAI API
- Links to extra resources to continue your learning
🗃️ 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:
<!-- CO-OP TRANSLATOR OTHER COURSES START -->
LangChain
Azure / Edge / MCP / Agents
Generative AI Series
0 1-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA) 2-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC) 3-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)
Core Learning
Copilot Series
0 1 2 <!-- CO-OP TRANSLATOR OTHER COURSES END -->
Getting Help
If you get stuck or have any questions about building AI apps. Join fellow learners and experienced developers in discussions about MCP. It's a supportive community where questions are welcome and knowledge is shared freely.
If you have product feedback or errors while building visit: