|
25 | 25 | "source": [ |
26 | 26 | "## Prerequisites\n", |
27 | 27 | "\n", |
28 | | - "- Azure AI Search, Basic tier or higher is recommended. Enable semantic ranking and role-based access control.\n", |
| 28 | + "- [Azure OpenAI](https://learn.microsoft.com/azure/ai-services/openai/how-to/create-resource)\n", |
29 | 29 | "\n", |
30 | | - "- Azure OpenAI, in the same region as Azure AI Search. Configure Azure OpenAI to use a system managed identity.\n", |
| 30 | + " - Configure Azure OpenAI to use a system managed identity.\n", |
| 31 | + " - Deploy a chat model (GPT-3.5-Turbo, GPT-4, or equivalent LLM).\n", |
31 | 32 | "\n", |
32 | | - "- Deployment GPT-3.5-Turbo, GPT-4, or equivalent LLM.\n", |
| 33 | + "- [Azure AI Search](https://learn.microsoft.com/azure/search/search-create-service-portal)\n", |
33 | 34 | "\n", |
34 | | - "- Create the hotels-sample-index using [this quickstart](https://learn.microsoft.com/azure/search/search-get-started-portal), and then modify it to use this semantic configuration:\n", |
| 35 | + " - Basic tier or higher is recommended.\n", |
| 36 | + " - Choose the same region as Azure OpenAI.\n", |
| 37 | + " - Enable semantic ranking.\n", |
| 38 | + " - Enable role-based access control.\n", |
| 39 | + "\n", |
| 40 | + "## Configure access\n", |
| 41 | + "\n", |
| 42 | + "This quickstart assumes authentication and authorization using Microsoft Entra ID and role assignments. It also assumes that you run this code from your local device.\n", |
| 43 | + "\n", |
| 44 | + "- On Azure AI Search, create a role assignment for the Azure OpenAI system managed identity. Required roles: **Search Index Data Reader**, **Search Service Contributor**.\n", |
| 45 | + "\n", |
| 46 | + "- Make sure you also have a role assignment that gives you permissions to create and query objects: Required roles: **Search Index Data Reader**, **Search Index Data Contributor**, **Search Service Contributor**.\n", |
| 47 | + "\n", |
| 48 | + "- On Azure OpenAI, create a role assigment for yourself to send requests from your local device: Required role: **Cognitive Services OpenAI User**.\n", |
| 49 | + "\n", |
| 50 | + "## Create the sample index\n", |
| 51 | + "\n", |
| 52 | + "This quickstart assumes the hotels-sample-index, which you can create in minutes using [this quickstart](https://learn.microsoft.com/azure/search/search-get-started-portal).\n", |
| 53 | + "\n", |
| 54 | + "Once the index exists, modify it in the Azure portal to use this semantic configuration:\n", |
35 | 55 | " \n", |
36 | 56 | " ```json\n", |
37 | 57 | " \"semantic\": {\n", |
|
49 | 69 | " }]},\n", |
50 | 70 | " ```\n", |
51 | 71 | "\n", |
52 | | - "- On Azure AI Search, create a role assignment for the Azure OpenAI managed identity. Required roles: **Search Index Data Reader**, **Search Service Contributor**.\n", |
53 | | - "\n", |
54 | | - "- On Azure OpenAI, create a role assigment for the user running the code: Required role: **Cognitive Services OpenAI User**." |
| 72 | + "Now that you have your Azure resources, an index, and model in place, you can run the script to chat with the index." |
55 | 73 | ] |
56 | 74 | }, |
57 | 75 | { |
|
0 commit comments