Coder Social home page Coder Social logo

microsoft / generative-ai-for-beginners Goto Github PK

View Code? Open in Web Editor NEW
42.6K 374.0 23.2K 107.84 MB

18 Lessons, Get Started Building with Generative AI πŸ”— https://microsoft.github.io/generative-ai-for-beginners/

Home Page: https://microsoft.github.io/generative-ai-for-beginners/

License: MIT License

JavaScript 0.98% HTML 0.26% Shell 0.42% Jupyter Notebook 85.07% Python 11.15% TypeScript 2.12%
ai chatgpt dall-e generativeai gpt azure generative-ai llms openai prompt-engineering

generative-ai-for-beginners's Introduction

Generative AI For Beginners

18 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

Generative AI for Beginners (Version 2) - A Course

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

🌱 Getting Started

This course has 18 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.

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

What You Need

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 AI Discord server to meet and network with other learners taking this course and get support.

πŸš€ Building a Startup?

Sign up for Microsoft for Startups Founders Hub to receive free OpenAI credits and up to $150k towards Azure credits to access OpenAI models through Azure OpenAI Services.

πŸ™ 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 Link Description Additional Learning
00 Course Setup Learn: How to Setup Your Development Environment Learn More
01 Introduction to Generative AI and LLMs Learn: Understanding what Generative AI is and how Large Language Models (LLMs) work. Learn More
02 Exploring and comparing different LLMs Learn: How to select the right model for your use case Learn More
03 Using Generative AI Responsibly Learn: How to build Generative AI Applications responsibly Learn More
04 Understanding Prompt Engineering Fundamentals Learn: Hands-on Prompt Engineering Best Practices Learn More
05 Creating Advanced Prompts Learn: How to apply prompt engineering techniques that improve the outcome of your prompts. Learn More
06 Building Text Generation Applications Build: A text generation app using Azure OpenAI Learn More
07 Building Chat Applications Build: Techniques for efficiently building and integrating chat applications. Learn More
08 Building Search Apps Vector Databases Build: A search application that uses Embeddings to search for data. Learn More
09 Building Image Generation Applications Build: A image generation application Learn More
10 Building Low Code AI Applications Build: A Generative AI application using Low Code tools Learn More
11 Integrating External Applications with Function Calling Build: What is function calling and its use cases for applications Learn More
12 Designing UX for AI Applications Learn: How to apply UX design principles when developing Generative AI Applications Learn More
13 Securing Your Generative AI Applications Learn: The threats and risks to AI systems and methods to secure these systems. Learn More
14 The Generative AI Application Lifecycle Learn: The tools and metrics to manage the LLM Lifecycle and LLMOps Learn More
15 Retrieval Augmented Generation (RAG) and Vector Databases Build: An application using a RAG Framework to retrieve embeddings from a Vector Databases Learn More
16 Open Source Models and Hugging Face Build: An application using open source models available on Hugging Face Learn More
17 AI Agents Build: An application using an AI Agent Framework Learn More
18 Fine-Tuning LLMs Learn: The what, why and how of fine-tuning LLMs Learn More

🌟 Special thanks

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

πŸŽ’ Other Courses

Our team produces other courses! Check out:

generative-ai-for-beginners's People

Contributors

18759268002 avatar backmountaindevil avatar banreyms avatar bethanyjep avatar carlotta94c avatar corradocavalli avatar dependabot[bot] avatar dikodev avatar eltociear avatar estebandalelr avatar facerain avatar glaucia86 avatar infosatheesh2020 avatar john0isaac avatar kinfey avatar koreyspace avatar koruneko avatar ldwedari avatar leestott avatar marcelasabogue avatar microsoftopensource avatar mreraser avatar nitya avatar pablonunes avatar paladique avatar rizwanshoukat3324 avatar softchris avatar tsubakimoto avatar weareoutman avatar yoshioterada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generative-ai-for-beginners's Issues

1-introduction.ipynb - openai.ChatCompletion no longer supported in openai>=1.0.0

Describe the bug
1-introduction.ipynb fails to run Exercise 2 with the following error message:

APIRemovedInV1:

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.

Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28

A detailed migration guide is available here: openai/openai-python#742

To Reproduce
Steps to reproduce the behavior:

  1. Install locally or on codespace
  2. Run 1-introduction.ipynb in VS Code
  3. Complete Exercise 1 successfully
  4. Error on Exercise 2

Expected behavior
OpenAI API key to be set up

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Conda environment
  • openai==1.2.2

Minor Pwn Request Vuln with Markdown Validate Workflow

Describe the bug

https://github.com/microsoft/generative-ai-for-beginners/blob/main/.github/workflows/validate-markdown.yml runs on the pull_request_target trigger and checks out and runs code from the fork PR branch. The permissions have PR write and issues write and everything else set to read. The worst someone could do is mess with other issues and PRs (but not merge them because contents write is set to read).

The impact is pretty low, so I'm creating an issue instead of sending a private report through MSRC because that process is very annoying.

To Reproduce
Steps to reproduce the behavior:

  1. Create a fork
  2. Modify .github/markdown_checker.py to contain code to abuse the GITHUB_TOKEN permissions
  3. Use GitHub API to close other issues and PRs, change their titles, PR body, etc. (general mischief)

Fix:

A great fix would be to use the Python script from the base branch, then check out the PR head in a separate directory to validate markdown files, etc. without actually running PR controlled code.

Screenshots

image

Additional context

Review 05 Advanced Prompts

I may be mistaken, but I believe the below is not an example of few-shot prompting as the section heading suggests. It appears to be an example of zero-shot, no?

image

testing issue

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

04-prompt-engineering-fundamentals -> fabrications-example

https://github.com/microsoft/generative-ai-for-beginners/blob/main/04-prompt-engineering-fundamentals/README.md#fabrications-example
"""
This also reinforces Responsible AI guidelines from a terminology perspective, removing terms that may also be considered offensive or non-inclusive in some contexts.
"""

Responsible AI guidelines does not work.
I could not find a valid link.
If someone can find a working link please update it.

Thanks!

Add Korean Translation

Is your feature request related to a problem? Please describe.
Thank you for creating a wonderful repository for training generative AI!
I would like to start a translation project to make this repository accessible and useful for Korean users as well.

Describe the solution you'd like
The following modules are planned for translation.
Please let me know if you would like to translate any of them, and I will add your name to the list as a tag.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Typo in read me description

Describe the bug
Typo in Read Me Description

To Reproduce
Steps to reproduce the behavior:

  1. Go to the 'Read Me.md' section
  2. Scroll down to 'Want to learn more? section
  3. See a highlighted typo in the below sentence. It should be "levelling"
    After completing this course, check out our Generative AI Learning collection to continue leveling up your Generative AI knowledge!

Expected behavior
its should be "levelling" instead of leveling

Screenshots
image

Additional context
I would like to work on this fix.

Add Portugese translation

Is your feature request related to a problem? Please describe.
People benefit from learning in their own language

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

**First off, I want to thank everyone who has contributed to this repo and course! It has been truly a community effort.**

First off, I want to thank everyone who has contributed to this repo and course! It has been truly a community effort.

We have heard your feedback on the course through comments, issues and our community Discord. I want to present you our roadmap of for Q1 2024.

Content Description
Lesson 13: Securing Your Generative AI Applications A lesson covering how to secure your GenAI apps from attacks like Prompt Inject as well as how to use tools in a secure way
Lesson 14: The Generative AI Application Lifecycle Lesson covering designing, testing, deploying and improving a Generative AI application
Lesson 15: Retrieval Augmented Generation and Vector Databases Lesson covering different RAG techniques and how to integrate a Vector Database
Lesson 16: Building with Open Source Models Lesson covering building GenAI applications with the available Open Source Models on tools such as HuggingFace
TypeScript Support Creating versions of the code lessons to use TypeScript
OpenAI API Support Creating versions of the code lessons to use the OpenAI API

If you have any questions or comments please feel free to post below!

Originally posted by @koreyspace in #237

APIConnectionError in the first Jupyter notebook, lesson 4

I forked the repository to run in GitHub Codespaces. I am loading my API key from a codespaces secret into the .env file. When I run the first code cell that uses the openai module in lesson 4, I get an http error. I tested with a print statement to make sure the OpenAI client is receiving my API key.

I tested with a curl command to see if I could access the openai api from within Codespaces and received the expected result.

curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY " -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Say this is a test!"}], "temperature": 0.7}'

Which makes me think it's a Jupyter environment problem.

Here's the error message:
codespaces_lesson4

Link to the video in Modules 08 and 09 is broken

Hello. The link to the video in Modules 08 and 09 is broken.
I tried to search these videos in the MS Reactor channel in YouTube but I could'nt find it (I found a lot of great and inherent content there but these 2 short and recent videos seem to be missing).
Can you add the link to these 2 videos?

Talk about prompt injection and LLM security

This tutorial doesn't yet talk about the security implications of building software on top of LLMs - in particular the prompt injection class of vulnerabilities.

I think this is a problem. Prompt injection is a particularly nasty vulnerability, because if people don't understand it they are almost doomed to build systems that are vulnerable to it.

It also means that a lot of the obvious applications of generative AI are not safe to build. A personal assistant that can summarize and reply to your email for example - that's not safe, because there might be a prompt injection attack in one of the emails that it reads.

I wrote more about this here: https://simonwillison.net/2023/Apr/14/worst-that-can-happen/ (and in this series of posts).

Add Spanish translation

Is your feature request related to a problem? Please describe.
People benefit from reading content in their own language

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

OpenAI service access isn't for personal user

Describe the bug
The OpenAI service access form requires an enterprise user, which blocks personal users from learning the course. Can you please help share an instruction on how to get access? Thanks!

To Reproduce
Steps to reproduce the behavior:

  1. Go to OpenAI service access form (https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR7en2Ais5pxKtso_Pz4b1_xUOFA5Qk1UWDRBMjg0WFhPMkIzTzhKQ1dWNyQlQCN0PWcu)
  2. Scroll down to 'Possible causes for a denied application'
  3. See the requirements

Expected behavior
A personal user should be able to access the OpenAI service to learn this course and practice the coding tasks.

Screenshots
image

the buge

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Move images from lesson folder to media folder

Is your feature request related to a problem? Please describe.
In the ninth exercise, all the images are in the main folder for the lesson while there is an images folder not all the images are inside it.

Describe the solution you'd like
Move all the images to the images folder, don't forget to change their path in the .md files or ipynb

Additional context
https://github.com/microsoft/generative-ai-for-beginners/tree/main/09-building-image-applications

Lesson 9 Chinese Translation Wikipedia image error

Describe the bug
The url for the Wikipedia image is wrong.

Expected behavior
Correct path for the image.

Screenshots
image

https://microsoft.github.io/generative-ai-for-beginners/#/09-building-image-applications/translations/cn/README?wt.mc_id=academic-105485-koreyst&id=midjourney

Wrong URL
image

Correct URL can be found in the English translation
https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Rupert_Breheny_mechanical_dove_eca144e7-476d-4976-821d-a49c408e4f36.png/440px-Rupert_Breheny_mechanical_dove_eca144e7-476d-4976-821d-a49c408e4f36.png?WT.mc_id=academic-105485-koreyst

Fence All Kinds

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Chinese Translation issues

@kinfey

Describe the bug
Check Broken Paths
FILE './09-building-image-applications/translations/cn/README.md'
has the following broken relative paths ['../../startup.png', '../../v1-generated_image.png', '../../v2-generated_image.png', '../../v1-0temp-generated_image.png', '../../v2-0temp-generated_image.png']

FILE './07-building-chat-applications/translations/cn/README.md'
has the following broken relative paths ['./notebook-azure-openai.ipynb', '../13-continued-learning/README.md']

FILE './03-using-generative-ai-responsibly/translations/cn/README.md'
has the following broken relative paths ['../08-building-search-applications/README.md', '../12-designing-ux-for-ai-applications/README.md']

FILE './05-advanced-prompts/translations/cn/README.md'
has the following broken relative paths ['./solution.py']
@github-actionsGitHub Actions
github-actions bot commented 3 minutes ago
We have automatically detected missing tracking id from the following relative paths in your lessons.
Please check the file paths and associated paths inside them.

Check Missing Tracking from Paths
FILE './00-course-setup/translations/cn/README.md'
has the following paths with no tracking id ['../../images/who-will-pay.webp', '../../../01-introduction-to-genai/translations/cn/README.md']

FILE './02-exploring-and-comparing-different-llms/translations/cn/README.md'
has the following paths with no tracking id ['../../images/FoundationModel.png', '../../images/Multimodal.png', '../../images/Embedding.png', '../../images/Image.png', '../../images/Text.png', '../../images/Llama1.png', '../../images/Llama2.png', '../../images/Llama3.png', '../../images/Llama4.png', '../../images/Deploy.png', '../../../13-continued-learning/translations/cn/README.md', '../../../03-using-generative-ai-responsibly/translations/cn/README.md']

FILE './01-introduction-to-genai/translations/cn/README.md'
has the following paths with no tracking id ['../../images/students-by-DALLE2.png', '../../images/AI-diagram.png', '../../images/tokenizer-example.png', '../../images/summarization-example.png', '../../images/creative-writing-example.png', '../../images/conversation-example.png', '../../images/text-completion-example.png', '../../images/coding-example.png', '../../../13-continued-learning/translations/cn/README.md', '../../../02-exploring-and-comparing-different-llms/translations/cn/README.md']

FILE './12-designing-ux-for-ai-applications/translations/cn/README.md'
has the following paths with no tracking id ['../../images/uxinai.png', '../../images/explanability-in-ai.png', '../../images/solving-questions.png', '../../images/simplified-explanations.png', '../../images/bing1.png', '../../images/bing2.png', '../../images/feedback-loops.png']

FILE './09-building-image-applications/translations/cn/README.md'
has the following paths with no tracking id ['../../startup.png', '../../v1-generated_image.png', '../../v2-generated_image.png', '../../v1-0temp-generated_image.png', '../../v2-0temp-generated_image.png']

FILE './06-text-generation-apps/translations/cn/README.md'
has the following paths with no tracking id ['../../../13-continued-learning/translations/cn/README.md']

FILE './translation/cn/README.md'
has the following paths with no tracking id ['../../img/1.png', '../../00-course-setup/translations/cn/README.md', '../../00-course-setup/translations/cn/README.md', '../../01-introduction-to-genai//translations/cn/README.md', '../../02-exploring-and-comparing-different-llms/translations/cn/README.md', '../../03-using-generative-ai-responsibly/translations/cn/README.md', '../../04-prompt-engineering-fundamentals/translations/cn/README.md', '../../05-advanced-prompts/translations/cn/README.md', '../../06-text-generation-apps/translations/cn/README.md', '../../07-building-chat-applications/translations/cn/README.md', '../../08-building-search-applications/translations/cn/README.md', '../../09-building-image-applications/translations/cn/README.md', '../../10-building-low-code-ai-applications/translations/cn/README.md', '../../11-integrating-with-function-calling/transaltions/cn/README.md', '../../12-designing-ux-for-ai-applications/translations/cn/README.md', '../../13-continued-learning/translations/cn/README.md']

FILE './04-prompt-engineering-fundamentals/translations/cn/README.md'
has the following paths with no tracking id ['../../img/4.0-tokenizer-example.png', '../../img/4.0-playground-chat-base.png', '../../img/4.0-playground-chat-instructions.png', '../../img/4.0-hallucination-oai.png', '../../img/4.0-hallucination-aoai.png', '../../img/4.0-hallucination-huggingchat.png', '../../../13-continued-learning/translations/cn/README.md', '../../../05-advanced-prompts/translations/cn/README.md']

FILE './11-integrating-with-function-calling/transaltions/cn/README.md'
has the following paths with no tracking id ['../../images/genai_course_11[90].png', '../../images/Function-Flow.png', '../../images/LLM-Flow.png']

FILE './08-building-search-applications/translations/cn/README.md'
has the following paths with no tracking id ['../../media/query_results.png', '../../media/notebook_search.png']

FILE './07-building-chat-applications/translations/cn/README.md'
has the following paths with no tracking id ['../../img/custom_instructions.png', '../../img/lesson_plan_prompt.png']

FILE './03-using-generative-ai-responsibly/translations/cn/README.md'
has the following paths with no tracking id ['../../images/mitigate-cycle.png', '../../images/mitigation-layers.png', '../08-building-search-applications/README.md', '../12-designing-ux-for-ai-applications/README.md', '../../../13-continued-learning/translations/cn/README.md', '../../../04-prompt-engineering-fundamentals/translations/cn/README.md']

FILE './10-building-low-code-ai-applications/translations/cn/README.md'
has the following paths with no tracking id ['../../images/copilot-chat-prompt-powerapps.png', '../../images/copilot-dataverse-table-powerapps.png', '../../images/copilot-new-column.png', '../../images/copilot-new-screen.png', '../../images/describe-new-table.png', '../../images/copilot-chat-prompt-dataverse.png', '../../images/copilot-dataverse-table.png', '../../images/ai-builder-models.png', '../../images/copilot-chat-prompt-powerautomate.png', '../../images/powerautomate-remove-actions.png', '../../images/powerautomate-add-row.png', '../../images/create-prompt-gpt.png']

FILE './05-advanced-prompts/translations/cn/README.md'
has the following paths with no tracking id ['./solution.py', '../../../13-continued-learning/translations/cn/README.md', '../../../06-text-generation-apps//translations/cn/README.md']
@github-actions github-actions bot assigned koreyspace 3 minutes ago
@github-actionsGitHub Actions
github-actions bot commented 3 minutes ago
We have automatically detected missing tracking id from the following URLs in your lessons.
Please check the file paths and associated URLs inside them.

Check Missing Tracking from URLs
FILE './00-course-setup/translations/cn/README.md'
has the following links with no tracking id ['https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars', 'https://conda.io/en/latest/miniconda.html', 'https://docs.github.com/en/codespaces/managing-your-codespaces/managing-secrets-for-your-codespaces', 'https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR7en2Ais5pxKtso_Pz4b1_xUOFA5Qk1UWDRBMjg0WFhPMkIzTzhKQ1dWNyQlQCN0PWcu&culture=en-us&country=us', 'https://aka.ms/genai-discord', 'https://aka.ms/genai-discord', 'https://github.com/microsoft/generative-ai-for-beginners/issues', 'https://cla.microsoft.com']

FILE './02-exploring-and-comparing-different-llms/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/J1mWzw0P74c', 'https://platform.openai.com/docs/models/whisper', 'https://platform.openai.com/docs/models/dall-e', 'https://oai.azure.com/portal/playground', 'https://arxiv.org/abs/2108.07258', 'https://arxiv.org/pdf/2108.07258.pdf', 'https://sapling.ai/llm/llama', 'https://sapling.ai/llm/bard', 'https://platform.openai.com/docs/models/embeddings', 'https://github.com/Stability-AI/StableDiffusion', 'https://huggingface.co/codeparrot', 'https://azure.microsoft.com/products/machine-learning/', 'https://www.fiddler.ai/blog/four-ways-that-enterprises-deploy-llms']

FILE './01-introduction-to-genai/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/vf_mZrn8ibc', 'https://openai.com/chatgpt', 'https://www.microsoft.com/en-gb/startups']

FILE './12-designing-ux-for-ai-applications/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/bO7h2_hOhR0', 'https://aka.ms/genai-Foundershub']

FILE './09-building-image-applications/translations/cn/README.md'
has the following links with no tracking id ['https://www.midjourney.com/', 'https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Rupert_Breheny_mechanical_dove_eca144e7-476d-4976-821d-a49c408e4f36.png/440px-Rupert_Breheny_mechanical_dove_eca144e7-476d-4976-821d-a49c408e4f36.png', 'https://arxiv.org/pdf/2102.12092.pdf']

FILE './06-text-generation-apps/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/5jKHzY6-4s8', 'https://learn.microsoft.com/azure/ai-services/openai/media/quickstarts/endpoint.png']

FILE './translation/cn/README.md'
has the following links with no tracking id ['https://github.com/microsoft/Generative-AI-For-Beginners/blob/master/LICENSE', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/graphs/contributors/', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/issues/', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/pulls/', 'http://makeapullrequest.com', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/watchers/', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/network/', 'https://GitHub.com/microsoft/Generative-AI-For-Beginners/stargazers/', 'https://codespaces.new/microsoft/generative-ai-for-beginners', 'https://aka.ms/genai-discord', 'https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars', 'https://aka.ms/genai-discord', 'https://aka.ms/genai-Foundershub', 'https://aka.ms/ml-beginners', 'https://aka.ms/datascience-beginners', 'https://aka.ms/ai-beginners', 'https://aka.ms/webdev-beginners', 'https://aka.ms/iot-beginners', 'https://github.com/microsoft/xr-development-for-beginners']

FILE './04-prompt-engineering-fundamentals/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/r2ItK3UMVTk', 'https://github.com/microsoft/prompts-for-edu/tree/main', 'https://platform.openai.com/tokenizer', 'https://blog.gopenai.com/an-introduction-to-base-and-instruction-tuned-large-language-models-8de102c785a6', 'https://oai.azure.com/playground', 'https://blog.gopenai.com/an-introduction-to-base-and-instruction-tuned-large-language-models-8de102c785a6', 'https://oai.azure.com/playground', 'https://blog.gopenai.com/an-introduction-to-base-and-instruction-tuned-large-language-models-8de102c785a6', 'https://github.com/features/copilot', 'https://github.blog/2023-07-28-smarter-more-efficient-coding-github-copilot-goes-beyond-codex-with-improved-ai-model/', 'https://github.blog/2023-05-17-how-github-copilot-is-getting-better-at-understanding-your-code/', 'https://github.blog/2023-05-17-inside-github-working-with-the-llms-behind-github-copilot/', 'https://github.blog/2023-06-20-how-to-write-better-prompts-for-github-copilot/', 'https://github.blog/2023-07-28-smarter-more-efficient-coding-github-copilot-goes-beyond-codex-with-improved-ai-model/', 'https://github.blog/2023-07-17-prompt-engineering-guide-generative-ai-llms/', 'https://github.blog/2023-09-06-how-to-build-an-enterprise-llm-application-lessons-from-github-copilot/', 'https://github.blog/2023-09-27-how-i-used-github-copilot-chat-to-build-a-reactjs-gallery-prototype/', 'https://platform.openai.com/docs/api-reference/completions', 'https://platform.openai.com/examples', 'https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/', 'https://github.com/microsoft/prompts-for-edu', 'https://beta.openai.com/account/api-keys']

FILE './08-building-search-applications/translations/cn/README.md'
has the following links with no tracking id ['https://www.youtube.com/playlist?list=PLlrxD0HtieHi0mwteKBOfEeOYf0LJU4O1', 'https://en.wikipedia.org/wiki/Natural_language_processing', 'https://www.youtube.com/playlist?list=PLlrxD0HtieHi0mwteKBOfEeOYf0LJU4O1', 'https://cookbook.openai.com/examples/vector_databases/weaviate/readme', 'https://en.wikipedia.org/wiki/Cosine_similarity', 'https://www.python.org/downloads/', 'https://portal.azure.com/', 'https://aka.ms/oai/models']

FILE './13-continued-learning/translations/cn/README.md'
has the following links with no tracking id ['https://bea.stollnitz.com/blog/how-gpt-works/', 'https://sapling.ai/llm/index', 'https://arxiv.org/abs/2304.04052', 'https://techcommunity.microsoft.com/t5/fasttrack-for-azure/grounding-llms/ba-p/3843857', 'https://techcommunity.microsoft.com/t5/e1.ucation-blog/azure-openai-for-education-prompts-ai-and-a-guide-from-ethan-and/ba-p/3938259', 'https://towardsdatascience.com/openais-dall-e-and-clip-101-a-brief-introduction-3a4367280d4e', 'https://arxiv.org/pdf/2103.00020.pdf', 'https://www.amazon.com/Designing-Human-Centric-Experiences-Artificial-Intelligence/dp/1484280873']

FILE './03-using-generative-ai-responsibly/translations/cn/README.md'
has the following links with no tracking id ['https://flyingbisons.com']

FILE './10-building-low-code-ai-applications/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/XX8491SAF44', 'https://make.powerapps.com', 'https://make.powerapps.com', 'https://make.powerautomate.com']

FILE './05-advanced-prompts/translations/cn/README.md'
has the following links with no tracking id ['https://youtu.be/32GBH6BTWZQ']
@github-actions github-actions bot requested a review from koreyspace 3 minutes ago
@github-actionsGitHub Actions
github-actions bot commented 3 minutes ago
We have automatically detected added country locale to URLs in your lessons.
Please check the file paths and associated URLs inside them.

Check Country Locale in URLs
FILE './01-introduction-to-genai/translations/cn/README.md'
has the following links with country locale ['https://www.microsoft.com/en-gb/startups']

FILE './06-text-generation-apps/translations/cn/README.md'
has the following links with country locale ['https://learn.microsoft.com/en-us/azure/ai-services/openai/overview#how-do-i-get-access-to-azure-openai?WT.mc_id=academic-105485-koreyst']

Missing Link from Lesson 11

Under Assignment and Code Challenge the first element in the list ends with the word here but there is no hyperlink or url after it rather the link to the parameters is down below.

I think we should remove the word here or add another link to it.

Screenshot from Lesson 11 Readme:
image

Screenshot from Lesson 11 notebook
image

Education

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Fix applied in https://github.com/microsoft/generative-ai-for-beginners/pull/163

pip install -r requirements.txt installs the most recent version of openai (1.2.3).

This has many breaking changes from 0.28.0. See discussion here: openai/openai-python#742

The code in 1-introduction.ipynb still don't work until you downgrade openai to 0.28.0

Suggest fixing the openai version at 0.28.0 in requirements.txt or updating the notebook with the new methods

          Fix applied in https://github.com/microsoft/generative-ai-for-beginners/pull/163

The Devcontainer and codespaces environment should run a post installation after the installation and install python libraries listed in requirements.txt

Requirements
ipywidgets==7.7.1
matplotlib==3.7.0
numpy==1.24.2
pandas==1.5.3
tqdm==4.64.0
python-dotenv==1.0.0
openai>=0.28.0
tiktoken

Originally posted by @leestott in #160 (comment)

Action required: migrate or opt-out of migration to GitHub inside Microsoft

Migrate non-Open Source or non-External Collaboration repositories to GitHub inside Microsoft

In order to protect and secure Microsoft, private or internal repositories in GitHub for Open Source which are not related to open source projects or require collaboration with 3rd parties (customer, partners, etc.) must be migrated to GitHub inside Microsoft a.k.a GitHub Enterprise Cloud with Enterprise Managed User (GHEC EMU).

Action

✍️ Please RSVP to opt-in or opt-out of the migration to GitHub inside Microsoft.

❗Only users with admin permission in the repository are allowed to respond. Failure to provide a response will result to your repository getting automatically archived.πŸ”’

Instructions

Reply with a comment on this issue containing one of the following optin or optout command options below.

βœ… Opt-in to migrate

@gimsvc optin --date <target_migration_date in mm-dd-yyyy format>

Example: @gimsvc optin --date 03-15-2023

OR

❌ Opt-out of migration

@gimsvc optout --reason <staging|collaboration|delete|other>

Example: @gimsvc optout --reason staging

Options:

  • staging : This repository will ship as Open Source or go public
  • collaboration : Used for external or 3rd party collaboration with customers, partners, suppliers, etc.
  • delete : This repository will be deleted because it is no longer needed.
  • other : Other reasons not specified

Need more help? πŸ–οΈ

Video on first lesson doesn't work

Describe the bug
Video on lesson 1 "Introduction to Generative AI and Large Language Models" doesn't work, YouTube says it's private.
To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/microsoft/generative-ai-for-beginners/blob/main/01-introduction-to-genai/README.md
  2. Click on YouTube video: https://youtu.be/vf_mZrn8ibc
  3. See error

Expected behavior
Expected to access the video at YouTube

Screenshots
CleanShot 2023-10-31 at 09 12 42

Desktop (please complete the following information):

  • OS: MacOS 14
  • Browser Safari
  • Version 17

First code example does not work with Azure OpenAI

Describe the bug

The introduction states that the code examples will use Azure OpenAI.

However the very first code example Exercise 2: OpenAI API Key Setup uses the (non-Azure) OpenAI API directly, which doesn't work for an Azure OpenAI deployment.

To Reproduce

Run Exercise 2: OpenAI API Key Setup using an Azure OpenAI endpoint URL/key - it fails with an exception.

Expected behavior

The example to work with Azure OpenAI.

I expect that this needs:

Getting Started with this course instructions are using a different repo

In this page:

https://github.com/microsoft/generative-ai-for-beginners/blob/main/00-course-setup/README.md

The instructions at step:

https://github.com/microsoft/generative-ai-for-beginners/blob/main/00-course-setup/README.md#how-to-run-locally-on-your-computer

Ask to execute the following:

git clone http://github.com/microsoft/ai-for-beginners cd ai-for-beginners conda env create --name ai4beg --file .devcontainer/environment.yml conda activate ai4beg
Is this the correct repo to clone?

Accessing Azure Open AI Resources as a PERSON

Hello,
First of all, I think this course is a treasure and I am so happy that I have found it.

I want to declare first that I am a complete nooby (medical background) who is looking to take this course and learn more about Generative AI. I saw that I must have access to Azure Open AI Resources, but as I was making the request I have noticed that I must be an employee in a company or I must have a working company!

I am a way too far to work/have a company. So what can I do to start learning?

Please help me

Thanks in advance

Typo in Knowledge Check section of 05-advanced-prompts'

Describe the bug
There is a typo in the Knowledge Check section of the 05-advanced-prompts file. The options are currently numbered, but it seems they should be labeled as A, B, C, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '05-advanced-prompts'
  2. Scroll down to 'Knowledge Check section'
  3. See error in the options list

Expected behavior
The options should be labeled as 1, 2, 3, etc. But there are B, C following 2, 3.

Screenshots
image

Desktop (please complete the following information):

  • Not applicable

Smartphone (please complete the following information):

  • Not applicable

Additional context
I would like to work on this fix.

Environment File Not Found error

Describe the bug
After cloning the repo, when i tried to create the environment. I am getting this error.
EnvironmentFileNotFound: '/home/notebook/code/personal/IN008915/generative-ai-for-beginners/.devcontainer/environment.yml' file not found

Running in Dev Container returns an error that no manifest can be found

Describe the bug
Running project in dev container returns error.

Error fetching image details: No manifest found for mcr.microsoft.com/devcontainers/universal:2.

To Reproduce
Cloning the repository, opening the folder with VSCode on macOS and letting the DevContainer build returns the error

Expected behavior
Run of DevContainer should be successful

Desktop (please complete the following information):

  • OS: macOS 13.5.2
  • Docker Desktop 4.21.1
  • VSCode 1.84.2

Additional context
I have basic experience with Docker, so this could be a user error, but I'm not sure.

Improve the Foundation Models graph in module 2

In the video of module 2, at about 2:28, there is a picture/graph that helps support the explanation of Foundation models compared to Large Language Models. The image is not clear and it's hard to view the details, mostly the inner bubble.

Steps to reproduce the behavior:

  1. Go to https://www.youtube.com/watch?v=J1mWzw0P74c
  2. Fast Forward to 2 minutes 28 seconds of the video clip
  3. See error

I would expect to be able to view the diagram and be able to read the text within it.

image

  • Windows 10 Pro 22H2
  • Edge
  • Version 119.0.2151.58 (Official build) (64-bit)

Just starting. Can’t fork the repository

**Describe the bug**
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
    IMG_2362
    IMG_2362

  2. Click on '....'

  3. Scroll down to '....'

  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Course incorrectly refers to Llama as open source

Describe the bug

Throughout the course, it refers to the Llama LLM as "open source" - this is not factually correct.

To Reproduce

NA

Expected behavior

Provide an updated and accurate description of Llama models - they are proprietary

Screenshots

NA

Desktop (please complete the following information):

NA

Smartphone (please complete the following information):

NA

Additional context

https://blog.opensource.org/metas-llama-2-license-is-not-open-source/

Havk

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Lesson 11 - Translation folder Typo

Describe the bug
The name of the translations folder is transaltions.

Expected behavior
The name of the folder is written correctly.

It's better to fix this after the Portuguese translation #121 is merged as this needs to be fixed in all the translations.

Affected files ==>
Lesson 10 Portuguese README.md (Referenced at the end of the lesson) and Main Portuguese README.md (Referenced in the table)
Lesson 10 Chinses README.md (Referenced at the end of the lesson) and Main Chinese README.md (Referenced in the table)

Additional context
https://github.com/microsoft/generative-ai-for-beginners/tree/main/11-integrating-with-function-calling/transaltions/

Suggest new lessons, tell us what you want to see

Is your feature request related to a problem? Please describe.
Tell us what you want to see

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.