|
185 | 185 | "source": [ |
186 | 186 | "## Set endpoints\n", |
187 | 187 | "\n", |
188 | | - "Provide the endpoints you collected in a previous step. You can leave the API keys empty if you enabled role-based authentication. Otherwise, if you can't use roles, provide API keys for each resource." |
| 188 | + "Provide the endpoints you collected in a previous step. You can leave the API keys empty if you enabled role-based authentication. Otherwise, if you can't use roles, provide API keys for each resource.\n", |
| 189 | + "\n", |
| 190 | + "The Azure AI multiservce key must be provided even if you're using roles. The key isn't used on the connection, but it's currently used for billing purposes." |
189 | 191 | ] |
190 | 192 | }, |
191 | 193 | { |
|
196 | 198 | "source": [ |
197 | 199 | "# Set endpoints and API keys for Azure services\n", |
198 | 200 | "AZURE_SEARCH_SERVICE: str = \"PUT YOUR SEARCH SERVICE URL HERE\"\n", |
199 | | - "AZURE_SEARCH_KEY: str = \"DELETE IF USING ROLES, OTHERWISE PUT YOUR SEARCH SERVICE ADMIN KEY HERE\"\n", |
| 201 | + "# AZURE_SEARCH_KEY: str = \"DELETE IF USING ROLES, OTHERWISE PUT YOUR SEARCH SERVICE ADMIN KEY HERE\"\n", |
200 | 202 | "AZURE_OPENAI_ACCOUNT: str = \"PUT YOUR AZURE OPENAI ACCOUNT URL HERE\"\n", |
201 | | - "AZURE_OPENAI_KEY: str = \"DELETE IF USING ROLES, OTHERWISE PUT YOUR AZURE OPENAI KEY HERE\"\n", |
| 203 | + "# AZURE_OPENAI_KEY: str = \"DELETE IF USING ROLES, OTHERWISE PUT YOUR AZURE OPENAI KEY HERE\"\n", |
202 | 204 | "AZURE_AI_MULTISERVICE_ACCOUNT: str = \"PUT YOUR AZURE AI MULTISERVICE ACCOUNT URL HERE\"\n", |
203 | 205 | "AZURE_AI_MULTISERVICE_KEY: str = \"PUT YOUR AZURE AI MULTISERVICE KEY HERE. ROLES ARE USED TO CONNECT. KEY IS USED FOR BILLING.\"\n", |
204 | 206 | "AZURE_STORAGE_CONNECTION: str = \"PUT YOUR AZURE STORAGE CONNECTION STRING HERE (see example below for syntax)\"\n", |
|
513 | 515 | "source": [ |
514 | 516 | "## Search using a chat model\n", |
515 | 517 | "\n", |
516 | | - "This script sends a query, the query response, and a prompt to an LLM for chat completion. This time, the response is created using generative AI." |
| 518 | + "This script sends a query, the query response, and a prompt to an LLM for chat completion. This time, the response is created using generative AI.\n", |
| 519 | + "\n", |
| 520 | + "For more information about this step, its behaviors, and changing the settings, revisit [Search and generate answers](https://learn.microsoft.com/azure/search/tutorial-rag-build-solution-query) in the tutorial." |
517 | 521 | ] |
518 | 522 | }, |
519 | 523 | { |
|
578 | 582 | "\n", |
579 | 583 | "print(response.choices[0].message.content)" |
580 | 584 | ] |
| 585 | + }, |
| 586 | + { |
| 587 | + "cell_type": "markdown", |
| 588 | + "metadata": {}, |
| 589 | + "source": [] |
581 | 590 | } |
582 | 591 | ], |
583 | 592 | "metadata": { |
|
0 commit comments