Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d2916c1
chore: update link to completions howto
wolfJaeger May 16, 2025
f81ee09
chore: update link to completions howto for aoai and githubmodels ass…
wolfJaeger May 16, 2025
ec3ca2a
chore: change source url regarding to mr comment
wolfJaeger May 30, 2025
d3520ca
docs: update translation on readme.md
felipementel Jun 13, 2025
4ac7287
Merge pull request #1 from felipementel/feature/update-ptbr-00
felipementel Jun 13, 2025
c83de02
var change
eddieeddieeddiejones Jun 19, 2025
d7b891a
Bump OSDKDev/lock-issues from 1.1 to 1.2
dependabot[bot] Jun 23, 2025
6615069
Bump python-dotenv from 1.0.0 to 1.1.1
dependabot[bot] Jun 30, 2025
2396556
Bump @types/node from 22.15.21 to 24.0.7
dependabot[bot] Jun 30, 2025
02d31c6
some typos or clarified sentences
ybot1122 Jul 2, 2025
7d69e58
Update requirements.txt
Bergvca Jul 2, 2025
1c3e475
removed requirements.txt in this subfolder due to outdated versions a…
Jul 2, 2025
a253e95
fix: multi lang nav path
Koooooo-7 Jul 3, 2025
2ce80b0
Merge pull request #782 from wolfJaeger/bugfix/non-working-source-lin…
koreyspace Jul 4, 2025
bfd7870
Merge pull request #830 from felipementel/main
koreyspace Jul 4, 2025
3ade216
Merge pull request #836 from eddieeddieeddiejones/patch-1
koreyspace Jul 4, 2025
ee7680f
Merge pull request #837 from microsoft/dependabot/github_actions/OSDK…
koreyspace Jul 4, 2025
c1a867c
Merge pull request #842 from microsoft/dependabot/pip/python-dotenv-1…
koreyspace Jul 4, 2025
cf7fd51
Merge pull request #843 from microsoft/dependabot/npm_and_yarn/types/…
koreyspace Jul 4, 2025
f80d866
Merge pull request #845 from ybot1122/misc-typo-fixes
koreyspace Jul 4, 2025
3996f49
Merge pull request #846 from Bergvca/patch-1
koreyspace Jul 4, 2025
07de021
Merge pull request #850 from Koooooo-7/patch-1
koreyspace Jul 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: OSDKDev/lock-issues@v1.1
- uses: OSDKDev/lock-issues@v1.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
27 changes: 14 additions & 13 deletions 00-course-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@
2. **Create the `.env` File**: Use your preferred text editor to create a new file named `.env`. If you're using the command line, you can use `touch` (on Unix-based systems) or `echo` (on Windows):

Unix-based systems:

```bash
touch .env
```

Windows:

```cmd
echo . > .env
```
Expand Down Expand Up @@ -87,9 +89,9 @@

Once you have everything checked out, you can get started!

## Optional Steps
## Optional Steps

### Installing Miniconda
### Installing Miniconda

[Miniconda](https://conda.io/en/latest/miniconda.html?WT.mc_id=academic-105485-koreyst) is a lightweight installer for installing [Conda](https://docs.conda.io/en/latest?WT.mc_id=academic-105485-koreyst), Python, as well as a few packages.
Conda itself is a package manager, that makes it easy to setup and switch between different Python [**virtual environments**](https://docs.python.org/3/tutorial/venv.html?WT.mc_id=academic-105485-koreyst) and packages. It also comes in handy for installing packages that are not available via `pip`.
Expand All @@ -105,19 +107,18 @@
```yml
name: <environment-name>
channels:
- defaults
- microsoft
- defaults
- microsoft
dependencies:
- python=<python-version>
- openai
- python-dotenv
- pip
- pip:
- azure-ai-ml

- python=<python-version>
- openai
- python-dotenv
- pip
- pip:
- azure-ai-ml
```

If you find you getting errors using conda you can mannually install the Microsoft AI Libraries using the following command in a terminal.
If you find you getting errors using conda you can manually install the Microsoft AI Libraries using the following command in a terminal.

```
conda install -c microsoft azure-ai-ml
Expand Down Expand Up @@ -166,7 +167,7 @@

### Running in a container

An alternative to setting everything up on your computer or Codespace is to use a [container](https://en.wikipedia.org/wiki/Containerization_(computing)?WT.mc_id=academic-105485-koreyst). The special `.devcontainer` folder within the course repository makes it possible for VS Code to set up the project within a container. Outside of Codespaces, this will require the installation of Docker, and quite frankly, it involves a bit of work, so we recommend this only to those with experience working with containers.
An alternative to setting everything up on your computer or Codespace is to use a [container](<https://en.wikipedia.org/wiki/Containerization_(computing)?WT.mc_id=academic-105485-koreyst>). The special `.devcontainer` folder within the course repository makes it possible for VS Code to set up the project within a container. Outside of Codespaces, this will require the installation of Docker, and quite frankly, it involves a bit of work, so we recommend this only to those with experience working with containers.

Check failure on line 170 in 00-course-setup/README.md

View workflow job for this annotation

GitHub Actions / Check URLs Have Tracking

File 00-course-setup/README.md, line 170, Link <https://en.wikipedia.org/wiki/Containerization_(computing is missing tracking id.

One of the best ways to keep your API keys secure when using GitHub Codespaces is by using Codespace Secrets. Please follow the [Codespaces secrets management](https://docs.github.com/en/codespaces/managing-your-codespaces/managing-secrets-for-your-codespaces?WT.mc_id=academic-105485-koreyst) guide to learn more about this.

Expand Down
2 changes: 1 addition & 1 deletion 03-using-generative-ai-responsibly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Harmful content can be defined as:

- Providing instructions or encouraging self-harm or harm to certain groups.
- Hateful or demeaning content.
- Guiding planning any type of attack or violent acts.
- Guiding the planning of any type of attack or violent acts.
- Providing instructions on how to find illegal content or commit illegal acts.
- Displaying sexually explicit content.

Expand Down
3 changes: 0 additions & 3 deletions 04-prompt-engineering-fundamentals/python/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion 06-text-generation-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ What does the concept temperature do?

## 🚀 Challenge

When working on the assignment, try to vary the temperature, try set it to 0, 0.5, and 1. Remember that 0 is the least varied and 1 is the most, what value works best for your app?
When working on the assignment, try to vary the temperature, try setting it to 0, 0.5, and 1. Remember that 0 is the least varied and 1 is the most. What value works best for your app?

## Great Work! Continue Your Learning

Expand Down
2 changes: 1 addition & 1 deletion 07-building-chat-applications/python/aoai-assignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
"**Check your settings.** The temperature and top_p settings control how deterministic the model is in generating a response. If you're asking it for a response where there's only one right answer, then you'd want to set these lower. If you're looking for more diverse responses, then you might want to set them higher. The number one mistake people make with these settings is assuming that they're \"cleverness\" or \"creativity\" controls.\n",
"\n",
"\n",
"Source: https://github.com/Azure/OpenAI/blob/main/How%20to/Completions.md"
"Source: https://learn.microsoft.com/azure/ai-services/openai/overview"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
"**Check your settings.** The temperature and top_p settings control how deterministic the model is in generating a response. If you're asking it for a response where there's only one right answer, then you'd want to set these lower. If you're looking for more diverse responses, then you might want to set them higher. The number one mistake people make with these settings is assuming that they're \"cleverness\" or \"creativity\" controls.\n",
"\n",
"\n",
"Source: https://github.com/Azure/OpenAI/blob/main/How%20to/Completions.md"
"Source: https://learn.microsoft.com/azure/ai-services/openai/overview"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 07-building-chat-applications/python/oai-assignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"**Check your settings.** The temperature and top_p settings control how deterministic the model is in generating a response. If you're asking it for a response where there's only one right answer, then you'd want to set these lower. If you're looking for more diverse responses, then you might want to set them higher. The number one mistake people make with these settings is assuming that they're \"cleverness\" or \"creativity\" controls.\n",
"\n",
"\n",
"Source: https://github.com/Azure/OpenAI/blob/main/How%20to/Completions.md"
"Source: https://learn.microsoft.com/azure/ai-services/openai/overview"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 09-building-image-applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

Let's start with DALL-E, which is a Generative AI model that generates images from text descriptions.

> [DALL-E is a combination of two models, CLIP and diffused attention](https://towardsdatascience.com/openais-dall-e-and-clip-101-a-brief-introduction-3a4367280d4e?WT.mc_id=academic-105485-koreyst).

Check failure on line 51 in 09-building-image-applications/README.md

View workflow job for this annotation

GitHub Actions / Check Broken URLs

File 09-building-image-applications/README.md, line 51, Link https://towardsdatascience.com/openais-dall-e-and-clip-101-a-brief-introduction-3a4367280d4e?WT.mc_id=academic-105485-koreyst is broken.

- **CLIP**, is a model that generates embeddings, which are numerical representations of data, from images and text.

Expand Down Expand Up @@ -421,7 +421,7 @@
Do not consider any input from the following that is not safe for work or appropriate for children.
{disallow_list}"""

prompt = f"""{metaprompt}
prompt = f"""{meta_prompt}
Generate monument of the Arc of Triumph in Paris, France, in the evening light with a small child holding a Teddy looks on.
""""

Expand Down
6 changes: 3 additions & 3 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Select Language

* [English](/)
* [Simplified Chinese](/translations/cn/)
* [Simplified Chinese](/translations/zh/)
* [Traditional Chinese](/translations/tw/)
* [Portuguese](/translations/pt-br/)
* [Japanese](/translations/ja-jp/)
* [Portuguese](/translations/pt/)
* [Japanese](/translations/ja/)
* [Korean](/translations/ko/)
18 changes: 8 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/microsoft/generative-ai-for-beginners#readme",
"devDependencies": {
"@types/node": "^22.15.21",
"@types/node": "^24.0.7",
"docsify-to-pdf": "0.0.5"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ matplotlib==3.9.4
numpy==1.24.2
pandas==1.5.3
tqdm==4.67.1
python-dotenv==1.0.0
python-dotenv==1.1.1
openai>=0.28.0
tiktoken
azure-ai-inference
24 changes: 12 additions & 12 deletions translations/br/00-course-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ Uma vez que você tenha tudo verificado, pode começar!
[Miniconda](https://conda.io/en/latest/miniconda.html?WT.mc_id=academic-105485-koreyst) é um instalador leve para instalar [Conda](https://docs.conda.io/en/latest?WT.mc_id=academic-105485-koreyst), Python, assim como alguns pacotes.
Conda em si é um gerenciador de pacotes, que facilita a configuração e alternância entre diferentes [**ambientes virtuais**](https://docs.python.org/3/tutorial/venv.html?WT.mc_id=academic-105485-koreyst) Python e pacotes. Ele também é útil para instalar pacotes que não estão disponíveis via `pip`.

You can follow the [MiniConda installation guide](https://docs.anaconda.com/free/miniconda/#quick-command-line-install?WT.mc_id=academic-105485-koreyst) to set it up.
Você pode seguir o [guia de instalação do MiniConda](https://docs.anaconda.com/free/miniconda/#quick-command-line-install?WT.mc_id=academic-105485-koreyst) para configurá-lo.

With Miniconda installed, you need to clone the [repository](https://github.com/microsoft/generative-ai-for-beginners/fork?WT.mc_id=academic-105485-koreyst) (if you haven't already)
Com o Miniconda instalado, você precisa clonar o [repositório](https://github.com/microsoft/generative-ai-for-beginners/fork?WT.mc_id=academic-105485-koreyst) (caso ainda não tenha feito isso).

Next, you need to create a virtual environment. To do this with Conda, go ahead and create a new environment file (_environment.yml_). If you are following along using Codespaces, create this within the `.devcontainer` directory, thus `.devcontainer/environment.yml`.
Em seguida, você precisa criar um ambiente virtual. Para fazer isso com o Conda, crie um novo arquivo de ambiente (_environment.yml_). Se estiver usando Codespaces, crie-o dentro do diretório `.devcontainer`, portanto, `.devcontainer/environment.yml`.

Vá em frente e preencha seu arquivo de ambiente com o trecho abaixo:

Expand Down Expand Up @@ -171,21 +171,21 @@ jupyterhub

Isso iniciará uma instância do Jupyter e o URL para acessá-lo será mostrado na janela da linha de comando.

Uma vez que você acessa o URL, deve ver o esboço do curso e ser capaz de navegar para qualquer arquivo `*.ipynb` file. For example, `08-building-search-applications/python/oai-solution.ipynb`.
Uma vez que você acessa o URL, deve ver o esboço do curso e ser capaz de navegar para qualquer arquivo `*.ipynb`. Por Exemplo, `08-building-search-applications/python/oai-solution.ipynb`.

### Running in a container
### Executando em um contêiner

An alternative to setting everything up on your computer or Codespace is to use a [container](https://en.wikipedia.org/wiki/Containerization_(computing)?WT.mc_id=academic-105485-koreyst). The special `.devcontainer` folder within the course repository makes it possible for VS Code to set up the project within a container. Outside of Codespaces, this will require the installation of Docker, and quite frankly, it involves a bit of work, so we recommend this only to those with experience working with containers.
Uma alternativa à configuração de tudo no seu computador ou no Codespace é usar um [contêiner](https://en.wikipedia.org/wiki/Containerization_(computing)?WT.mc_id=academic-105485-koreyst). A pasta especial `.devcontainer` dentro do repositório do curso permite que o VS Code configure o projeto dentro de um contêiner. Fora do Codespaces, isso exigirá a instalação do Docker e, francamente, envolve um pouco de trabalho, por isso recomendamos isso apenas para aqueles com experiência em trabalhar com contêineres.

One of the best ways to keep your API keys secure when using GitHub Codespaces is by using Codespace Secrets. Please follow the [Codespaces secrets management](https://docs.github.com/en/codespaces/managing-your-codespaces/managing-secrets-for-your-codespaces?WT.mc_id=academic-105485-koreyst) guide to learn more about this.
Uma das melhores maneiras de manter suas chaves de API seguras ao usar o GitHub Codespaces é usar o Codespace Secrets. Siga o guia [Gerenciamento de segredos do Codespaces](https://docs.github.com/en/codespaces/managing-your-codespaces/managing-secrets-for-your-codespaces?WT.mc_id=academic-105485-koreyst) para saber mais sobre isso.

## Lessons and Technical Requirements
## Lições e Requisitos Técnicos

The course has 6 concept lessons and 6 coding lessons.
O curso tem 6 lições conceituais e 6 lições de codificação.

For the coding lessons, we are using the Azure OpenAI Service. You will need access to the Azure OpenAI service and an API key to run this code. You can apply to get access by [completing this application](https://azure.microsoft.com/products/ai-services/openai-service?WT.mc_id=academic-105485-koreyst).
Para as lições de codificação, estamos usando o Serviço Azure OpenAI. Você precisará de acesso ao serviço Azure OpenAI e de uma chave de API para executar este código. Você pode solicitar acesso [preenchendo esta inscrição](https://azure.microsoft.com/products/ai-services/openai-service?WT.mc_id=academic-105485-koreyst).

While you wait for your application to be processed, each coding lesson also includes a `README.md` onde pode visualizar o código e os resultados.
Enquanto você aguarda o processamento da sua inscrição, cada lição de codificação também inclui um `README.md` onde você pode visualizar o código e os resultados.

## Usando o Serviço Azure OpenAI pela primeira vez

Expand Down Expand Up @@ -222,4 +222,4 @@ Este projeto adotou o [Código de Conduta de Código Aberto da Microsoft](https:
Agora que você completou os passos necessários para completar este curso, vamos começar com uma [introdução à IA Generativa e LLMs](../01-introduction-to-genai/README.md?WT.mc_id=academic-105485-koreyst).

**Aviso Legal**:
Este documento foi traduzido usando o serviço de tradução por IA [Co-op Translator](https://github.com/Azure/co-op-translator). Embora nos esforcemos pela precisão, esteja ciente de que traduções automatizadas podem conter erros ou imprecisões. O documento original em seu idioma nativo deve ser considerado a fonte autorizada. Para informações críticas, recomenda-se a tradução profissional humana. Não nos responsabilizamos por quaisquer mal-entendidos ou interpretações equivocadas decorrentes do uso desta tradução.
Este documento foi traduzido usando o serviço de tradução por IA [Co-op Translator](https://github.com/Azure/co-op-translator). Embora nos esforcemos pela precisão, esteja ciente de que traduções automatizadas podem conter erros ou imprecisões. O documento original em seu idioma nativo deve ser considerado a fonte autorizada. Para informações críticas, recomenda-se a tradução profissional humana. Não nos responsabilizamos por quaisquer mal-entendidos ou interpretações equivocadas decorrentes do uso desta tradução.
Loading