开源雷达
返回全部项目

generative-ai-for-beginners

AI 应用与智能体

microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

aiazurechatgptdall-egenerative-aigenerativeaigptlanguage-modelllmsmicrosoft-for-beginnersopenaiprompt-engineering

复现步骤

按顺序执行即可在本地跑起来;具体参数以项目 README 为准。

  1. 1

    克隆仓库到本地

    git clone --depth 1 https://github.com/microsoft/generative-ai-for-beginners.git
    cd generative-ai-for-beginners
  2. 2

    创建虚拟环境并安装 Python 依赖。只有 pyproject.toml / setup.py 而没有 requirements.txt 时,改用 pip install -e .

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. 3

    安装 Node 依赖并启动开发服务

    npm install && npm run dev

为什么这个项目容易复现

50
稍作配置
  • README 内容较完整
  • 有明确的依赖清单,环境可还原
  • 有独立文档目录
  • 有测试,质量更有保障
  • MIT 许可证,可放心使用
  • 两周内仍在活跃更新

项目 README

Generative AI For Beginners

21 Lessons teaching everything you need to know to start building Generative AI applications

GitHub license GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

GitHub watchers GitHub forks GitHub stars

Microsoft Foundry Discord

🌐 Multi-Language Support

Supported via GitHub Action (Automated & Always Up-to-Date)

Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Khmer | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese

Prefer to Clone Locally?

This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:

Bash / macOS / Linux:

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):

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"

This gives you everything you need to complete the course with a much faster download.

Generative AI for Beginners (Version 3) - A Course

Learn the fundamentals of building Generative AI applications with our 21-lesson comprehensive course by Microsoft Cloud Advocates.

🌱 Getting Started

This course has 21 lessons. Each lesson covers its own topic so start wherever you like!

Lessons are labeled either "Learn" lessons explaining a Generative AI concept or "Build" lessons that explain a concept and code examples in both Python and TypeScript when possible.

For .NET Developers checkout Generative AI for Beginners (.NET Edition)!

Each lesson also includes a "Keep Learning" section with additional learning tools.

What You Need

To run the code of this course, you can use either:

We have created a Course Setup lesson to help you with setting up your development environment.

Don't forget to star (🌟) this repo to find it easier later.

🧠 Ready to Deploy?

If you are looking for more advanced code samples, check out our collection of Generative AI Code Samples in both Python and TypeScript.

🗣️ Meet Other Learners, Get Support

Join our official Microsoft Foundry Discord server to meet and network with other learners taking this course and get support.

Ask questions or share product feedback in our Microsoft Foundry Developer Forum on Github.

🚀 Building a Startup?

Visit Microsoft for Startups to find out how to get started building with Azure credits today.

🙏 Want to help?

Do you have suggestions or found spelling or code errors? Raise an issue or Create a pull request

📂 Each lesson includes:

  • A short video introduction to the topic
  • A written lesson located in the README
  • Python and TypeScript code samples supporting Azure OpenAI and OpenAI API
  • Links to extra resources to continue your learning

🗃️ Lessons

#Lesson LinkDescriptionVideoExtra Learning
00Course SetupLearn: How to Setup Your Development EnvironmentVideo Coming SoonLearn More
01Introduction to Generative AI and LLMsLearn: Understanding what Generative AI is and how Large Language Models (LLMs) work.VideoLearn More
02Exploring and comparing different LLMsLearn: How to select the right model for your use caseVideoLearn More
03Using Generative AI ResponsiblyLearn: How to build Generative AI Applications responsiblyVideoLearn More
04Understanding Prompt Engineering FundamentalsLearn: Hands-on Prompt Engineering Best PracticesVideoLearn More
05Creating Advanced PromptsLearn: How to apply prompt engineering techniques that improve the outcome of your prompts.VideoLearn More
06Building Text Generation ApplicationsBuild: A text generation app using Azure OpenAI / OpenAI APIVideoLearn More
07Building Chat ApplicationsBuild: Techniques for efficiently building and integrating chat applications.VideoLearn More
08Building Search Apps Vector DatabasesBuild: A search application that uses Embeddings to search for data.VideoLearn More
09Building Image Generation ApplicationsBuild: An image generation applicationVideoLearn More
10Building Low Code AI ApplicationsBuild: A Generative AI application using Low Code toolsVideoLearn More
11Integrating External Applications with Function CallingBuild: What is function calling and its use cases for applicationsVideoLearn More
12Designing UX for AI ApplicationsLearn: How to apply UX design principles when developing Generative AI ApplicationsVideoLearn More
13Securing Your Generative AI ApplicationsLearn: The threats and risks to AI systems and methods to secure these systems.VideoLearn More
14The Generative AI Application LifecycleLearn: The tools and metrics to manage the LLM Lifecycle and LLMOpsVideoLearn More
15Retrieval Augmented Generation (RAG) and Vector DatabasesBuild: An application using a RAG Framework to retrieve embeddings from a Vector DatabasesVideoLearn More
16Open Source Models and Hugging FaceBuild: An application using open source models available on Hugging FaceVideoLearn More
17AI AgentsBuild: An application using an AI Agent FrameworkVideoLearn More
18Fine-Tuning LLMsLearn: The what, why and how of fine-tuning LLMsVideoLearn More
19Building with SLMsLearn: The benefits of building with Small Language ModelsVideo Coming SoonLearn More
20Building with Mistral ModelsLearn: The features and differences of the Mistral Family ModelsVideo Coming SoonLearn More
21Building with Meta ModelsLearn: The features and differences of the Meta Family ModelsVideo Coming SoonLearn More

🌟 Special thanks

Special thanks to John Aziz for creating all of the GitHub Actions and workflows

Bernhard Merkle for making key contributions to each lesson to improve the learner and code experience.

🎒 Other Courses

Our team produces other courses! Check out:

LangChain

LangChain4j for Beginners LangChain.js for Beginners LangChain for Beginners

Azure / Edge / MCP / Agents

AZD for Beginners Edge AI for Beginners MCP for Beginners AI Agents for Beginners


Generative AI Series

Generative AI for Beginners Generative AI (.NET) Generative AI (Java) Generative AI (JavaScript)


Core Learning

ML for Beginners Data Science for Beginners AI for Beginners Cybersecurity for Beginners Web Dev for Beginners IoT for Beginners XR Development for Beginners


Copilot Series

Copilot for AI Paired Programming Copilot for C#/.NET Copilot Adventure

Getting Help

If you get stuck or have any questions about building AI apps. Join fellow learners and experienced developers in discussions about MCP. It's a supportive community where questions are welcome and knowledge is shared freely.

Microsoft Foundry Discord

If you have product feedback or errors while building visit:

Microsoft Foundry Developer Forum

同方向的其他项目

headroom

headroomlabs-ai

AI 应用与智能体

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

DockerPython 依赖Rust示例代码+3
66k9.0kPythonApache-2.0今天
开箱即用
milvus

milvus-io

AI 应用与智能体

Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search

DockerGo示例代码文档+2
46k542GoApache-2.0今天
开箱即用
AionUi

iOfficeAI

AI 应用与智能体

Open-source 24/7 Cowork app for OpenClaw, Hermes, Claude Code, Codex, OpenCode and 20+ more CLI Agent | Customize your assistants | Team them up|Star if you like it!

DockerNode 依赖示例代码文档+2
32k2.6kTypeScriptApache-2.02 天前
开箱即用