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
1. Open the project you want to testin Visual Studio code or Visual Studio.
226
+
227
+
### Create the sample app
211
228
212
229
Complete the following steps to create a .NET console app to connect to an AI model.
213
230
@@ -264,15 +281,15 @@ Sure! Here are a few hotels that offer complimentary breakfast:
264
281
instant oatmeal, bagels, and muffins
265
282
```
266
283
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.
270
285
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
272
287
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:
274
289
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.
276
293
277
294
## Send a complex RAG query
278
295
@@ -311,7 +328,7 @@ The output from Azure OpenAI consists of recommendations for several hotels, suc
311
328
- Deluxe Room, 2 Queen Beds (Amenities): $139.99 per night
312
329
```
313
330
314
-
## Troubleshooting errors
331
+
## Troubleshooting
315
332
316
333
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`.
0 commit comments