Skip to content

Commit beaaaf1

Browse files
committed
edits
1 parent 29e354f commit beaaaf1

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

articles/search/includes/quickstarts/search-get-started-rag-javascript.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,29 +182,21 @@ A search index provides grounding data for the chat model. We recommend the hote
182182
]}
183183
```
184184
185-
### Get service information for programmatic access
185+
## Get service endpoints
186186
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.
188188
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).
193190
194191
1. [Find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
195192
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`.
201194
202195
1. [Find your Azure OpenAI service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.CognitiveServices%2Faccounts).
203196
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/`.
206198
207-
### Set up environment variables for local development
199+
## Set up environment variables for local development
208200
209201
1. Create a `.env` file.
210202
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.
243235
npm install @azure/identity @azure/search-documents openai dotenv
244236
```
245237

246-
## Authenticate to Azure locally
238+
## Sign in to Azure
247239

248240
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).
249241

articles/search/includes/quickstarts/search-get-started-rag-typescript.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -183,40 +183,30 @@ A search index provides grounding data for the chat model. We recommend the hote
183183
]}
184184
```
185185
186-
### Get service information for programmatic access
186+
## Get service endpoints
187187
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.
189189
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).
194191
195192
1. [Find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
196193
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`.
202195
203196
1. [Find your Azure OpenAI service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.CognitiveServices%2Faccounts).
204197
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/`.
207199
208-
### Set up environment variables for local development
200+
## Set up environment variables for local development
209201
210202
1. Create a `.env` file.
211203
1. Add the following environment variables to the `.env` file, replacing the values with your own service endpoints and keys.
212204
213205
```plaintext
214206
AZURE_SEARCH_ENDPOINT=<YOUR AZURE AI SEARCH ENDPOINT>
215-
AZURE_SEARCH_API_KEY=<YOUR AZURE AI SEARCH API KEY>
216207
AZURE_SEARCH_INDEX_NAME=hotels-sample-index
217208
218209
AZURE_OPENAI_ENDPOINT=<YOUR AZURE OPENAI ENDPOINT>
219-
AZURE_OPENAI_API_KEY=<YOUR AZURE OPENAI API KEY>
220210
AZURE_OPENAI_VERSION=<YOUR AZURE OPENAI API VERSION>
221211
AZURE_DEPLOYMENT_MODEL=<YOUR DEPLOYMENT NAME>
222212
```
@@ -278,7 +268,7 @@ Setup project with Visual Studio Code and TypeScript.
278268
}
279269
```
280270

281-
## Authenticate to Azure locally
271+
## Sign in to Azure
282272

283273
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).
284274

0 commit comments

Comments
 (0)