generative-ai-for-beginners / vi
AGENTS.md121k starsChanged 5 months agoMITView on GitHub
Kho lưu trữ này chứa một chương trình giảng dạy toàn diện gồm 21 bài học về các kiến thức cơ bản và phát triển ứng dụng AI Tổng hợp. Khóa học dành cho người mới bắt đầu và bao quát mọi thứ từ các khái niệm cơ bản đến xây dựng các ứng dụng sẵn sàng đưa vào sản xuất. Công nghệ chính: - Python 3.9+ với các thư viện: openai, python-dotenv, tiktoken, azure-ai-inference, pandas, numpy, matplotlib - TypeScript/JavaScript…
- 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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
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/ja/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/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
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 139
Import thư viện openai để tương tác API
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Tổng quan dự án
Kho lưu trữ này chứa một chương trình giảng dạy toàn diện gồm 21 bài học về các kiến thức cơ bản và phát triển ứng dụng AI Tổng hợp. Khóa học dành cho người mới bắt đầu và bao quát mọi thứ từ các khái niệm cơ bản đến xây dựng các ứng dụng sẵn sàng đưa vào sản xuất.
Công nghệ chính:
- Python 3.9+ với các thư viện:
openai,python-dotenv,tiktoken,azure-ai-inference,pandas,numpy,matplotlib - TypeScript/JavaScript với Node.js và các thư viện:
openai(Azure OpenAI qua endpoint v1 + Responses API),@azure-rest/ai-inference(Microsoft Foundry Models) - Dịch vụ Azure OpenAI, OpenAI API, và Microsoft Foundry Models (GitHub Models sẽ ngừng hoạt động vào cuối tháng 7 năm 2026)
- Jupyter Notebooks cho học tập tương tác
- Dev Containers cho môi trường phát triển nhất quán
Cấu trúc kho lưu trữ:
- 21 thư mục bài học đánh số (00-21) chứa README, ví dụ mã, và bài tập
- Nhiều triển khai: Python, TypeScript, và đôi khi có ví dụ .NET
- Thư mục bản dịch với hơn 40 phiên bản ngôn ngữ
- Cấu hình tập trung qua tệp
.env(dùng.env.copylàm mẫu)
Lệnh Thiết lập
Thiết lập kho lưu trữ ban đầu
# Sao chép kho lưu trữ
git clone https://github.com/microsoft/generative-ai-for-beginners.git
cd generative-ai-for-beginners
# Sao chép mẫu môi trường
cp .env.copy .env
# Chỉnh sửa .env với khóa API và điểm cuối của bạnThiết lập môi trường Python
# Tạo môi trường ảo
python3 -m venv venv
# Kích hoạt môi trường ảo
# Trên macOS/Linux:
source venv/bin/activate
# Trên Windows:
venv\Scripts\activate
# Cài đặt các phụ thuộc
pip install -r requirements.txtThiết lập Node.js/TypeScript
# Cài đặt các phụ thuộc cấp root (cho công cụ tài liệu)
npm install
# Đối với các ví dụ TypeScript của từng bài học, điều hướng đến bài học cụ thể:
cd 06-text-generation-apps/typescript/recipe-app
npm installThiết lập Dev Container (Khuyến nghị)
Kho lưu trữ bao gồm cấu hình .devcontainer cho GitHub Codespaces hoặc VS Code Dev Containers:
- Mở kho lưu trữ trong GitHub Codespaces hoặc VS Code với tiện ích Dev Containers
- Dev Container sẽ tự động:
- Cài đặt các phụ thuộc Python từ
requirements.txt - Chạy script post-create (
.devcontainer/post-create.sh) - Thiết lập kernel Jupyter
- Cài đặt các phụ thuộc Python từ
Quy trình phát triển
Biến môi trường
Tất cả các bài học cần truy cập API sử dụng các biến môi trường được định nghĩa trong .env:
OPENAI_API_KEY- Dùng cho OpenAI APIAZURE_OPENAI_API_KEY- Dùng cho Azure OpenAI trong Microsoft Foundry (Dịch vụ Azure OpenAI hiện thuộc Microsoft Foundry: https://ai.azure.com)AZURE_OPENAI_ENDPOINT- URL endpoint Azure OpenAI (endpoint tài nguyên Foundry)AZURE_OPENAI_DEPLOYMENT- Tên triển khai mô hình chat completion (mặc định khóa học:gpt-5-mini)AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT- Tên triển khai mô hình embeddings (mặc định khóa học:text-embedding-3-small)AZURE_OPENAI_API_VERSION- Phiên bản API (mặc định:2024-10-21)HUGGING_FACE_API_KEY- Dùng cho các mô hình Hugging FaceAZURE_INFERENCE_ENDPOINT- Endpoint Microsoft Foundry Models (catalog mô hình đa nhà cung cấp)AZURE_INFERENCE_CREDENTIAL- Khóa API Microsoft Foundry Models (thay thếGITHUB_TOKENsắp ngừng hoạt động)AZURE_INFERENCE_CHAT_MODEL- Một mô hình không suy luận (ví dụ:Llama-3.3-70B-Instruct) dùng trong các ví dụtemperature, vì các mô hình suy luận không hỗ trợ các điều khiển sampling
Quy ước mô hình (quan trọng)
- Mô hình chat mặc định là
gpt-5-mini- một mô hình suy luận hiện tại, chưa bị loại bỏ. Tính đến năm 2026 các mô hình "mini" hỗ trợ nhiệt độ cũ hơn (gpt-4o-mini,gpt-4.1-mini) đang bị loại bỏ, vì vậy chương trình chuẩn hóa sử dụng dòng GPT-5. - Các mô hình suy luận không chấp nhận
temperaturevàtop_p, thay vào đó sử dụngmax_output_tokens(Responses API) /max_completion_tokens(chat completions) thay chomax_tokens. Không thêm các tham sốtemperature/top_p/max_tokensvào các mẫu gọigpt-5-mini. - Để minh họa
temperature, các mẫu dùng mô hình Llama (Llama-3.3-70B-Instruct) qua endpoint Microsoft Foundry Models (AZURE_INFERENCE_CHAT_MODEL). Điều khiển mô hình suy luận bằng kỹ thuật prompt và các điều khiển suy luận thay vì núm sampling. - Fine-tuning (bài 18) giữ
gpt-4.1-mini: GPT-5 chỉ hỗ trợ fine-tuning gia cường (RFT), không hỗ trợ fine-tuning giám sát (SFT) như đã trình bày. - Bài 20 (Mistral) và 21 (Meta) giữ
temperature/max_tokensvì chúng nhắm vào mô hình Mistral/Llama, vốn hỗ trợ các tham số đó.
Chạy ví dụ Python
# Điều hướng đến thư mục bài học
cd 06-text-generation-apps/python
# Chạy một tập lệnh Python
python aoai-app.pyChạy ví dụ TypeScript
# Điều hướng đến thư mục ứng dụng TypeScript
cd 06-text-generation-apps/typescript/recipe-app
# Xây dựng mã TypeScript
npm run build
# Chạy ứng dụng
npm startChạy Jupyter Notebooks
# Khởi động Jupyter ở thư mục gốc của kho lưu trữ
jupyter notebook
# Hoặc sử dụng VS Code với tiện ích mở rộng JupyterLàm việc với các loại bài học khác nhau
- Bài học "Học": Tập trung vào tài liệu README.md và các khái niệm
- Bài học "Xây dựng": Bao gồm ví dụ mã hoạt động bằng Python và TypeScript
- Mỗi bài học có README.md với lý thuyết, giải thích mã, và liên kết đến nội dung video
Hướng dẫn phong cách mã
Python
- Sử dụng
python-dotenvđể quản lý biến môi trường - Import thư viện
openaiđể tương tác API - Dùng
pylintđể đánh giá mã (một số ví dụ có# pylint: disable=allđể đơn giản) - Tuân theo quy ước đặt tên PEP 8
- Lưu trữ thông tin API trong tệp
.env, không lưu trong mã nguồn
TypeScript
- Dùng gói
dotenvđể quản lý biến môi trường - Cấu hình TypeScript trong
tsconfig.jsoncho từng ứng dụng - Dùng gói
openaicho Azure OpenAI (chỉ định client tới endpoint/openai/v1/và gọiclient.responses.create); dùng@azure-rest/ai-inferencecho Microsoft Foundry Models - Sử dụng
nodemonđể phát triển với tự động tải lại - Xây dựng trước khi chạy:
npm run buildrồinpm start
Quy ước chung
- Giữ ví dụ mã đơn giản và mang tính giáo dục
- Bao gồm các chú thích giải thích các khái niệm chính
- Mã của mỗi bài học phải tự chứa và có thể chạy được
- Sử dụng đặt tên nhất quán: tiền tố
aoai-cho Azure OpenAI,oai-cho OpenAI API,githubmodels-cho Microsoft Foundry Models (giữ tiền tố cũ từ thời GitHub Models)
Hướng dẫn tài liệu
Phong cách Markdown
- Tất cả URL phải được bọc trong định dạng
[text](../../url)không có khoảng trắng thừa - Các liên kết tương đối phải bắt đầu bằng
./hoặc../ - Tất cả liên kết tới miền Microsoft phải bao gồm ID theo dõi:
?WT.mc_id=academic-105485-koreyst - Không dùng địa phương quốc gia trong URL (tránh
/en-us/) - Hình ảnh được lưu trong thư mục
./imagesvới tên mô tả - Dùng ký tự tiếng Anh, số và dấu gạch ngang trong tên file
Hỗ trợ dịch thuật
- Kho lưu trữ hỗ trợ hơn 40 ngôn ngữ thông qua GitHub Actions tự động
- Bản dịch lưu trong thư mục
translations/ - Không gửi bản dịch chưa hoàn chỉnh
- Không chấp nhận dịch máy
- Hình ảnh đã được dịch lưu trong thư mục
translated_images/
Kiểm thử và xác minh
Kiểm tra trước khi gửi
Kho lưu trữ sử dụng GitHub Actions để xác minh. Trước khi gửi PR:
- Kiểm tra liên kết Markdown:
# Quy trình làm việc validate-markdown.yml kiểm tra: # - Đường dẫn tương đối bị hỏng # - Thiếu ID theo dõi trên các đường dẫn # - Thiếu ID theo dõi trên các URL # - URL có ngôn ngữ quốc gia # - URL bên ngoài bị hỏng - Kiểm thử thủ công:
- Thử ví dụ Python: Kích hoạt venv và chạy script
- Thử ví dụ TypeScript:
npm install,npm run build,npm start - Xác nhận biến môi trường được cấu hình đúng
- Kiểm tra các khóa API hoạt động trong ví dụ mã
- Ví dụ mã:
- Đảm bảo tất cả mã chạy không lỗi
- Thử với cả Azure OpenAI và OpenAI API khi có thể
- Xác nhận ví dụ dùng được với Microsoft Foundry Models khi hỗ trợ
Không có kiểm thử tự động
Đây là kho lưu trữ giáo dục tập trung vào bài học và ví dụ. Không có kiểm thử đơn vị hay kiểm thử tích hợp. Xác minh chủ yếu là:
- Kiểm thử thủ công các ví dụ mã
- GitHub Actions để kiểm tra Markdown
- Đánh giá nội dung học tập bởi cộng đồng
Hướng dẫn Pull Request
Trước khi gửi
- Kiểm thử thay đổi mã trong cả Python và TypeScript khi có thể
- Chạy kiểm tra Markdown (tự động chạy khi PR)
- Đảm bảo có ID theo dõi trên tất cả URL Microsoft
- Kiểm tra các liên kết tương đối hợp lệ
- Xác minh tham chiếu hình ảnh chính xác
Định dạng tiêu đề PR
- Dùng tiêu đề mô tả:
[Lesson 06] Sửa lỗi chính tả ví dụ PythonhoặcCập nhật README cho bài 08 - Tham chiếu số issue nếu có:
Fixes #123
Mô tả PR
- Giải thích thay đổi gì và tại sao
- Liên kết tới các issue liên quan
- Với thay đổi mã, chỉ rõ các ví dụ đã thử nghiệm
- Với PR dịch thuật, bao gồm tất cả file để bản dịch đầy đủ
Yêu cầu đóng góp
- Ký Microsoft CLA (tự động khi PR đầu tiên)
- Fork kho lưu trữ vào tài khoản của bạn trước khi thay đổi
- Một PR cho một thay đổi logic (không gộp các sửa chữa không liên quan)
- Giữ PR tập trung và nhỏ nếu có thể
Quy trình thường gặp
Thêm ví dụ mã mới
- Điều hướng tới thư mục bài học tương ứng
- Tạo ví dụ trong thư mục con
python/hoặctypescript/ - Tuân theo quy ước đặt tên:
{provider}-{example-name}.{py|ts|js} - Thử với thông tin đăng nhập API thực tế
- Ghi chú các biến môi trường mới trong README bài học
Cập nhật tài liệu
- Chỉnh sửa README.md trong thư mục bài học
- Tuân thủ hướng dẫn Markdown (ID theo dõi, liên kết tương đối)
- Cập nhật bản dịch được xử lý bởi GitHub Actions (không chỉnh sửa thủ công)
- Kiểm tra mọi liên kết đều hợp lệ
Làm việc với Dev Containers
- Kho lưu trữ bao gồm
.devcontainer/devcontainer.json - Script post-create tự động cài đặt phụ thuộc Python
- Tiện ích mở rộng Python và Jupyter đã được cấu hình sẵn
- Môi trường dựa trên
mcr.microsoft.com/devcontainers/universal:2.11.2
Triển khai và Xuất bản
Đây là kho học tập - không có quy trình triển khai. Chương trình được sử dụng qua:
- Kho GitHub: Truy cập trực tiếp mã và tài liệu
- GitHub Codespaces: Môi trường phát triển tức thì với thiết lập sẵn
- Microsoft Learn: Nội dung có thể được phát hành trên nền tảng học chính thức
- docsify: Trang tài liệu xây dựng từ Markdown (xem
docsifytopdf.jsvàpackage.json)
Xây dựng trang tài liệu
# Tạo PDF từ tài liệu (nếu cần)
npm run convertKhắc phục sự cố
Vấn đề thường gặp
Lỗi import Python:
- Đảm bảo môi trường ảo được kích hoạt
- Chạy
pip install -r requirements.txt - Kiểm tra phiên bản Python là 3.9+
Lỗi build TypeScript:
- Chạy
npm installtrong thư mục ứng dụng cụ thể - Kiểm tra phiên bản Node.js tương thích
- Xoá thư mục
node_modulesvà cài lại nếu cần thiết
Lỗi xác thực API:
- Xác nhận tệp
.envtồn tại và có giá trị đúng - Kiểm tra các khóa API hợp lệ và chưa hết hạn
- Đảm bảo URL endpoint đúng vùng của bạn
Thiếu biến môi trường:
- Sao chép
.env.copythành.env - Điền đầy đủ các giá trị cần thiết cho bài học bạn đang làm
- Khởi động lại ứng dụng sau khi cập nhật
.env
Tài nguyên bổ sung
- Hướng dẫn thiết lập khóa học
- Hướng dẫn đóng góp
- Bộ quy tắc ứng xử
- Chính sách bảo mật
- Discord Azure AI
- Bộ sưu tập ví dụ mã nâng cao
Ghi chú riêng về dự án
- Đây là kho lưu trữ giáo dục tập trung vào học tập, không phải mã sản xuất
- Ví dụ được thiết kế đơn giản và tập trung vào giảng dạy khái niệm
- Chất lượng mã được cân bằng với độ rõ ràng giáo dục
- Mỗi bài học là tự chứa và có thể hoàn thành độc lập
- Kho hỗ trợ nhiều nhà cung cấp API: Azure OpenAI, OpenAI, Microsoft Foundry Models, và nhà cung cấp ngoại tuyến như Foundry Local và Ollama
- Nội dung đa ngôn ngữ với quy trình dịch tự động
- Cộng đồng hoạt động trên Discord để hỏi đáp và hỗ trợ
<!-- CO-OP TRANSLATOR DISCLAIMER START -->Tuyên bố miễn trừ trách nhiệm: Tài liệu này đã được dịch bằng dịch vụ dịch thuật AI Co-op Translator. Mặc dù chúng tôi cố gắng đảm bảo độ chính xác, xin lưu ý rằng bản dịch tự động có thể chứa lỗi hoặc sai sót. Tài liệu gốc bằng ngôn ngữ gốc nên được coi là nguồn tin chính thức. Đối với thông tin quan trọng, nên sử dụng dịch vụ dịch thuật chuyên nghiệp bởi con người. Chúng tôi không chịu trách nhiệm về bất kỳ hiểu lầm hoặc giải thích sai nào phát sinh từ việc sử dụng bản dịch này.
<!-- 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.

