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
* note that this command will initialize a git repository and you do not need to clone this repository
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
@@ -65,10 +66,10 @@ Execute the following command, if you don't have any pre-existing Azure services
65
66
It will look like the following:
66
67
67
68

68
-
69
+
69
70
> 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.
70
71
71
-
#### Use existing resources:
72
+
#### Use existing resources
72
73
73
74
1. Run `azd env set AZURE_OPENAI_SERVICE {Name of existing OpenAI service}`
74
75
1. Run `azd env set AZURE_OPENAI_RESOURCE_GROUP {Name of existing resource group that OpenAI service is provisioned to}`
@@ -78,10 +79,12 @@ It will look like the following:
78
79
79
80
> 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.
80
81
81
-
#### Deploying or re-deploying a local clone of the repo:
82
+
#### Deploying or re-deploying a local clone of the repo
83
+
82
84
* Simply run `azd up`
83
85
84
-
#### Running locally:
86
+
#### Running locally
87
+
85
88
1. Run `azd login`
86
89
2. Change dir to `app`
87
90
3. Run `./start.ps1` or `./start.sh` or run the "VS Code Task: Start App" to start the project locally.
@@ -101,6 +104,7 @@ Run the following if you want to give someone else access to completely deployed
101
104
* Running locally: navigate to 127.0.0.1:5000
102
105
103
106
Once in the web app:
107
+
104
108
* Try different topics in chat or Q&A context. For chat, try follow up questions, clarifications, ask to simplify or elaborate on answer, etc.
105
109
* Explore citations and sources
106
110
* 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.
116
121
117
122
### FAQ
@@ -122,6 +127,6 @@ Once in the web app:
122
127
123
128
### Troubleshooting
124
129
125
-
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
130
+
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>
126
131
127
-
If the web app fails to deploy and you receive a '404 Not Found' message in your browser, run `azd deploy`.
132
+
If the web app fails to deploy and you receive a '404 Not Found' message in your browser, run `azd deploy`.
0 commit comments