microsoft/generative-ai-for-beginners

GitHub: microsoft/generative-ai-for-beginners

微软推出的 21 节生成式 AI 入门课程,系统教授从 LLM 基础概念到实际构建 AI 应用的完整知识。

Stars: 113882 | Forks: 61164

![面向初学者的生成式 AI](https://static.pigsec.cn/wp-content/uploads/repos/cas/8b/8bad7b894e90d48d88c64833894c6f2ed9f00ab59f94a8356b668192edc8a766.png) ### 21 节课程,教你开始构建生成式 AI 应用程序所需的一切知识 [![GitHub 许可证](https://img.shields.io/github/license/microsoft/Generative-AI-For-Beginners.svg)](https://github.com/microsoft/Generative-AI-For-Beginners/blob/master/LICENSE?WT.mc_id=academic-105485-koreyst) [![GitHub 贡献者](https://img.shields.io/github/contributors/microsoft/Generative-AI-For-Beginners.svg)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/graphs/contributors/?WT.mc_id=academic-105485-koreyst) [![GitHub 议题](https://img.shields.io/github/issues/microsoft/Generative-AI-For-Beginners.svg)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/issues/?WT.mc_id=academic-105485-koreyst) [![GitHub 拉取请求](https://img.shields.io/github/issues-pr/microsoft/Generative-AI-For-Beginners.svg)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/pulls/?WT.mc_id=academic-105485-koreyst) [![欢迎拉取请求](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com?WT.mc_id=academic-105485-koreyst) [![GitHub 关注者](https://img.shields.io/github/watchers/microsoft/Generative-AI-For-Beginners.svg?style=social&label=Watch)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/watchers/?WT.mc_id=academic-105485-koreyst) [![GitHub 复刻](https://img.shields.io/github/forks/microsoft/Generative-AI-For-Beginners.svg?style=social&label=Fork)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/network/?WT.mc_id=academic-105485-koreyst) [![GitHub 星标](https://img.shields.io/github/stars/microsoft/Generative-AI-For-Beginners.svg?style=social&label=Star)](https://GitHub.com/microsoft/Generative-AI-For-Beginners/stargazers/?WT.mc_id=academic-105485-koreyst) [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) ### 🌐 多语言支持 #### 通过 GitHub Action 支持(自动化且始终保持最新) [阿拉伯语](./translations/ar/README.md) | [孟加拉语](./translations/bn/README.md) | [保加利亚语](./translations/bg/README.md) | [缅甸语 (缅甸)](./translations/my/README.md) | [中文 (简体)](./translations/zh-CN/README.md) | [中文 (繁体, 香港)](./translations/zh-HK/README.md) | [中文 (繁体, 澳门)](./translations/zh-MO/README.md) | [中文 (繁体, 台湾)](./translations/zh-TW/README.md) | [克罗地亚语](./translations/hr/README.md) | [捷克语](./translations/cs/README.md) | [丹麦语](./translations/da/README.md) | [荷兰语](./translations/nl/README.md) | [爱沙尼亚语](./translations/et/README.md) | [芬兰语](./translations/fi/README.md) | [法语](./translations/fr/README.md) | [德语](./translations/de/README.md) | [希腊语](./translations/el/README.md) | [希伯来语](./translations/he/README.md) | [印地语](./translations/hi/README.md) | [匈牙利语](./translations/hu/README.md) | [印度尼西亚语](./translations/id/README.md) | [意大利语](./translations/it/README.md) | [日语](./translations/ja/README.md) | [卡纳达语](./translations/kn/README.md) | [高棉语](./translations/km/README.md) | [韩语](./translations/ko/README.md) | [立陶宛语](./translations/lt/README.md) | [马来语](./translations/ms/README.md) | [马拉雅拉姆语](./translations/ml/README.md) | [马拉地语](./translations/mr/README.md) | [尼泊尔语](./translations/ne/README.md) | [尼日利亚皮钦语](./translations/pcm/README.md) | [挪威语](./translations/no/README.md) | [波斯语 (法尔西语)](./translations/fa/README.md) | [波兰语](./translations/pl/README.md) | [葡萄牙语 (巴西)](./translations/pt-BR/README.md) | [葡萄牙语 (葡萄牙)](./translations/pt-PT/README.md) | [旁遮普语 (古尔穆奇文)](./translations/pa/README.md) | [罗马尼亚语](./translations/ro/README.md) | [俄语](./translations/ru/README.md) | [塞尔维亚语 (西里尔文)](./translations/sr/README.md) | [斯洛伐克语](./translations/sk/README.md) | [斯洛文尼亚语](./translations/sl/README.md) | [西班牙语](./translations/es/README.md) | [斯瓦希里语](./translations/sw/README.md) | [瑞典语](./translations/sv/README.md) | [他加禄语 (菲律宾语)](./translations/tl/README.md) | [泰米尔语](./translations/ta/README.md) | [泰卢固语](./translations/te/README.md) | [泰语](./translations/th/README.md) | [土耳其语](./translations/tr/README.md) | [乌克兰语](./translations/uk/README.md) | [乌尔都语](./translations/ur/README.md) | [越南语](./translations/vi/README.md) # 面向初学者的生成式 AI(版本 3)- 一门课程 通过 Microsoft Cloud Advocates 制作的 21 节综合课程,学习构建生成式 AI 应用程序的基础知识。 ## 🌱 入门指南 本课程共有 21 节课。每节课涵盖各自的独立主题,您可以从任何喜欢的地方开始! 课程分为“学习”课(解释生成式 AI 概念)或“构建”课(解释概念并提供 **Python** 和 **TypeScript** 代码示例,视情况而定)。 对于 .NET 开发者,请查看[面向初学者的生成式 AI(.NET 版)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst)! 每节课还包含一个“继续学习”部分,提供额外的学习工具。 ## 准备工作 ### 要运行本课程的代码,您可以使用: - [Azure OpenAI Service](https://aka.ms/genai-beginners/azure-open-ai?WT.mc_id=academic-105485-koreyst) - **课程:** “aoai-assignment” - [Microsoft Foundry Models](https://ai.azure.com/catalog/models?WT.mc_id=academic-105485-koreyst) - **课程:** “githubmodels”(GitHub Models 将于 2026 年 7 月底停用 - 请改用 Microsoft Foundry Models) - [OpenAI API](https://aka.ms/genai-beginners/open-ai?WT.mc_id=academic-105485-koreyst) - **课程:** “oai-assignment” - [Foundry Local](https://foundrylocal.ai?WT.mc_id=academic-105485-koreyst) - 在您自己的设备上完全离线运行模型,无需云订阅 - 具备 Python 或 TypeScript 的基础知识会有所帮助 - \*对于零基础初学者,请查看这些 [Python](https://aka.ms/genai-beginners/python?WT.mc_id=academic-105485-koreyst) 和 [TypeScript](https://aka.ms/genai-beginners/typescript?WT.mc_id=academic-105485-koreyst) 课程 - 拥有一个 GitHub 账户,以便[将整个代码仓库复刻](https://aka.ms/genai-beginners/github?WT.mc_id=academic-105485-koreyst)到您自己的 GitHub 账户 我们创建了一个 **[课程设置](./00-course-setup/README.md?WT.mc_id=academic-105485-koreyst)** 课程,以帮助您设置开发环境。 ## 🧠 准备好部署了吗? 如果您正在寻找更高级的代码示例,请查看我们使用 **Python** 和 **TypeScript** 编写的[生成式 AI 代码示例集合](https://aka.ms/genai-beg-code?WT.mc_id=academic-105485-koreyst)。 ## 🗣️ 结识其他学习者,获取支持 加入我们的 [Microsoft Foundry 官方 Discord 服务器](https://aka.ms/genai-discord?WT.mc_id=academic-105485-koreyst),结识并与其他学习本课程的学员交流,并获得支持。 在 GitHub 上的 [Microsoft Foundry 开发者论坛](https://aka.ms/azureaifoundry/forum) 中提问或分享产品反馈。 ## 🚀 正在创建初创公司? 访问 [Microsoft for Startups](https://www.microsoft.com/startups?WT.mc_id=academic-105485-koreyst),了解如何使用 Azure 额度立即开始构建。 ## 📂 每节课包含: - 主题的简短视频介绍 - 位于 README 中的书面课程 - 支持 Azure OpenAI 和 OpenAI API 的 Python 与 TypeScript 代码示例 - 指向额外资源的链接以继续您的学习 ## 🗃️ 课程 | # | **课程链接** | **描述** | **视频** | **额外学习** | | --- | -------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | 00 | [课程设置](./00-course-setup/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 如何设置您的开发环境 | 视频即将推出 | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 01 | [生成式 AI 与 LLM 简介](./01-introduction-to-genai/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 了解什么是生成式 AI 以及大型语言模型(LLM)是如何工作的。 | [视频](https://aka.ms/gen-ai-lesson-1-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 02 | [探索和比较不同的 LLM](./02-exploring-and-comparing-different-llms/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 如何为您的用例选择合适的模型 | [视频](https://aka.ms/gen-ai-lesson2-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 03 | [负责任地使用生成式 AI](./03-using-generative-ai-responsibly/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 如何负责任地构建生成式 AI 应用程序 | [视频](https://aka.ms/gen-ai-lesson3-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 04 | [了解提示工程基础](./04-prompt-engineering-fundamentals/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 实践提示工程最佳实践 | [视频](https://aka.ms/gen-ai-lesson4-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 05 | [创建高级提示](./05-advanced-prompts/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 如何应用提示工程技术来改善提示的结果。 | [视频](https://aka.ms/gen-ai-lesson5-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 06 | [构建文本生成应用程序](./06-text-generation-apps/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 使用 Azure OpenAI / OpenAI API 的文本生成应用程序 | [视频](https://aka.ms/gen-ai-lesson6-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 07 | [构建聊天应用程序](./07-building-chat-applications/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 高效构建和集成聊天应用程序的技术。 | [视频](https://aka.ms/gen-ai-lessons7-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 08 | [构建搜索应用程序向量数据库](./08-building-search-applications/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 一个使用 Embeddings 搜索数据的搜索应用程序。 | [视频](https://aka.ms/gen-ai-lesson8-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 09 | [构建图像生成应用程序](./09-building-image-applications/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 一个图像生成应用程序 | [视频](https://aka.ms/gen-ai-lesson9-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 10 | [构建低代码 AI 应用程序](./10-building-low-code-ai-applications/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 使用低代码工具的生成式 AI 应用程序 | [视频](https://aka.ms/gen-ai-lesson10-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 11 | [通过 Function Calling 集成外部应用程序](./11-integrating-with-function-calling/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 什么是 Function Calling 及其在应用程序中的用例 | [视频](https://aka.ms/gen-ai-lesson11-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 12 | [为 AI 应用程序设计 UX](./12-designing-ux-for-ai-applications/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 在开发生成式 AI 应用程序时如何应用 UX 设计原则 | [视频](https://aka.ms/gen-ai-lesson12-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 13 | [保护您的生成式 AI 应用程序](./13-securing-ai-applications/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** AI 系统面临的威胁和风险以及保护这些系统的方法。 | [视频](https://aka.ms/gen-ai-lesson13-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 14 | [生成式 AI 应用程序生命周期](./14-the-generative-ai-application-lifecycle/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 用于管理 LLM 生命周期和 LLMOps 的工具和指标 | [视频](https://aka.ms/gen-ai-lesson14-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 15 | [检索增强生成(RAG)和向量数据库](./15-rag-and-vector-databases/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 一个使用 RAG 框架从向量数据库检索 embeddings 的应用程序 | [视频](https://aka.ms/gen-ai-lesson15-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 16 | [开源模型与 Hugging Face](./16-open-source-models/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 使用 Hugging Face 上可用开源模型的应用程序 | [视频](https://aka.ms/gen-ai-lesson16-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 17 | [AI Agents](./17-ai-agents/README.md?WT.mc_id=academic-105485-koreyst) | **构建:** 使用 AI Agent 框架的应用程序 | [视频](https://aka.ms/gen-ai-lesson17-gh?WT.mc_id=academic-105485-koreyst) | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 18 | [微调 LLM](./18-fine-tuning/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 微调 LLM 的内容、原因和方法 | [视频](https://aka.ms/gen-ai-lesson18-gh?WT.mc_id=academic-105485-koreyst) | [](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 19 | [使用 SLM 构建](./19-slm/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** 使用小型语言模型(SLM)进行构建的好处 | 视频即将推出 | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 20 | [使用 Mistral 模型构建](./20-mistral/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** Mistral 系列模型的功能和差异 | 视频即将推出 | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | | 21 | [使用 Meta 模型构建](./21-meta/README.md?WT.mc_id=academic-105485-koreyst) | **学习:** Meta 系列模型的功能和差异 | 视频即将推出 | [了解更多](https://aka.ms/genai-collection?WT.mc_id=academic-105485-koreyst) | ## 🎒 其他课程 我们的团队还制作了其他课程!请查看: ### LangChain ## [![面向初学者的 LangChain4j](https://img.shields.io/badge/LangChain4j%20for%20Beginners-22C55E?style=for-the-badge&&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchain4j-for-beginners) [![面向初学者的 LangChain.js](https://img.shields.io/badge/LangChain.js%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin) [![面向初学者的 LangChain](https://img.shields.io/badge/LangChain%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=0553D6)](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin) ### Azure / Edge / MCP / Agents [![面向初学者的 AZD](https://img.shields.io/badge/AZD%20for%20Beginners-0078D4?style=for-the-badge&labelColor=E5E7EB&color=0078D4)](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 Edge AI](https://img.shields.io/badge/Edge%20AI%20for%20Beginners-00B8E4?style=for-the-badge&labelColor=E5E7EB&color=00B8E4)](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 MCP](https://img.shields.io/badge/MCP%20for%20Beginners-009688?style=for-the-badge&labelColor=E5E7EB&color=009688)](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 AI Agents](https://img.shields.io/badge/AI%20Agents%20for%20Beginners-00C49A?style=for-the-badge&labelColor=E5E7EB&color=00C49A)](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst) ### 生成式 AI 系列 [![面向初学者的生成式 AI](https://img.shields.io/badge/Generative%20AI%20for%20Beginners-8B5CF6?style=for-the-badge&labelColor=E5E7EB&color=8B5CF6)](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst) [![生成式 AI (.NET)](https://img.shields.io/badge/Generative%20AI%20(.NET)-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst) [![生成式 AI (Java)](https://img.shields.io/badge/Generative%20AI%20(Java)-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst) [![生成式 AI (JavaScript)](https://img.shields.io/badge/Generative%20AI%20(JavaScript)-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst) ### 核心学习 [![面向初学者的 ML](https://img.shields.io/badge/ML%20for%20Beginners-22C55E?style=for-the-badge&labelColor=E5E7EB&color=22C55E)](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的数据科学](https://img.shields.io/badge/Data%20Science%20for%20Beginners-84CC16?style=for-the-badge&labelColor=E5E7EB&color=84CC16)](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 AI](https://img.shields.io/badge/AI%20for%20Beginners-A3E635?style=for-the-badge&labelColor=E5E7EB&color=A3E635)](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的网络安全](https://img.shields.io/badge/Cybersecurity%20for%20Beginners-F97316?style=for-the-badge&labelColor=E5E7EB&color=F97316)](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung) [![面向初学者的 Web 开发](https://img.shields.io/badge/Web%20Dev%20for%20Beginners-EC4899?style=for-the-badge&labelColor=E5E7EB&color=EC4899)](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 IoT](https://img.shields.io/badge/IoT%20for%20Beginners-14B8A6?style=for-the-badge&labelColor=E5E7EB&color=14B8A6)](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst) [![面向初学者的 XR 开发](https://img.shields.io/badge/XR%20Development%20for%20Beginners-38BDF8?style=for-the-badge&labelColor=E5E7EB&color=38BDF8)](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst) ### Copilot 系列 [![用于 AI 结对编程的 Copilot](https://img.shields.io/badge/Copilot%20for%20AI%20Paired%20Programming-FACC15?style=for-the-badge&labelColor=E5E7EB&color=FACC15)](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst) [![用于 C#/.NET 的 Copilot](https://img.shields.io/badge/Copilot%20for%20C%23/.NET-FBBF24?style=for-the-badge&labelColor=E5E7EB&color=FBBF24)](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst) [![Copilot 冒险](https://img.shields.io/badge/Copilot%20Adventure-FDE68A?style=for-the-badge&labelColor=E5E7EB&color=FDE68A)](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst) ## 获取帮助 如果您在构建 AI 应用程序时遇到困难或有任何疑问,请与其他学员和经验丰富的开发者一起加入关于 MCP 的讨论。这是一个互相支持的社区,欢迎提问并自由分享知识。 [![Microsoft Foundry Discord](https://dcbadge.limes.pink/api/server/nTYy5BXMWG)](https://discord.gg/nTYy5BXMWG) 如果您在构建过程中有产品反馈或遇到错误,请访问: [![Microsoft Foundry 开发者论坛](https://img.shields.io/badge/GitHub-Microsoft_Foundry_Developer_Forum-blue?style=for-the-badge&logo=github&color=000000&logoColor=fff)](https://aka.ms/foundry/forum)
标签:Apex, DLL 劫持, IPv6支持, Petitpotam, 大语言模型, 学习资源, 教程, 机器学习, 生成式AI, 索引, 逆向工具