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
-**Important**: Python and the pip package manager must be in the path in Windows for the setup scripts to work.
33
-
-**Important**: Ensure you can run `python --version` from console. On Ubuntu, you might need to run `sudo apt install python-is-python3` to link `python` to `python3`.
34
-
-[Node.js](https://nodejs.org/en/download/)
35
-
-[Git](https://git-scm.com/downloads)
36
-
-[Powershell 7+ (pwsh)](https://github.com/powershell/powershell) - For Windows users only.
37
-
-**Important**: Ensure you can run `pwsh.exe` from a PowerShell command. If this fails, you likely need to upgrade PowerShell.
***Important**: Python and the pip package manager must be in the path in Windows for the setup scripts to work.
34
+
***Important**: Ensure you can run `python --version` from console. On Ubuntu, you might need to run `sudo apt install python-is-python3` to link `python` to `python3`.
35
+
*[Node.js](https://nodejs.org/en/download/)
36
+
*[Git](https://git-scm.com/downloads)
37
+
*[Powershell 7+ (pwsh)](https://github.com/powershell/powershell) - For Windows users only.
38
+
***Important**: Ensure you can run `pwsh.exe` from a PowerShell command. If this fails, you likely need to upgrade PowerShell.
38
39
39
40
>NOTE: Your Azure Account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator) or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
40
41
@@ -54,7 +55,7 @@ You can run this repo virtually by using GitHub Codespaces or VS Code Remote Con
54
55
1. Run `azd init -t azure-search-openai-demo`
55
56
* For the target location, the regions that currently support the models used in this sample are **East US** or **South Central US**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models)
56
57
57
-
#### Starting from scratch:
58
+
#### Starting from scratch
58
59
59
60
Execute the following command, if you don't have any pre-existing Azure services and want to start from a fresh deployment.
60
61
@@ -64,10 +65,10 @@ Execute the following command, if you don't have any pre-existing Azure services
64
65
It will look like the following:
65
66
66
67

67
-
68
+
68
69
> NOTE: It may take a minute for the application to be fully deployed. If you see a "Python Developer" welcome screen, then wait a minute and refresh the page.
69
70
70
-
#### Use existing resources:
71
+
#### Use existing resources
71
72
72
73
1. Run `azd env set AZURE_OPENAI_SERVICE {Name of existing OpenAI service}`
73
74
1. Run `azd env set AZURE_OPENAI_RESOURCE_GROUP {Name of existing resource group that OpenAI service is provisioned to}`
@@ -77,10 +78,12 @@ It will look like the following:
77
78
78
79
> NOTE: You can also use existing Search and Storage Accounts. See `./infra/main.parameters.json` for list of environment variables to pass to `azd env set` to configure those existing resources.
79
80
80
-
#### Deploying or re-deploying a local clone of the repo:
81
+
#### Deploying or re-deploying a local clone of the repo
82
+
81
83
* Simply run `azd up`
82
84
83
-
#### Running locally:
85
+
#### Running locally
86
+
84
87
1. Run `azd login`
85
88
2. Change dir to `app`
86
89
3. Run `./start.ps1` or `./start.sh` or run the "VS Code Task: Start App" to start the project locally.
@@ -100,6 +103,7 @@ Run the following if you want to give someone else access to completely deployed
100
103
* Running locally: navigate to 127.0.0.1:5000
101
104
102
105
Once in the web app:
106
+
103
107
* Try different topics in chat or Q&A context. For chat, try follow up questions, clarifications, ask to simplify or elaborate on answer, etc.
104
108
* Explore citations and sources
105
109
* Click on "settings" to try different options, tweak prompts, etc.
>Note: The PDF documents used in this demo contain information generated using a language model (Azure OpenAI Service). The information contained in these documents is only for demonstration purposes and does not reflect the opinions or beliefs of Microsoft. Microsoft makes no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information contained in this document. All rights reserved to Microsoft.
115
120
116
121
### FAQ
@@ -121,6 +126,6 @@ Once in the web app:
121
126
122
127
### Troubleshooting
123
128
124
-
If you see this error while running `azd deploy`: `read /tmp/azd1992237260/backend_env/lib64: is a directory`, then delete the `./app/backend/backend_env folder` and re-run the `azd deploy` command. This issue is being tracked here: https://github.com/Azure/azure-dev/issues/1237
129
+
If you see this error while running `azd deploy`: `read /tmp/azd1992237260/backend_env/lib64: is a directory`, then delete the `./app/backend/backend_env folder` and re-run the `azd deploy` command. This issue is being tracked here: <https://github.com/Azure/azure-dev/issues/1237>
125
130
126
-
If the web app fails to deploy and you receive a '404 Not Found' message in your browser, run 'azd deploy'.
131
+
If the web app fails to deploy and you receive a '404 Not Found' message in your browser, run 'azd deploy'.
0 commit comments