
### 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 Actions 支援(自動且保持最新)
[阿拉伯語](../ar/README.md) | [孟加拉語](../bn/README.md) | [保加利亞語](../bg/README.md) | [緬甸語 (Myanmar)](../my/README.md) | [中文 (簡體)](../zh-CN/README.md) | [中文 (繁體,香港)](./README.md) | [中文 (繁體,澳門)](../zh-MO/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 課。每課涵蓋不同主題,你可以從任何一課開始!
課程標示有「Learn」課程講解生成式 AI 概念,或「Build」課程講解概念並提供 **Python** 與 **TypeScript** 的程式碼範例(如適用)。
.NET 開發者可參考 [Generative AI for Beginners (.NET Edition)](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 帳號,才能將 [此儲存庫完整分支](https://aka.ms/genai-beginners/github?WT.mc_id=academic-105485-koreyst) 到你自己的 GitHub 帳號
我們建立了 **[課程設定](./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 開發者論壇](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) 或 [提交拉取請求](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 與大型語言模型 (LLMs) 簡介](./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 | [探索並比較不同的大型語言模型](./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) | **構建:** 利用嵌入向量搜尋資料的搜尋應用 | [視頻](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) | **構建:** 使用低代碼工具建立生成人工智能應用 | [視頻](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 應用設計 UX](./12-designing-ux-for-ai-applications/README.md?WT.mc_id=academic-105485-koreyst) | **學習:** 在開發生成人工智能應用時如何應用 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 | [保障你的生成人工智能應用安全](./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 | [生成人工智能應用生命週期](./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 | [精調大型語言模型](./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 | [使用小型語言模型構建](./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 / 邊緣 / 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)
---
### 生成人工智能系列
[](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 應用的問題,請加入其他學習者和有經驗的開發者的討論。這是一個支持性的社區,歡迎提出問題並自由分享知識。
[](https://discord.gg/nTYy5BXMWG)
如果在構建過程中您有產品反饋或發現錯誤,請訪問:
[](https://aka.ms/foundry/forum)
---
**免責聲明**:
本文件由 AI 翻譯服務 [Co-op Translator](https://github.com/Azure/co-op-translator) 翻譯而成。雖然我們致力於確保準確性,但請注意,機器自動翻譯可能包含錯誤或不準確之處。原始文件的母語版本應被視為權威來源。對於重要資訊,建議進行專業人工翻譯。我們不對因使用本翻譯而產生的任何誤解或誤釋承擔責任。