|
1 |
| -<!-- |
2 |
| -CO_OP_TRANSLATOR_METADATA: |
3 |
| -{ |
4 |
| - "original_hash": "49fa13c21a816ffcc7740ab17ba024a9", |
5 |
| - "translation_date": "2025-05-20T08:55:10+00:00", |
6 |
| - "source_file": "00-course-setup/README.md", |
7 |
| - "language_code": "es" |
8 |
| -} |
9 |
| ---> |
10 |
| -en tu cuenta de GitHub. |
11 |
| - |
12 |
| -Selecciona los `Fine-grained tokens` option on the left side of your screen. |
13 |
| - |
14 |
| -Then select `Generar nuevo token`. |
15 |
| - |
16 |
| - |
17 |
| - |
18 |
| -You will be prompted to enter a name for your token, select the expiration date (Recommended: 30 Days), and select the scopes for your token (Public Repositories). |
19 |
| - |
20 |
| -Copy your new token that you have just created. You will now add this to your `.env` file included in this course. |
21 |
| - |
22 |
| - |
23 |
| -### Step 2: Create Your `.env` File |
24 |
| - |
25 |
| -To create your `.env` archivo y ejecuta el siguiente comando en tu terminal. |
26 |
| - |
27 |
| -```bash |
28 |
| -cp .env.example .env |
29 |
| -``` |
30 |
| - |
31 |
| -Esto copiará el archivo de ejemplo y creará un archivo `.env` in your directory and where you fill in the values for the environment variables. |
32 |
| - |
33 |
| -With your token copied, open the `.env` file in your favorite text editor and paste your token into the `GITHUB_TOKEN` field. |
34 |
| - |
35 |
| -You should now be able to run the code samples of this course. |
36 |
| - |
37 |
| -## Set Up for Samples using Azure AI Foundry and Azure AI Agent Service |
38 |
| - |
39 |
| -### Step 1: Retrieve Your Azure Project Connection String |
40 |
| - |
41 |
| -Follow the steps to creating a project and agent in Azure AI Foundry found here: [Create a project in Azure AI Foundry](https://learn.microsoft.com/en-us/azure/ai-services/agents/quickstart?pivots=ai-foundry-portal?WT.mc_id=academic-105485-koreyst) |
42 |
| - |
43 |
| -Once you have created your project, you will need to retrieve the connection string for your project. |
44 |
| - |
45 |
| -This can be done by going to the **Overview** page of your project in the Azure AI Foundry portal. |
46 |
| - |
47 |
| - |
48 |
| - |
49 |
| -### Step 2: Create Your `.env` File |
50 |
| - |
51 |
| -To create your `.env` ejecuta el siguiente comando en tu terminal. |
52 |
| - |
53 |
| -```bash |
54 |
| -cp .env.example .env |
55 |
| -``` |
56 |
| - |
57 |
| -Esto copiará el archivo de ejemplo y creará un archivo `.env` in your directory and where you fill in the values for the environment variables. |
58 |
| - |
59 |
| -With your token copied, open the `.env` file in your favorite text editor and paste your token into the `PROJECT_CONNECTION_STRING` field. |
60 |
| - |
61 |
| -### Step 3: Sign in to Azure |
62 |
| - |
63 |
| -As a security best practice, we'll use [keyless authentication](https://learn.microsoft.com/azure/developer/ai/keyless-connections?tabs=csharp%2Cazure-cli?WT.mc_id=academic-105485-koreyst) to authenticate to Azure OpenAI with Microsoft Entra ID. Before you can do so, you'll first need to install the **Azure CLI** per the [installation instructions](https://learn.microsoft.com/cli/azure/install-azure-cli?WT.mc_id=academic-105485-koreyst) for your operating system. |
64 |
| - |
65 |
| -Next, open a terminal and run `az login --use-device-code` to sign in to your Azure account. |
66 |
| - |
67 |
| -Once you've logged in, select your subscription in the terminal. |
68 |
| - |
69 |
| - |
70 |
| -## Additional Envionment Variables - Azure Search and Azure OpenAI |
71 |
| - |
72 |
| -For the Agentic RAG Lesson - Lesson 5 - there are samples that use Azure Search and Azure OpenAI. |
73 |
| - |
74 |
| -If you want to run these samples, you will need to add the following environment variables to your `.env` file: |
75 |
| - |
76 |
| -### Overview Page (Project) |
77 |
| - |
78 |
| -- `AZURE_SUBSCRIPTION_ID` - Check **Project details** on the **Overview** page of your project. |
79 |
| - |
80 |
| -- `AZURE_AI_PROJECT_NAME` - Look at the top of the **Overview** page for your project. |
81 |
| - |
82 |
| -- `AZURE_OPENAI_SERVICE` - Find this in the **Included capabilities** tab for **Azure OpenAI Service** on the **Overview** page. |
83 |
| - |
84 |
| -### Management Center |
85 |
| - |
86 |
| -- `AZURE_OPENAI_RESOURCE_GROUP` - Go to **Project properties** on the **Overview** page of the **Management Center**. |
87 |
| - |
88 |
| -- `GLOBAL_LLM_SERVICE` - Under **Connected resources**, find the **Azure AI Services** connection name. If not listed, check the **Azure portal** under your resource group for the AI Services resource name. |
89 |
| - |
90 |
| -### Models + Endpoints Page |
91 |
| - |
92 |
| -- `AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME` - Select your embedding model (e.g., `text-embedding-ada-002`) and note the **Deployment name** from the model details. |
93 |
| - |
94 |
| -- `AZURE_OPENAI_CHAT_DEPLOYMENT_NAME` - Select your chat model (e.g., `gpt-4o-mini`) and note the **Deployment name** from the model details. |
95 |
| - |
96 |
| -### Azure Portal |
97 |
| - |
98 |
| -- `AZURE_OPENAI_ENDPOINT` - Look for **Azure AI services**, click on it, then go to **Resource Management**, **Keys and Endpoint**, scroll down to the "Azure OpenAI endpoints", and copy the one that says "Language APIs". |
99 |
| - |
100 |
| -- `AZURE_OPENAI_API_KEY` - From the same screen, copy KEY 1 or KEY 2. |
101 |
| - |
102 |
| -- `AZURE_SEARCH_SERVICE_ENDPOINT` - Find your **Azure AI Search** resource, click it, and see **Overview**. |
103 |
| - |
104 |
| -- `AZURE_SEARCH_API_KEY` - Then go to **Settings** and then **Keys** to copy the primary or secondary admin key. |
105 |
| - |
106 |
| -### External Webpage |
107 |
| - |
108 |
| -- `AZURE_OPENAI_API_VERSION` - Visit the [API version lifecycle](https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#latest-ga-api-release) page under **Latest GA API release**. |
109 |
| - |
110 |
| -### Setup keyless authentication |
111 |
| - |
112 |
| -Rather than hardcode your credentials, we'll use a keyless connection with Azure OpenAI. To do so, we'll import `DefaultAzureCredential` and later call the `DefaultAzureCredential` función para obtener las credenciales. |
113 |
| - |
114 |
| -```python |
115 |
| -from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential |
116 |
| -``` |
117 |
| - |
118 |
| -## ¿Atascado en algún lugar? |
119 |
| - |
120 |
| -Si tienes algún problema ejecutando esta configuración, únete a nuestro |
121 |
| - |
122 |
| -o |
123 |
| - |
124 |
| -. |
125 |
| - |
126 |
| -## Próxima lección |
127 |
| - |
128 |
| -Ahora estás listo para ejecutar el código de este curso, ¡feliz aprendizaje sobre el mundo de los Agentes de IA! |
129 |
| - |
130 |
| -[Introducción a los Agentes de IA y casos de uso de Agentes](../01-intro-to-ai-agents/README.md) |
131 |
| - |
132 |
| -**Aviso legal**: |
133 |
| -Este documento ha sido traducido utilizando el servicio de traducción automática [Co-op Translator](https://github.com/Azure/co-op-translator). Aunque nos esforzamos por la precisión, tenga en cuenta que las traducciones automáticas pueden contener errores o inexactitudes. El documento original en su idioma nativo debe considerarse la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables por malentendidos o interpretaciones erróneas derivadas del uso de esta traducción. |
| 1 | +<!-- |
| 2 | +CO_OP_TRANSLATOR_METADATA: |
| 3 | +{ |
| 4 | + "original_hash": "4543cc389d478e6d24354cf3b23c2b62", |
| 5 | + "translation_date": "2025-06-05T09:39:06+00:00", |
| 6 | + "source_file": "00-course-setup/README.md", |
| 7 | + "language_code": "es" |
| 8 | +} |
| 9 | +--> |
| 10 | +en tu cuenta de GitHub. |
| 11 | + |
| 12 | +Selecciona los `Fine-grained tokens` option on the left side of your screen. |
| 13 | + |
| 14 | +Then select `Generate new token`. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +You will be prompted to enter a name for your token, select the expiration date (Recommended: 30 Days), and select the scopes for your token (Public Repositories). |
| 19 | + |
| 20 | +Copy your new token that you have just created. You will now add this to your `.env` file included in this course. |
| 21 | + |
| 22 | + |
| 23 | +### Step 2: Create Your `.env` File |
| 24 | + |
| 25 | +To create your `.env` archivo y ejecuta el siguiente comando en tu terminal. |
| 26 | + |
| 27 | +```bash |
| 28 | +cp .env.example .env |
| 29 | +``` |
| 30 | + |
| 31 | +Esto copiará el archivo de ejemplo y creará un archivo `.env` in your directory and where you fill in the values for the environment variables. |
| 32 | + |
| 33 | +With your token copied, open the `.env` file in your favorite text editor and paste your token into the `GITHUB_TOKEN` field. |
| 34 | + |
| 35 | +You should now be able to run the code samples of this course. |
| 36 | + |
| 37 | +## Set Up for Samples using Azure AI Foundry and Azure AI Agent Service |
| 38 | + |
| 39 | +### Step 1: Retrieve Your Azure Project Connection String |
| 40 | + |
| 41 | +Follow the steps to create a project and agent in Azure AI Foundry found here: [Create a project in Azure AI Foundry](https://learn.microsoft.com/en-us/azure/ai-services/agents/quickstart?pivots=ai-foundry-portal?WT.mc_id=academic-105485-koreyst) |
| 42 | + |
| 43 | +Once you have created your project, you will need to retrieve the connection string for your project. |
| 44 | + |
| 45 | +This can be done by going to the **Overview** page of your project in the Azure AI Foundry portal. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +### Step 2: Create Your `.env` File |
| 50 | + |
| 51 | +To create your `.env` ejecuta el siguiente comando en tu terminal. |
| 52 | + |
| 53 | +```bash |
| 54 | +cp .env.example .env |
| 55 | +``` |
| 56 | + |
| 57 | +Esto copiará el archivo de ejemplo y creará un archivo `.env` in your directory and where you fill in the values for the environment variables. |
| 58 | + |
| 59 | +With your token copied, open the `.env` file in your favorite text editor and paste your token into the `PROJECT_CONNECTION_STRING` field. |
| 60 | + |
| 61 | +### Step 3: Sign in to Azure |
| 62 | + |
| 63 | +As a security best practice, we'll use [keyless authentication](https://learn.microsoft.com/azure/developer/ai/keyless-connections?tabs=csharp%2Cazure-cli?WT.mc_id=academic-105485-koreyst) to authenticate to Azure OpenAI with Microsoft Entra ID. Before you can do so, you'll first need to install the **Azure CLI** per the [installation instructions](https://learn.microsoft.com/cli/azure/install-azure-cli?WT.mc_id=academic-105485-koreyst) for your operating system. |
| 64 | + |
| 65 | +Next, open a terminal and run `az login --use-device-code` to sign in to your Azure account. |
| 66 | + |
| 67 | +Once you've logged in, select your subscription in the terminal. |
| 68 | + |
| 69 | + |
| 70 | +## Additional Environment Variables - Azure Search and Azure OpenAI |
| 71 | + |
| 72 | +For the Agentic RAG Lesson - Lesson 5 - there are samples that use Azure Search and Azure OpenAI. |
| 73 | + |
| 74 | +If you want to run these samples, you will need to add the following environment variables to your `.env` file: |
| 75 | + |
| 76 | +### Overview Page (Project) |
| 77 | + |
| 78 | +- `AZURE_SUBSCRIPTION_ID` - Check **Project details** on the **Overview** page of your project. |
| 79 | + |
| 80 | +- `AZURE_AI_PROJECT_NAME` - Look at the top of the **Overview** page for your project. |
| 81 | + |
| 82 | +- `AZURE_OPENAI_SERVICE` - Find this in the **Included capabilities** tab for **Azure OpenAI Service** on the **Overview** page. |
| 83 | + |
| 84 | +### Management Center |
| 85 | + |
| 86 | +- `AZURE_OPENAI_RESOURCE_GROUP` - Go to **Project properties** on the **Overview** page of the **Management Center**. |
| 87 | + |
| 88 | +- `GLOBAL_LLM_SERVICE` - Under **Connected resources**, find the **Azure AI Services** connection name. If not listed, check the **Azure portal** under your resource group for the AI Services resource name. |
| 89 | + |
| 90 | +### Models + Endpoints Page |
| 91 | + |
| 92 | +- `AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME` - Select your embedding model (e.g., `text-embedding-ada-002`) and note the **Deployment name** from the model details. |
| 93 | + |
| 94 | +- `AZURE_OPENAI_CHAT_DEPLOYMENT_NAME` - Select your chat model (e.g., `gpt-4o-mini`) and note the **Deployment name** from the model details. |
| 95 | + |
| 96 | +### Azure Portal |
| 97 | + |
| 98 | +- `AZURE_OPENAI_ENDPOINT` - Look for **Azure AI services**, click on it, then go to **Resource Management**, **Keys and Endpoint**, scroll down to the "Azure OpenAI endpoints", and copy the one that says "Language APIs". |
| 99 | + |
| 100 | +- `AZURE_OPENAI_API_KEY` - From the same screen, copy KEY 1 or KEY 2. |
| 101 | + |
| 102 | +- `AZURE_SEARCH_SERVICE_ENDPOINT` - Find your **Azure AI Search** resource, click it, and see **Overview**. |
| 103 | + |
| 104 | +- `AZURE_SEARCH_API_KEY` - Then go to **Settings** and then **Keys** to copy the primary or secondary admin key. |
| 105 | + |
| 106 | +### External Webpage |
| 107 | + |
| 108 | +- `AZURE_OPENAI_API_VERSION` - Visit the [API version lifecycle](https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#latest-ga-api-release) page under **Latest GA API release**. |
| 109 | + |
| 110 | +### Setup keyless authentication |
| 111 | + |
| 112 | +Rather than hardcode your credentials, we'll use a keyless connection with Azure OpenAI. To do so, we'll import `DefaultAzureCredential` and later call the `DefaultAzureCredential` función para obtener las credenciales. |
| 113 | + |
| 114 | +```python |
| 115 | +from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential |
| 116 | +``` |
| 117 | + |
| 118 | +## ¿Atascado en algún lugar? |
| 119 | + |
| 120 | +Si tienes algún problema ejecutando esta configuración, únete a nuestro |
| 121 | + |
| 122 | +o |
| 123 | + |
| 124 | +. |
| 125 | + |
| 126 | +## Próxima Lección |
| 127 | + |
| 128 | +Ahora estás listo para ejecutar el código de este curso. ¡Feliz aprendizaje sobre el mundo de los Agentes de IA! |
| 129 | + |
| 130 | +[Introducción a los Agentes de IA y Casos de Uso](../01-intro-to-ai-agents/README.md) |
| 131 | + |
| 132 | +**Aviso Legal**: |
| 133 | +Este documento ha sido traducido utilizando el servicio de traducción automática [Co-op Translator](https://github.com/Azure/co-op-translator). Aunque nos esforzamos por la precisión, tenga en cuenta que las traducciones automáticas pueden contener errores o inexactitudes. El documento original en su idioma nativo debe considerarse la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por un humano. No nos hacemos responsables de ningún malentendido o interpretación errónea que surja del uso de esta traducción. |
0 commit comments