You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rag-javascript.md
+7-15Lines changed: 7 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,29 +182,21 @@ A search index provides grounding data for the chat model. We recommend the hote
182
182
]}
183
183
```
184
184
185
-
### Get service information for programmatic access
185
+
## Get service endpoints
186
186
187
-
To use the Azure AI Search and Azure OpenAI APIs, you need to know the service endpoints and API keys. You can get this information from the Azure portal.
187
+
In the remaining sections, you set up API calls to Azure OpenAI and Azure AI Search. Get the service endpoints so that you can provide them as variables in your code.
188
188
189
-
Sign in to the [Azure portal](https://portal.azure.com).
190
-
191
-
192
-
### Get Azure AI service information
189
+
1. Sign in to the [Azure portal](https://portal.azure.com).
193
190
194
191
1. [Find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
195
192
196
-
1. On the **Overview** home page, copy the URL. An example endpoint might look like `https://example.search.windows.net`. This is your AZURE_SEARCH_ENDPOINT used in the next section.
197
-
1. On the left menu, select **Keys** to view the API keys. Copy the key value. This is your AZURE_SEARCH_API_KEY used in the next section.
198
-
199
-
200
-
### Get Azure OpenAI service information
193
+
1. On the **Overview** home page, copy the URL. An example endpoint might look like `https://example.search.windows.net`.
201
194
202
195
1. [Find your Azure OpenAI service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.CognitiveServices%2Faccounts).
203
196
204
-
1. On the **Overview** home page, select the link to view the endpoints. Copy the URL. An example endpoint might look like `https://example.openai.azure.com/`. This is your AZURE_OPENAI_ENDPOINT used in the next section.
205
-
1. **TBD** - key, api version, and deployment model in foundry
197
+
1. On the **Overview** home page, select the link to view the endpoints. Copy the URL. An example endpoint might look like `https://example.openai.azure.com/`.
206
198
207
-
### Set up environment variables for local development
199
+
## Set up environment variables for local development
208
200
209
201
1. Create a `.env` file.
210
202
1. Add the following environment variables to the `.env` file, replacing the values with your own service endpoints and keys.
@@ -243,7 +235,7 @@ Setup project with Visual Studio Code and TypeScript.
You're using Microsoft Entra ID and role assignments for the connection. Make sure you're logged in to the same tenant and subscription as Azure AI Search and Azure OpenAI. You can use the Azure CLI on the command line to show current properties, change properties, and to sign in. For more information, see [Connect without keys](../../search-get-started-rbac.md).
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rag-typescript.md
+7-17Lines changed: 7 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,40 +183,30 @@ A search index provides grounding data for the chat model. We recommend the hote
183
183
]}
184
184
```
185
185
186
-
### Get service information for programmatic access
186
+
## Get service endpoints
187
187
188
-
To use the Azure AI Search and Azure OpenAI APIs, you need to know the service endpoints and API keys. You can get this information from the Azure portal.
188
+
In the remaining sections, you set up API calls to Azure OpenAI and Azure AI Search. Get the service endpoints so that you can provide them as variables in your code.
189
189
190
-
Sign in to the [Azure portal](https://portal.azure.com).
191
-
192
-
193
-
### Get Azure AI service information
190
+
1. Sign in to the [Azure portal](https://portal.azure.com).
194
191
195
192
1. [Find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
196
193
197
-
1. On the **Overview** home page, copy the URL. An example endpoint might look like `https://example.search.windows.net`. This is your AZURE_SEARCH_ENDPOINT used in the next section.
198
-
1. On the left menu, select **Keys** to view the API keys. Copy the key value. This is your AZURE_SEARCH_API_KEY used in the next section.
199
-
200
-
201
-
### Get Azure OpenAI service information
194
+
1. On the **Overview** home page, copy the URL. An example endpoint might look like `https://example.search.windows.net`.
202
195
203
196
1. [Find your Azure OpenAI service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.CognitiveServices%2Faccounts).
204
197
205
-
1. On the **Overview** home page, select the link to view the endpoints. Copy the URL. An example endpoint might look like `https://example.openai.azure.com/`. This is your AZURE_OPENAI_ENDPOINT used in the next section.
206
-
1. **TBD** - key, api version, and deployment model in foundry
198
+
1. On the **Overview** home page, select the link to view the endpoints. Copy the URL. An example endpoint might look like `https://example.openai.azure.com/`.
207
199
208
-
### Set up environment variables for local development
200
+
## Set up environment variables for local development
209
201
210
202
1. Create a `.env` file.
211
203
1. Add the following environment variables to the `.env` file, replacing the values with your own service endpoints and keys.
212
204
213
205
```plaintext
214
206
AZURE_SEARCH_ENDPOINT=<YOUR AZURE AI SEARCH ENDPOINT>
215
-
AZURE_SEARCH_API_KEY=<YOUR AZURE AI SEARCH API KEY>
AZURE_OPENAI_VERSION=<YOUR AZURE OPENAI API VERSION>
221
211
AZURE_DEPLOYMENT_MODEL=<YOUR DEPLOYMENT NAME>
222
212
```
@@ -278,7 +268,7 @@ Setup project with Visual Studio Code and TypeScript.
278
268
}
279
269
```
280
270
281
-
## Authenticate to Azure locally
271
+
## Sign in to Azure
282
272
283
273
You're using Microsoft Entra ID and role assignments for the connection. Make sure you're logged in to the same tenant and subscription as Azure AI Search and Azure OpenAI. You can use the Azure CLI on the command line to show current properties, change properties, and to sign in. For more information, see [Connect without keys](../../search-get-started-rbac.md).
0 commit comments