generative-ai-for-beginners / ja
AGENTS.md121k starsChanged 5 months agoMITView on GitHub
このリポジトリには、生成AIの基礎と応用開発を教える21回の包括的なカリキュラムが含まれています。このコースは初心者向けに設計されており、基本概念から本番対応アプリケーションの構築までを網羅しています。 主要技術: - ライブラリ付きPython 3.9+:openai、python-dotenv、tiktoken、azure-ai-inference、pandas、numpy、matplotlib - Node.js用TypeScript/JavaScriptとライブラリ:openai(Azure OpenAIのv1エンドポイント+Responses API)、@azure-rest/ai-inference(Microsoft Foundry Models) - Azure OpenAI Service、OpenAI API、Microsoft Foundry Models(GitHub Modelsは2026年7月末で廃止予定) - インタラクティブラーニング用Jupyterノートブック - 一貫した開発環境のためのDev Containers リポジトリ構成: - 21の番号付きレッスンディレクトリ(00-21)にはREADME、コード例、課題を含む - 複数の実装:Python、TypeScript、時に.NET例 - 40以上の言語版を含むtranslationsディレクトリ - .envファイルによる集中設定(テンプレートとして.env.copyを使用) このリポジトリにはGitHub CodespacesやVS Code Dev Containers用の.devcontainer設定が含まれています: APIアクセスを必要とするすべてのレッスンは.envで定義された環境変数を使用します:
- Reads credentials
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about microsoft/generative-ai-for-beginners
- @ponceto91.bsky.social“Bonjour et bon vendredi ! Si vous cherchez des ressources pour vous mettre à l'IA générative, voici …”Bluesky · Mar 8, 2024 · 8 likes
- @github-trending.bsky.social“📦 microsoft / generative-ai-for-beginners ⭐ 71,760 (+94) 🗒 Jupyter Notebook 21 Lessons, Get Started …”Bluesky · Mar 3, 2025 · 5 likes
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 76,474 (+159) 🗒 Jupyter …”Bluesky · Mar 30, 2025 · 4 likes
- A Hacker News story“Generative AI for Beginners – Version 2”Hacker News · Feb 23, 2024 · 4 points
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 12,932 (+820) 🗒 Jupyter …”Bluesky · Nov 22, 2023 · 4 likes
The biggest 5 of 94 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 94
Talked about on Bluesky, GitHub and Hacker News (94 times).
On Bluesky · 44
- Mar 8, 2024Bonjour et bon vendredi ! Si vous cherchez des ressources pour vous mettre à l'IA générative, voici generative AI for beginners, des cours… — @ponceto91.bsky.social8 likes and reposts
- Mar 3, 2025📦 microsoft / generative-ai-for-beginners ⭐ 71,760 (+94) 🗒 Jupyter Notebook 21 Lessons, Get Started Building with Generative AI 🔗… — @github-trending.bsky.social5 likes and reposts
- Mar 30, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 76,474 (+159) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social4 likes and reposts
- Nov 22, 2023🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 12,932 (+820) 🗒 Jupyter Notebook 12 Lessons, Get Started… — @github-trending.bsky.social4 likes and reposts · 1 reply
- Aug 11, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 94,469 (+151) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social3 likes and reposts
39 more on Bluesky
- Jul 28, 2025今日のGitHubトレンド microsoft/generative-ai-for-beginners このリポジトリは、生成AIの初心者向けに、アプリケーション構築に必要な知識を21のレッスン形式で提供することを目的としています。… — @dailygithubtrends.bsky.social3 likes and reposts
- May 31, 2025📦 microsoft / generative-ai-for-beginners ⭐ 84,213 (+73) 🗒 Jupyter Notebook 21 Lessons, Get Started Building with Generative AI 🔗… — @github-trending.bsky.social3 likes and reposts
- May 7, 2025Generative AI for Beginners: 21 Lessons teaching everything you need to know to start building Generative AI applications (free) -… — @buckwoodymsft.bsky.social3 likes and reposts
- Apr 26, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 79,971 (+278) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social3 likes and reposts
- Mar 7, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 73,493 (+771) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Oct 17, 2025📦 microsoft / generative-ai-for-beginners ⭐ 100,437 (+98) 🗒 Jupyter Notebook 21 Lessons, Get Started Building with Generative AI — @github-trending.bsky.social2 likes and reposts
- Jul 28, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 93,154 (+190) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social2 likes and reposts
- Jan 23, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 66,777 (+251) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social2 likes and reposts
- Aug 21, 2024🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 60,739 (+399) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Feb 28, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 24,384 (+177) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Aug 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 113,904 (+104) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- Dec 9, 2025📦 microsoft / generative-ai-for-beginners ⭐ 102,867 (+98) 🗒 Jupyter Notebook 21 Lessons, Get Started Building with Generative AI — @github-trending.bsky.social1 likes and repost
- Sep 8, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 97,052 (+115) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- Jun 29, 2025今日のGitHubトレンド microsoft/generative-ai-for-beginners このリポジトリは、生成AIの初心者向けに、アプリケーション構築を始めるために必要な知識を21のレッスン形式で提供することを目的としています。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 26, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 85,784 (+187) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- May 8, 2025Found this on the inter-tubes and wanted to share with others who might want to give it a go.... github.com/microsoft... #Learn the… — @mattulm.bsky.social1 likes and repost
- Apr 30, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 81,531 (+429) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- Apr 29, 2025今日のGitHubトレンド microsoft/generative-ai-for-beginners このリポジトリは、生成AIを初めて学ぶ人向けの学習コンテンツを提供することを目的としています。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 22, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 78,763 (+103) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- Mar 24, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 75,691 (+119) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost
- Mar 24, 2025今日のGitHubトレンド microsoft/generative-ai-for-beginners このリポジトリは、生成AIアプリケーションの構築を始めるために必要な知識を、21のレッスンを通して初学者に教えることを目的としています。 — @dailygithubtrends.bsky.social1 likes and repost
- Mar 6, 2025今日のGitHubトレンド microsoft/generative-ai-for-beginners このリポジトリは、生成AIアプリケーションの構築を始めるために必要な知識を21のレッスンで提供することを目的としています。 初心者向けに、生成AIの基礎を学ぶための教材です。 — @dailygithubtrends.bsky.social1 likes and repost
- Oct 8, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 62,862 (+161) 🗒 Jupyter Notebook 21 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 15, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 47,605 (+146) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 8, 2024🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 46,538 (+296) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost · 1 reply
- Mar 31, 2024(1/2) Generative AI for Beginners Course 🚀 The Generative AI for Beginners course by Microsoft provides an introduction to the foundations… — @ramikrispin.bsky.social1 likes and repost · 1 reply
- Jan 4, 2024📦 microsoft / generative-ai-for-beginners ⭐ 21,434 (+69) 🗒 Jupyter Notebook 12 Lessons, Get Started Building with Generative AI 🔗… — @github-trending.bsky.social1 likes and repost
- Nov 3, 2023🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 2,016 (+784) 🗒 Jupyter Notebook 12 Lessons, Get Started… — @github-trending.bsky.social1 likes and repost · 1 reply
- Oct 20, 2026Stage 2: Build with GenAI Generative AI for Beginners, Microsoft (21 lessons, 121k+ GitHub stars) github.com/microsoft/g... Why: prompts,… — @astrodevil1.bsky.social0 likes and reposts · 1 reply
- Jul 1, 20262️⃣ Google — AI Essentials grow.google/ai-essentials/ 3️⃣ DeepLearning.AI — AI for Everyone www.deeplearning.ai/courses/ai-... 4️⃣… — @hrswati.bsky.social0 likes and reposts · 1 reply
- Jul 3, 2024💎 Hidden Gem! 💎 (1000+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 53,862 (+2,390) 🗒 Jupyter Notebook 18 Lessons, Get… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jun 4, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 44,794 (+114) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Apr 9, 2024Devs: Want to get hands-on with generative AI but not sure where to start? Check out this comprehensive self-guided course broken down into… — @ahrkrak.bsky.social0 likes and reposts · 1 reply
- Apr 5, 2024💎 Hidden Gem! 💎 (1000+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 39,340 (+1,755) 🗒 Jupyter Notebook 18 Lessons, Get… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 31, 2024🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 32,661 (+614) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 21, 2024🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 30,009 (+202) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 8, 2024🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 27,683 (+258) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 4, 2024🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 25,612 (+559) 🗒 Jupyter Notebook 18 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Nov 17, 2023🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / generative-ai-for-beginners ⭐ 6,828 (+609) 🗒 Jupyter Notebook 12 Lessons, Get Started… — @github-trending.bsky.social0 likes and reposts · 1 reply
On GitHub · 43
- Nov 30, 2025image directory handling to create language-specific subdirectories — Azure/co-op-translator1 reaction · 2 comments
- Sep 30, 2025👋 Thanks for contributing @bullet-ant! We will review the pull request and get back to you soon. — Mamalimashayekh/gravity182-swap.coffee-update-cross-dex1 reaction
- Sep 30, 2025Markdown emphasis not handled correctly (en→jp) — Azure/co-op-translator1 reaction · 2 comments
- Sep 26, 2025[Markdown] Bold markers not preserved when wrapping links — Azure/co-op-translator1 reaction · 4 comments
- Sep 25, 2025Broken link (en→ja) — Azure/co-op-translator1 reaction · 2 comments
38 more on GitHub
- Sep 24, 2025HTML `<img>` tag src is not updated during translation — Azure/co-op-translator1 reaction · 4 comments
- Sep 17, 2025Untranslated "Note, that there are~" (en→ja) — Azure/co-op-translator1 reaction · 2 comments
- Sep 16, 2025"[Solution]" in the link is not translated (en→ja) — Azure/co-op-translator1 reaction · 1 comment
- Sep 6, 2025Underscore-based italic formatting is not handled correctly (en→ja) — Azure/co-op-translator1 reaction · 2 comments
- Sep 5, 2025"[generative AI]" in the link is not translated (en→ja) — Azure/co-op-translator1 reaction
- May 1, 2025👋 Thanks for contributing @jabari-max! We will review the issue and get back to you soon. — trustwallet/trust-web3-provider1 reaction
- Feb 12, 2025Hallucinations or Fabrications — microsoft/Generative-AI-for-beginners-dotnet1 reaction · 2 comments
- Nov 28, 2026G Shrikaar Sunder (261105B306034) — R40-T007: prompt-template escaping — worked example with checks [05-advanced-prompts] — S-AI-Final-Projects-SMRU/generative-ai-for-beginners0 reactions
- Nov 26, 2026Ashwin Kalra (2601010453) — R40-T035: tensor-shape contract — offline service adapter [09-building-image-applications] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Pratishtha Kaushik (2601010267) — R40-T038: ranked search with stable ties — boundary-case lesson extension [08-building-search-applications] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Pratishtha Kaushik (2601010267) — R40-T036: trainable-parameter accounting — refactor the teaching example [18-fine-tuning] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Kanishk Khamesra (2601010173) — R40-T045: chat-view state — failure and recovery example [07-building-chat-applications] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Kanishk Khamesra (2601010173) — R40-T041: ranked search with stable ties — runnable concept example [08-building-search-applications] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Gouri Varshney (2601010138) — R40-T047: trainable-parameter accounting — worked example with checks [18-fine-tuning] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions
- Nov 26, 2026Chalasani Surya (2601010098) — R40-T055: retrieval with source attribution — offline service adapter [20-mistral] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions · 1 comment
- Nov 26, 2026Chalasani Surya (2601010098) — R40-T054: chat-view state — invariant and state trace [11-integrating-with-function-calling] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions · 1 comment
- Nov 26, 2026Chalasani Surya (2601010098) — R40-T053: token-budget preflight — compare two approaches [19-slm] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions · 1 comment
- Nov 26, 2026Chalasani Surya (2601010098) — R40-T052: chat-view state — boundary-case lesson extension [11-integrating-with-function-calling] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions · 1 comment
- Nov 26, 2026Chalasani Surya (2601010098) — R40-T051: model-manifest selection — runnable concept example [21-meta] — s-and-ai-ru-2/generative-ai-for-beginners0 reactions · 1 comment
- Nov 5, 2026Add the bundle genai-apps: building applications with generative AI — KaProblem/ptf-library0 reactions
- Oct 12, 2026Angular 23 in June 2027 [ modern angular] — sanjeetkumaritoutlook/angular22-nestjs-monorepo0 reactions
- Jul 2, 2026Update repo table — arran4/arran40 reactions
- Jul 1, 2026Update repo table — arran4/arran40 reactions
- Jun 27, 2026Update repo table — arran4/arran40 reactions
- Jun 25, 2026Update repo table — arran4/arran40 reactions
- Jun 25, 2026Update repo table — arran4/arran40 reactions
- Jun 24, 2026Update repo table — arran4/arran40 reactions
- Jun 23, 2026Update repo table — arran4/arran40 reactions
- Jun 22, 2026Update repo table — arran4/arran40 reactions
- Jun 21, 2026Update repo table — arran4/arran40 reactions
- Jun 5, 2026Update repo table — arran4/arran40 reactions
- May 21, 2026Update repo table — arran4/arran40 reactions
- May 19, 2026feat: narrative Correlation Summary in reader_mode — jmservera/SquadScope0 reactions
- Apr 29, 2026Update repo table — arran4/arran40 reactions
- Mar 11, 2026Curso building with Gen AI — MarioCodes/dotnet-ai-experiments0 reactions · 3 comments
- Mar 11, 2026Curso Gen AI 4 Beginners — MarioCodes/dotnet-ai-experiments0 reactions
- Jul 27, 2025Lecture: Resources — Artificial-Intelligence-HSBI-TDU/KI-Vorlesung0 reactions
- May 30, 2025https://github.com/microsoft/generative-ai-for-beginners/ — SreeCharan1234/Alzheimer-MRI-Classification0 reactions
On Hacker News · 7
- Feb 23, 2024Generative AI for Beginners – Version 24 points
- Jul 4, 2024Generative-AI-for-Beginners: 18 Lessons, Get Started Building with Generative AI2 points
- Jun 27, 2024Generative AI for Beginners – Full Video Series2 points
- Mar 5, 2024Generative AI for Beginners – 18 Lessons2 points
- Nov 7, 2023Lessons on everything you need to know to start building Gen AI apps2 points
2 more on Hacker News
- Oct 31, 2023Generative AI for Beginners via Microsoft AI Services2 points · 1 comment
- Mar 7, 2025Generative-AI-for-beginners: 21 Lessons1 point
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- translations/ar/AGENTS.mdAGENTS.md
- translations/bg/AGENTS.mdAGENTS.md
- translations/bn/AGENTS.mdAGENTS.md
- translations/cs/AGENTS.mdAGENTS.md
- translations/da/AGENTS.mdAGENTS.md
- translations/de/AGENTS.mdAGENTS.md
- translations/el/AGENTS.mdAGENTS.md
- translations/en/AGENTS.mdAGENTS.md
- translations/es/AGENTS.mdAGENTS.md
- translations/et/AGENTS.mdAGENTS.md
- translations/fa/AGENTS.mdAGENTS.md
- translations/fi/AGENTS.mdAGENTS.md
- translations/fr/AGENTS.mdAGENTS.md
- translations/he/AGENTS.mdAGENTS.md
- translations/hi/AGENTS.mdAGENTS.md
- translations/hr/AGENTS.mdAGENTS.md
- translations/hu/AGENTS.mdAGENTS.md
- translations/id/AGENTS.mdAGENTS.md
- translations/it/AGENTS.mdAGENTS.md
- translations/km/AGENTS.mdAGENTS.md
- translations/kn/AGENTS.mdAGENTS.md
- translations/ko/AGENTS.mdAGENTS.md
- translations/lt/AGENTS.mdAGENTS.md
- translations/ml/AGENTS.mdAGENTS.md
- translations/mr/AGENTS.mdAGENTS.md
- translations/ms/AGENTS.mdAGENTS.md
- translations/my/AGENTS.mdAGENTS.md
- translations/ne/AGENTS.mdAGENTS.md
- translations/nl/AGENTS.mdAGENTS.md
- translations/no/AGENTS.mdAGENTS.md
- translations/pa/AGENTS.mdAGENTS.md
- translations/pcm/AGENTS.mdAGENTS.md
- translations/pl/AGENTS.mdAGENTS.md
- translations/pt-BR/AGENTS.mdAGENTS.md
- translations/pt-PT/AGENTS.mdAGENTS.md
- translations/ro/AGENTS.mdAGENTS.md
- translations/ru/AGENTS.mdAGENTS.md
- translations/sk/AGENTS.mdAGENTS.md
- translations/sl/AGENTS.mdAGENTS.md
- translations/sr/AGENTS.mdAGENTS.md
- translations/sv/AGENTS.mdAGENTS.md
- translations/sw/AGENTS.mdAGENTS.md
- translations/ta/AGENTS.mdAGENTS.md
- translations/te/AGENTS.mdAGENTS.md
- translations/th/AGENTS.mdAGENTS.md
- translations/tl/AGENTS.mdAGENTS.md
- translations/tr/AGENTS.mdAGENTS.md
- translations/uk/AGENTS.mdAGENTS.md
- translations/ur/AGENTS.mdAGENTS.md
- translations/vi/AGENTS.mdAGENTS.md
- translations/zh-CN/AGENTS.mdAGENTS.md
- translations/zh-HK/AGENTS.mdAGENTS.md
- translations/zh-MO/AGENTS.mdAGENTS.md
- translations/zh-TW/AGENTS.mdAGENTS.md
- azure-openai-to-responsesSkill
The file
Files
AGENTS.md
プロジェクト概要
このリポジトリには、生成AIの基礎と応用開発を教える21回の包括的なカリキュラムが含まれています。このコースは初心者向けに設計されており、基本概念から本番対応アプリケーションの構築までを網羅しています。
主要技術:
- ライブラリ付きPython 3.9+:
openai、python-dotenv、tiktoken、azure-ai-inference、pandas、numpy、matplotlib - Node.js用TypeScript/JavaScriptとライブラリ:
openai(Azure OpenAIのv1エンドポイント+Responses API)、@azure-rest/ai-inference(Microsoft Foundry Models) - Azure OpenAI Service、OpenAI API、Microsoft Foundry Models(GitHub Modelsは2026年7月末で廃止予定)
- インタラクティブラーニング用Jupyterノートブック
- 一貫した開発環境のためのDev Containers
リポジトリ構成:
- 21の番号付きレッスンディレクトリ(00-21)にはREADME、コード例、課題を含む
- 複数の実装:Python、TypeScript、時に.NET例
- 40以上の言語版を含むtranslationsディレクトリ
.envファイルによる集中設定(テンプレートとして.env.copyを使用)
セットアップコマンド
初期リポジトリセットアップ
# リポジトリをクローンする
git clone https://github.com/microsoft/generative-ai-for-beginners.git
cd generative-ai-for-beginners
# 環境テンプレートをコピーする
cp .env.copy .env
# APIキーとエンドポイントを含む.envファイルを編集するPython環境セットアップ
# 仮想環境を作成する
python3 -m venv venv
# 仮想環境を有効にする
# macOS/Linuxの場合:
source venv/bin/activate
# Windowsの場合:
venv\Scripts\activate
# 依存関係をインストールする
pip install -r requirements.txtNode.js/TypeScriptセットアップ
# ルートレベルの依存関係をインストールします(ドキュメント用ツールのため)
npm install
# 個々のレッスンのTypeScript例については、特定のレッスンに移動してください:
cd 06-text-generation-apps/typescript/recipe-app
npm installDev Containerセットアップ(推奨)
このリポジトリにはGitHub CodespacesやVS Code Dev Containers用の.devcontainer設定が含まれています:
- GitHub CodespacesまたはDev Containers拡張付きVS Codeでリポジトリを開く
- Dev Containerが自動的に以下を行います:
requirements.txtからPython依存関係をインストール- ポストクリエイトスクリプト(
.devcontainer/post-create.sh)を実行 - Jupyterカーネルをセットアップ
開発ワークフロー
環境変数
APIアクセスを必要とするすべてのレッスンは.envで定義された環境変数を使用します:
OPENAI_API_KEY- OpenAI API用AZURE_OPENAI_API_KEY- Microsoft FoundryのAzure OpenAI用(Azure OpenAI Serviceは現在Microsoft Foundryの一部です: https://ai.azure.com)AZURE_OPENAI_ENDPOINT- Azure OpenAIエンドポイントURL(Foundryリソースエンドポイント)AZURE_OPENAI_DEPLOYMENT- チャット完了モデルのデプロイ名(コースデフォルト:gpt-5-mini)AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT- 埋め込みモデルのデプロイ名(コースデフォルト:text-embedding-3-small)AZURE_OPENAI_API_VERSION- APIバージョン(デフォルト:2024-10-21)HUGGING_FACE_API_KEY- Hugging Faceモデル用AZURE_INFERENCE_ENDPOINT- Microsoft Foundry Modelsエンドポイント(マルチプロバイダモデルカタログ)AZURE_INFERENCE_CREDENTIAL- Microsoft Foundry Models APIキー(廃止予定のGITHUB_TOKENに代わるもの)AZURE_INFERENCE_CHAT_MODEL- サンプリング制御をサポートしない推論モデル以外のモデル(例:Llama-3.3-70B-Instruct)、temperature例で使用
モデルの慣例(重要)
- デフォルトチャットモデルは
gpt-5-mini<strong>- 現行の非廃止済みの</strong>推論モデル。2026年時点で古いgpt-4o-mini、gpt-4.1-miniの温度対応モデルは<em>廃止予定</em>なので、カリキュラムはGPT-5系に標準化しています。 - 推論モデルは
temperatureやtop_pを拒否し、max_output_tokens(Responses API)/max_completion_tokens(チャット完了)をmax_tokensの代わりに使用しています。gpt-5-miniを呼び出すサンプルにはtemperature/top_p/max_tokensを追加しないでください。 temperatureを示すために<strong>、サンプルはMicrosoft Foundry Modelsエンドポイントの</strong>Llamaモデル(Llama-3.3-70B-Instruct)を使用し(AZURE_INFERENCE_CHAT_MODEL)、推論モデルはプロンプトエンジニアリング+推論制御で操作し、サンプリングノブは使いません。<strong>ファインチューニング(レッスン18)</strong>はgpt-4.1-miniを保持:GPT-5は強化学習ファインチューニング(RFT)のみ対応し、そこで示された教師ありファインチューニング(SFT)は非対応です。- レッスン20(Mistral)と21(Meta)は
temperature/max_tokensを保持、対象モデルであるMistral/Llamaはこれをサポートしています。
Python例の実行方法
# レッスンディレクトリに移動する
cd 06-text-generation-apps/python
# Pythonスクリプトを実行する
python aoai-app.pyTypeScript例の実行方法
# TypeScriptアプリのディレクトリに移動する
cd 06-text-generation-apps/typescript/recipe-app
# TypeScriptコードをビルドする
npm run build
# アプリケーションを実行する
npm startJupyterノートブックの実行方法
# リポジトリのルートでJupyterを開始する
jupyter notebook
# またはJupyter拡張機能を使用してVS Codeを使用する複数タイプのレッスンでの作業
- 「学ぶ」レッスン:README.mdのドキュメントと概念に注力
- 「作る」レッスン:PythonとTypeScriptの動作するコード例を含む
- 各レッスンには理論、コード解説、ビデオリンクを含むREADME.mdがある
コードスタイルガイドライン
Python
- 環境変数管理に
python-dotenvを使用 - API操作に
openaiライブラリをインポート - リンターに
pylintを使用(一部例では簡易のため# pylint: disable=allあり) - PEP 8のネーミング規約に従う
- API認証情報は
.envに保存し、コード内には記述しない
TypeScript
- 環境変数に
dotenvパッケージを使用 - 各アプリで
tsconfig.jsonにてTypeScript設定 - Azure OpenAIには
openaiパッケージ(クライアントを/openai/v1/エンドポイントに設定しclient.responses.create呼び出し)、Microsoft Foundry Modelsには@azure-rest/ai-inferenceを使用 - 開発には
nodemonで自動リロード - 実行前に
npm run build、次にnpm start
一般的慣例
- コード例はシンプルかつ教育的に
- 主要概念はコメントで説明
- 各レッスンのコードは自己完結的で実行可能
- Azure OpenAIには
aoai-プレフィックス、OpenAI APIにはoai-、Microsoft Foundry Modelsにはgithubmodels-プレフィックス(GitHub Models時代からのレガシーネーム)を使う
ドキュメントガイドライン
Markdownスタイル
- URLはすべて
[text](../../url)形式で余分なスペースなしに記述 - 相対リンクは
./または../から始める - Microsoftドメインのリンクには追跡ID
?WT.mc_id=academic-105485-koreystを必ず含める - 国別ロケールはURLに含めない(例:
/en-us/は避ける) - 画像は
./imagesフォルダーに説明的な名前で保存 - ファイル名は英数字とダッシュのみ使用
翻訳サポート
- リポジトリは40言語以上のGitHub Actionsによる自動翻訳をサポート
- 翻訳は
translations/ディレクトリに格納 - 部分翻訳は提出しない
- 機械翻訳は受け付けない
- 翻訳済み画像は
translated_images/ディレクトリに保存
テストと検証
提出前チェック
このリポジトリは検証にGitHub Actionsを使用しています。PRを提出する前に:
- Markdownリンクをチェック:
# validate-markdown.yml ワークフローは以下をチェックします: # - 壊れた相対パス # - パスのトラッキングIDの欠如 # - URLのトラッキングIDの欠如 # - 国別ロケール付きURL # - 壊れた外部URL <strong>手動テスト</strong>:- Python例をテスト:仮想環境をアクティブにしてスクリプトを実行
- TypeScript例をテスト:
npm install、npm run build、npm start - 環境変数が正しく設定されているか確認
- APIキーがコード例で機能するか確認
<strong>コード例</strong>:- 全てのコードがエラーなしで動作するか確認
- 対応する場合はAzure OpenAIとOpenAI API両方でテスト
- Microsoft Foundry Models対応例も検証
自動化テストは無し
このリポジトリはチュートリアルと例に焦点を当てた教育用で、ユニットテストや統合テストはありません。検証は主に:
- コード例の手動テスト
- Markdown検証のためのGitHub Actions
- 教育コンテンツのコミュニティレビュー
プルリクエストガイドライン
提出前に
- 可能な場合はPythonとTypeScript両方でコード変更をテスト
- Markdown検証を実行(PRで自動トリガー)
- MicrosoftのURLに追跡IDがあることを確認
- 相対リンクが正しいことを確認
- 画像の参照が正しいか確認
PRタイトル形式
- 説明的なタイトルを使う:例
[Lesson 06] Python例のタイポ修正またはレッスン08のREADME更新 - 該当する場合はイシュー番号を参照:
Fixes #123
PR説明
- 何が変更され、なぜかを説明
- 関連するイシューへのリンク
- コード変更の場合、どの例をテストしたかを明記
- 翻訳PRの場合は完全な翻訳のためすべてのファイルを含める
貢献要件
- Microsoft CLAに署名(初回PRで自動的に)
- 変更前にリポジトリをフォーク
- 論理的な変更ごとに1つのPR(無関係な修正をまとめない)
- 可能な限りPRは集中かつ小規模に保つ
よくあるワークフロー
新しいコード例の追加
- 該当のレッスンディレクトリに移動
python/またはtypescript/サブディレクトリに例を作成- 命名規則に従う:
{provider}-{example-name}.{py|ts|js} - 実際のAPI認証情報でテスト
- 新しい環境変数があればレッスンREADMEに記述
ドキュメントの更新
- レッスンディレクトリのREADME.mdを編集
- Markdownガイドラインに従う(追跡ID、相対リンク)
- 翻訳はGitHub Actionsで処理(手動編集禁止)
- リンクがすべて有効かテスト
Dev Containersの利用
- リポジトリには
.devcontainer/devcontainer.jsonが含まれる - ポストクリエイトスクリプトでPython依存関係自動インストール
- PythonとJupyter用の拡張が事前設定済み
- 環境は
mcr.microsoft.com/devcontainers/universal:2.11.2ベース
デプロイと公開
これは学習用リポジトリであり、デプロイプロセスはありません。カリキュラムは以下で利用されます:
- GitHubリポジトリ:コードとドキュメントに直接アクセス
- GitHub Codespaces:事前設定済みの即時開発環境
- Microsoft Learn:公式学習プラットフォームへ配信される可能性
- docsify:Markdownから構築されたドキュメントサイト(
docsifytopdf.jsとpackage.jsonを参照)
ドキュメントサイトの構築
# ドキュメントからPDFを生成(必要に応じて)
npm run convertトラブルシューティング
よくある問題
Pythonインポートエラー:
- 仮想環境がアクティブか確認
pip install -r requirements.txtを実行- Pythonバージョンが3.9以上か確認
TypeScriptビルドエラー:
- 該当アプリディレクトリで
npm installを実行 - Node.jsバージョンが対応しているか確認
node_modulesをクリアし再インストールを試みる
API認証エラー:
.envファイルが存在し正しい値か確認- APIキーが有効か期限切れでないか確認
- エンドポイントURLが地域に合っているか確認
<strong>環境変数が不足している場合</strong>:
.env.copyを.envにコピー- 作業中のレッスンに必要な値をすべて填入
.envを更新後アプリを再起動
追加リソース
- Course Setup Guide
- Contributing Guidelines
- Code of Conduct
- Security Policy
- Azure AI Discord
- Collection of Advanced Code Samples
プロジェクト特記事項
- これは
<strong>教育用リポジトリ</strong>であり、本番コードではありません - 例は意図的にシンプルで概念理解に集中しています
- コードの品質は教育的明瞭性とバランスを取っています
- 各レッスンは自己完結型で独立して完了可能
- 複数のAPIプロバイダをサポート:Azure OpenAI、OpenAI、Microsoft Foundry Models、Foundry LocalやOllamaなどのオフラインプロバイダも含む
- コンテンツは多言語対応で自動翻訳ワークフローを採用
- Discord上に活発なコミュニティがあり、質問やサポートが可能
<!-- CO-OP TRANSLATOR DISCLAIMER START -->免責事項: 本書類は AI 翻訳サービス Co-op Translator を使用して翻訳されています。正確性を期していますが、自動翻訳には誤りや不正確な部分が含まれる可能性があることをご承知おきください。原文の原語版が正式な情報源とみなされるべきです。重要な情報については、専門の人間による翻訳を推奨します。本翻訳の利用により生じたいかなる誤解や解釈違いについても、当方は責任を負いかねます。
<!-- CO-OP TRANSLATOR DISCLAIMER END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

