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
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,15 @@ ms.date: 06/05/2025
14
14
-[Choose a region](/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#global-standard-model-availability) that supports the chat completion model you want to use (gpt-4o, gpt-4o-mini, or an equivalent model).
15
15
-[Deploy the chat completion model](/azure/ai-foundry/how-to/deploy-models-openai) in Azure AI Foundry or [use another approach](/azure/ai-services/openai/how-to/working-with-models).
16
16
17
-
- An [Azure AI Search resource](search-create-service-portal.md).
17
+
- An [Azure AI Search resource](../search-create-service-portal.md).
18
18
- Use the same region as your Azure OpenAI resource.
-[Visual Studio Code](https://code.visualstudio.com/download).
23
23
-[Node.JS with LTS](https://nodejs.org/en/download/).
24
24
25
-
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](search-region-support.md#azure-public-regions).
25
+
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](../search-region-support.md#azure-public-regions).
26
26
27
27
## Configure access
28
28
@@ -63,7 +63,7 @@ A search index provides grounding data for the chat model. We recommend the hote
63
63
64
64
1. In the Azure portal, [find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
65
65
66
-
1. On the **Overview** home page, select [**Import data**](search-get-started-portal.md) to start the wizard.
66
+
1. On the **Overview** home page, select [**Import data**](../search-get-started-portal.md) to start the wizard.
67
67
68
68
1. On the **Connect to your data** page, select **Samples** from the dropdown list.
69
69
@@ -118,9 +118,9 @@ A search index provides grounding data for the chat model. We recommend the hote
118
118
119
119
1. **Save** your changes.
120
120
121
-
1. Run the following query in [Search Explorer](search-explorer.md) to test your index: `complimentary breakfast`.
121
+
1. Run the following query in [Search Explorer](../search-explorer.md) to test your index: `complimentary breakfast`.
122
122
123
-
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
123
+
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](../search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
124
124
125
125
```
126
126
{
@@ -197,7 +197,7 @@ In the remaining sections, you set up API calls to Azure OpenAI and Azure AI Sea
197
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/`.
198
198
199
199
200
-
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).
200
+
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).
201
201
202
202
Run each of the following commands in sequence.
203
203
@@ -387,21 +387,21 @@ The preceding code does the following:
387
387
388
388
## Troubleshooting
389
389
390
-
If you get a **Forbidden** error message, check Azure AI Search configuration to make sure role-based access is enabled.
390
+
If you get a **Forbidden** error message, check Azure AI Search configuration to make sure role-based access is enabled.
391
391
392
-
If you get an **Authorization failed** error message, wait a few minutes and try again. It can take several minutes for role assignments to become operational.
392
+
If you get an **Authorization failed** error message, wait a few minutes and try again. It can take several minutes for role assignments to become operational.
393
393
394
-
If you get a **Resource not found** error message, check the resource URIs and make sure the API version on the chat model is valid.
394
+
If you get a **Resource not found** error message, check the resource URIs and make sure the API version on the chat model is valid.
395
395
396
-
Otherwise, to experiment further, change the query and rerun the last step to better understand how the model works with the grounding data.
396
+
Otherwise, to experiment further, change the query and rerun the last step to better understand how the model works with the grounding data.
397
397
398
-
You can also modify the prompt to change the tone or structure of the output.
398
+
You can also modify the prompt to change the tone or structure of the output.
399
399
400
-
You might also try the query without semantic ranking by setting `use_semantic_reranker=False` in the query parameters step. Semantic ranking can noticably improve the relevance of query results and the ability of the LLM to return useful information. Experimentation can help you decide whether it makes a difference for your content.
400
+
You might also try the query without semantic ranking by setting `use_semantic_reranker=False` in the query parameters step. Semantic ranking can noticably improve the relevance of query results and the ability of the LLM to return useful information. Experimentation can help you decide whether it makes a difference for your content.
401
401
402
402
## Send a complex RAG query
403
403
404
-
Azure AI Search supports [complex types](search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address` is an example of a complex type, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and `Address.Country`. The index also has complex collection of `Rooms` for each hotel.
404
+
Azure AI Search supports [complex types](../search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address` is an example of a complex type, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and `Address.Country`. The index also has complex collection of `Rooms` for each hotel.
405
405
406
406
If your index has complex types, change your prompt to include formatting instructions:
407
407
@@ -595,4 +595,4 @@ You can find and manage resources in the Azure portal by using the **All resourc
595
595
596
596
## Related content
597
597
598
-
-[Tutorial: Build a RAG solution in Azure AI Search](tutorial-rag-build-solution.md)
598
+
-[Tutorial: Build a RAG solution in Azure AI Search](../tutorial-rag-build-solution.md)
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rag-python.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,14 @@ ms.date: 06/05/2025
14
14
-[Choose a region](/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#global-standard-model-availability) that supports the chat completion model you want to use (gpt-4o, gpt-4o-mini, or an equivalent model).
15
15
-[Deploy the chat completion model](/azure/ai-foundry/how-to/deploy-models-openai) in Azure AI Foundry or [use another approach](/azure/ai-services/openai/how-to/working-with-models).
16
16
17
-
- An [Azure AI Search resource](search-create-service-portal.md).
17
+
- An [Azure AI Search resource](../search-create-service-portal.md).
18
18
- Use the same region as your Azure OpenAI resource.
-[Visual Studio Code](https://code.visualstudio.com/download) with the [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and the [Jupyter package](https://pypi.org/project/jupyter/). For more information, see [Python in Visual Studio Code](https://code.visualstudio.com/docs/languages/python).
23
23
24
-
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](search-region-support.md#azure-public-regions).
24
+
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](../search-region-support.md#azure-public-regions).
25
25
26
26
## Download file
27
27
@@ -68,7 +68,7 @@ A search index provides grounding data for the chat model. We recommend the hote
68
68
69
69
1. In the Azure portal, [find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
70
70
71
-
1. On the **Overview** home page, select [**Import data**](search-get-started-portal.md) to start the wizard.
71
+
1. On the **Overview** home page, select [**Import data**](../search-get-started-portal.md) to start the wizard.
72
72
73
73
1. On the **Connect to your data** page, select **Samples** from the dropdown list.
74
74
@@ -123,9 +123,9 @@ A search index provides grounding data for the chat model. We recommend the hote
123
123
124
124
1. **Save** your changes.
125
125
126
-
1. Run the following query in [Search Explorer](search-explorer.md) to test your index: `complimentary breakfast`.
126
+
1. Run the following query in [Search Explorer](../search-explorer.md) to test your index: `complimentary breakfast`.
127
127
128
-
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
128
+
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](../search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
129
129
130
130
```
131
131
{
@@ -215,7 +215,7 @@ It takes several minutes to create the environment. When the environment is read
215
215
216
216
## Sign in to Azure
217
217
218
-
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).
218
+
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).
219
219
220
220
Run each of the following commands in sequence.
221
221
@@ -352,7 +352,7 @@ This section uses Visual Studio Code and Python to call the chat completion APIs
352
352
353
353
## Send a complex RAG query
354
354
355
-
Azure AI Search supports [complex types](search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address`is an example of a complextype, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and`Address.Country`. The index also has complex collection of `Rooms`for each hotel.
355
+
Azure AI Search supports [complex types](../search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address`is an example of a complextype, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and`Address.Country`. The index also has complex collection of `Rooms`for each hotel.
356
356
357
357
If your index has complex types, your query can provide those fields if you first convert the search results output to JSON, and then pass the JSON to the chat model. The following example adds complex types to the request. The formatting instructions include a JSON specification.
358
358
@@ -459,4 +459,4 @@ You can find and manage resources in the Azure portal by using the **All resourc
459
459
460
460
## Related content
461
461
462
-
- [Tutorial: Build a RAG solution in Azure AI Search](tutorial-rag-build-solution.md)
462
+
- [Tutorial: Build a RAG solution in Azure AI Search](../tutorial-rag-build-solution.md)
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rag-typescript.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,16 @@ ms.date: 06/05/2025
14
14
-[Choose a region](/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#global-standard-model-availability) that supports the chat completion model you want to use (gpt-4o, gpt-4o-mini, or an equivalent model).
15
15
-[Deploy the chat completion model](/azure/ai-foundry/how-to/deploy-models-openai) in Azure AI Foundry or [use another approach](/azure/ai-services/openai/how-to/working-with-models).
16
16
17
-
- An [Azure AI Search resource](search-create-service-portal.md).
17
+
- An [Azure AI Search resource](../search-create-service-portal.md).
18
18
- Use the same region as your Azure OpenAI resource.
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](search-region-support.md#azure-public-regions).
26
+
To meet the same-region requirement, start by reviewing the [regions for the chat model](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability) you want to use. After you identify a region, confirm that Azure AI Search is available in the [same region](../search-region-support.md#azure-public-regions).
27
27
28
28
## Configure access
29
29
@@ -64,7 +64,7 @@ A search index provides grounding data for the chat model. We recommend the hote
64
64
65
65
1. In the Azure portal, [find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
66
66
67
-
1. On the **Overview** home page, select [**Import data**](search-get-started-portal.md) to start the wizard.
67
+
1. On the **Overview** home page, select [**Import data**](../search-get-started-portal.md) to start the wizard.
68
68
69
69
1. On the **Connect to your data** page, select **Samples** from the dropdown list.
70
70
@@ -119,9 +119,9 @@ A search index provides grounding data for the chat model. We recommend the hote
119
119
120
120
1. **Save** your changes.
121
121
122
-
1. Run the following query in [Search Explorer](search-explorer.md) to test your index: `complimentary breakfast`.
122
+
1. Run the following query in [Search Explorer](../search-explorer.md) to test your index: `complimentary breakfast`.
123
123
124
-
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
124
+
Output should look similar to the following example. Results that are returned directly from the search engine consist of fields and their verbatim values, along with metadata like a search score and a semantic ranking score and caption if you use semantic ranker. We used a [select statement](../search-query-odata-select.md) to return just the HotelName, Description, and Tags fields.
125
125
126
126
```
127
127
{
@@ -198,7 +198,7 @@ In the remaining sections, you set up API calls to Azure OpenAI and Azure AI Sea
198
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/`.
199
199
200
200
201
-
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).
201
+
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).
202
202
203
203
Run each of the following commands in sequence.
204
204
@@ -433,7 +433,7 @@ The preceding code does the following:
433
433
434
434
## Send a complex RAG query
435
435
436
-
Azure AI Search supports [complex types](search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address` is an example of a complex type, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and `Address.Country`. The index also has complex collection of `Rooms` for each hotel.
436
+
Azure AI Search supports [complex types](../search-howto-complex-data-types.md) for nested JSON structures. In the hotels-sample-index, `Address` is an example of a complex type, consisting of `Address.StreetAddress`, `Address.City`, `Address.StateProvince`, `Address.PostalCode`, and `Address.Country`. The index also has complex collection of `Rooms` for each hotel.
437
437
438
438
If your index has complex types, change your prompt to include formatting instructions:
439
439
@@ -627,4 +627,4 @@ You can find and manage resources in the Azure portal by using the **All resourc
627
627
628
628
## Related content
629
629
630
-
-[Tutorial: Build a RAG solution in Azure AI Search](tutorial-rag-build-solution.md)
630
+
-[Tutorial: Build a RAG solution in Azure AI Search](../tutorial-rag-build-solution.md)
0 commit comments