Skip to content

Commit b301d19

Browse files
committed
fixes
1 parent 268fbd0 commit b301d19

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

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

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,24 @@ az login --tenant <PUT YOUR TENANT ID HERE>
207207

208208
You should now be logged in to Azure from your local device.
209209

210-
## Create the .NET app
210+
## Set up the .NET app
211+
212+
To follow along with the steps ahead, you can either clone the completed sample app from GitHub, or create the app yourself.
213+
214+
### Clone the sample repo
215+
216+
To access the completed sample app for this article:
217+
218+
1. Clone the [azure-search-dotnet-samples](https://github.com/Azure-Samples/azure-search-dotnet-samples) repo from GitHub.
219+
220+
```bash
221+
git clone https://github.com/Azure-Samples/azure-search-dotnet-samples
222+
```
223+
224+
1. Navigate into the `quickstart-rag` folder.
225+
1. Open the project you want to test in Visual Studio code or Visual Studio.
226+
227+
### Create the sample app
211228

212229
Complete the following steps to create a .NET console app to connect to an AI model.
213230

@@ -264,15 +281,15 @@ Sure! Here are a few hotels that offer complimentary breakfast:
264281
instant oatmeal, bagels, and muffins
265282
```
266283

267-
If you get a **Forbidden** error message, check Azure AI Search configuration to make sure role-based access is enabled.
268-
269-
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.
284+
To experiment further, change the query and rerun the last step to better understand how the model works with the grounding data. You can also modify the prompt to change the tone or structure of the output.
270285

271-
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.
286+
### Troubleshooting
272287

273-
Otherwise, to experiment further, change the query and rerun the last step to better understand how the model works with the grounding data.
288+
You might receive any of the following errors while testing:
274289

275-
You can also modify the prompt to change the tone or structure of the output.
290+
- **Forbidden**: Check Azure AI Search configuration to make sure role-based access is enabled.
291+
- **Authorization failed**: Wait a few minutes and try again. It can take several minutes for role assignments to become operational.
292+
- **Resource not found**: Check the resource URIs and make sure the API version on the chat model is valid.
276293

277294
## Send a complex RAG query
278295

@@ -311,7 +328,7 @@ The output from Azure OpenAI consists of recommendations for several hotels, suc
311328
- Deluxe Room, 2 Queen Beds (Amenities): $139.99 per night
312329
```
313330

314-
## Troubleshooting errors
331+
## Troubleshooting
315332

316333
If you see output messages while debugging related to `ManagedIdentityCredential` and token acquisition failures, it could be that you have multiple tenants, and your Azure sign-in is using a tenant that doesn't have your search service. To get your tenant ID, search the Azure portal for "tenant properties" or run `az login tenant list`.
317334

0 commit comments

Comments
 (0)