
### 21 節課程教你所有需要知道的知識,開始建立生成式 AI 應用程式
[](https://github.com/microsoft/Generative-AI-For-Beginners/blob/master/LICENSE?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/graphs/contributors/?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/issues/?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/pulls/?WT.mc_id=academic-105485-koreyst)
[](http://makeapullrequest.com?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/watchers/?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/network/?WT.mc_id=academic-105485-koreyst)
[](https://GitHub.com/microsoft/Generative-AI-For-Beginners/stargazers/?WT.mc_id=academic-105485-koreyst)
[](https://discord.gg/nTYy5BXMWG)
### 🌐 多語言支援
#### 透過 GitHub Action 支援(自動且保持最新)
[阿拉伯文](../ar/README.md) | [孟加拉文](../bn/README.md) | [保加利亞文](../bg/README.md) | [緬甸語 (緬甸)](../my/README.md) | [中文 (簡體)](../zh-CN/README.md) | [中文 (繁體,香港)](../zh-HK/README.md) | [中文 (繁體,澳門)](./README.md) | [中文 (繁體,臺灣)](../zh-TW/README.md) | [克羅地亞文](../hr/README.md) | [捷克文](../cs/README.md) | [丹麥文](../da/README.md) | [荷蘭文](../nl/README.md) | [愛沙尼亞文](../et/README.md) | [芬蘭文](../fi/README.md) | [法文](../fr/README.md) | [德文](../de/README.md) | [希臘文](../el/README.md) | [希伯來文](../he/README.md) | [印地文](../hi/README.md) | [匈牙利文](../hu/README.md) | [印尼文](../id/README.md) | [意大利文](../it/README.md) | [日文](../ja/README.md) | [卡納達文](../kn/README.md) | [高棉文](../km/README.md) | [韓文](../ko/README.md) | [立陶宛文](../lt/README.md) | [馬來文](../ms/README.md) | [馬拉雅拉姆文](../ml/README.md) | [馬拉地文](../mr/README.md) | [尼泊爾文](../ne/README.md) | [奈及利亞皮欽語](../pcm/README.md) | [挪威文](../no/README.md) | [波斯文 (法爾西語)](../fa/README.md) | [波蘭文](../pl/README.md) | [葡萄牙文 (巴西)](../pt-BR/README.md) | [葡萄牙文 (葡萄牙)](../pt-PT/README.md) | [旁遮普文 (古魯穆奇文)](../pa/README.md) | [羅馬尼亞文](../ro/README.md) | [俄文](../ru/README.md) | [塞爾維亞文 (西里爾字母)](../sr/README.md) | [斯洛伐克文](../sk/README.md) | [斯洛文尼亞文](../sl/README.md) | [西班牙文](../es/README.md) | [斯瓦希里語](../sw/README.md) | [瑞典文](../sv/README.md) | [他加祿語 (菲律賓語)](../tl/README.md) | [泰米爾文](../ta/README.md) | [泰盧固文](../te/README.md) | [泰文](../th/README.md) | [土耳其文](../tr/README.md) | [烏克蘭文](../uk/README.md) | [烏爾都文](../ur/README.md) | [越南文](../vi/README.md)
> **偏好本地複製?**
>
> 本儲存庫包含超過 50 種語言翻譯,顯著增加下載大小。若想在無翻譯的情況下複製,請使用稀疏檢出:
>
> **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"
> ```
>
> 這將為你提供完成課程所需的一切,並大幅縮短下載時間。
# 為初學者而設的生成式 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 服務](https://aka.ms/genai-beginners/azure-open-ai?WT.mc_id=academic-105485-koreyst) - 課程:「aoai-assignment」
- [Microsoft Foundry 模型](https://ai.azure.com/catalog/models?WT.mc_id=academic-105485-koreyst) - 課程:「githubmodels」(GitHub Models 將於 2026 年 7 月底退役,請改用 Microsoft Foundry 模型)
- [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 帳號以 [fork 整個儲存庫](https://aka.ms/genai-beginners/github?WT.mc_id=academic-105485-koreyst) 到自己的帳號
我們已建立一個 **[課程設置](./00-course-setup/README.md?WT.mc_id=academic-105485-koreyst)** 課程,協助你設置開發環境。
別忘了給這個儲存庫點 [星號 (🌟)](https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars?WT.mc_id=academic-105485-koreyst),以便日後更容易找到。
## 🧠 準備部署了嗎?
如果想要更多進階代碼範例,請查看我們的 [生成式 AI 代碼範例集](https://aka.ms/genai-beg-code?WT.mc_id=academic-105485-koreyst),涵蓋 **Python** 和 **TypeScript**。
## 🗣️ 與其他學員交流,獲取支援
加入我們的 [官方 Microsoft Foundry Discord 伺服器](https://aka.ms/genai-discord?WT.mc_id=academic-105485-koreyst),與其他學員交流並獲取支援。
在我們的 [Microsoft Foundry Developer 論壇](https://aka.ms/azureaifoundry/forum) (Github) 發問或分享產品反饋。
## 🚀 要建立新創企業?
請造訪 [Microsoft for Startups](https://www.microsoft.com/startups),了解如何使用 Azure 點數開始建置。
## 🙏 想要幫忙?
如果有建議或發現拼寫或代碼錯誤,請 [提出問題](https://github.com/microsoft/generative-ai-for-beginners/issues?WT.mc_id=academic-105485-koreyst) 或 [建立 Pull Request](https://github.com/microsoft/generative-ai-for-beginners/pulls?WT.mc_id=academic-105485-koreyst)
## 📂 每節課包括:
- 一個關於主題的短視頻介紹
- 位於 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 和大型語言模型入門](./01-introduction-to-genai/README.md?WT.mc_id=academic-105485-koreyst) | **學習:** 了解什麼是生成式 AI 以及大型語言模型(LLMs)如何運作 | [視頻](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 | [探索及比較不同的 LLMs](./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 | [使用函數呼叫整合外部應用程式](./11-integrating-with-function-calling/README.md?WT.mc_id=academic-105485-koreyst) | **構建:** 什麼是函數呼叫及其在應用程式中的使用案例 | [影片](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 應用設計用戶體驗](./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) | **學習:** 管理大型語言模型生命周期和 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 架構從向量資料庫檢索嵌入的應用程式 | [影片](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 代理](./17-ai-agents/README.md?WT.mc_id=academic-105485-koreyst) | **構建:** 使用 AI 代理架構的應用程式 | [影片](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 | [微調大型語言模型(LLMs)](./18-fine-tuning/README.md?WT.mc_id=academic-105485-koreyst) | **學習:** 微調大型語言模型的內容、原因與方法 | [影片](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 | [使用小型語言模型(SLMs)構建](./19-slm/README.md?WT.mc_id=academic-105485-koreyst) | **學習:** 使用小型語言模型構建的優勢 | 影片即將推出 | [了解更多](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) |
### 🌟 特別感謝
特別感謝 [**John Aziz**](https://www.linkedin.com/in/john0isaac/) 創建所有的 GitHub Actions 及工作流程
[**Bernhard Merkle**](https://www.linkedin.com/in/bernhard-merkle-738b73/) 為每課做出關鍵貢獻,以改善學習者及代碼體驗。
## 🎒 其他課程
我們的團隊還製作其他課程!看看:
### LangChain
[](https://aka.ms/langchain4j-for-beginners)
[](https://aka.ms/langchainjs-for-beginners?WT.mc_id=m365-94501-dwahlin)
[](https://github.com/microsoft/langchain-for-beginners?WT.mc_id=m365-94501-dwahlin)
---
### Azure / Edge / MCP / 代理
[](https://github.com/microsoft/AZD-for-beginners?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/edgeai-for-beginners?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/mcp-for-beginners?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/ai-agents-for-beginners?WT.mc_id=academic-105485-koreyst)
---
### 生成式 AI 系列
[](https://github.com/microsoft/generative-ai-for-beginners?WT.mc_id=academic-105485-koreyst)
[-9333EA?style=for-the-badge&labelColor=E5E7EB&color=9333EA)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet?WT.mc_id=academic-105485-koreyst)
[-C084FC?style=for-the-badge&labelColor=E5E7EB&color=C084FC)](https://github.com/microsoft/generative-ai-for-beginners-java?WT.mc_id=academic-105485-koreyst)
[-E879F9?style=for-the-badge&labelColor=E5E7EB&color=E879F9)](https://github.com/microsoft/generative-ai-with-javascript?WT.mc_id=academic-105485-koreyst)
---
### 核心學習
[](https://aka.ms/ml-beginners?WT.mc_id=academic-105485-koreyst)
[](https://aka.ms/datascience-beginners?WT.mc_id=academic-105485-koreyst)
[](https://aka.ms/ai-beginners?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/Security-101?WT.mc_id=academic-96948-sayoung)
[](https://aka.ms/webdev-beginners?WT.mc_id=academic-105485-koreyst)
[](https://aka.ms/iot-beginners?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/xr-development-for-beginners?WT.mc_id=academic-105485-koreyst)
---
### Copilot 系列
[](https://aka.ms/GitHubCopilotAI?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?WT.mc_id=academic-105485-koreyst)
[](https://github.com/microsoft/CopilotAdventures?WT.mc_id=academic-105485-koreyst)
## 尋求協助
如果你遇到困難或有任何關於建立 AI 應用程式的問題,歡迎加入其他學習者和經驗豐富的開發者討論 MCP。這是一個支持性的社群,歡迎提問並自由分享知識。
[](https://discord.gg/nTYy5BXMWG)
如果你有產品反饋或在開發中發現錯誤,請造訪:
[](https://aka.ms/foundry/forum)
---
**免責聲明**:
本文件使用 AI 翻譯服務 [Co-op Translator](https://github.com/Azure/co-op-translator) 進行翻譯。雖然我們力求準確,但請注意,自動翻譯可能包含錯誤或不準確之處。原始文件的母語版本應被視為權威來源。對於重要資訊,建議尋求專業人工翻譯。我們不對因使用本翻譯而引起的任何誤解或曲解承擔責任。