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
Copy file name to clipboardExpand all lines: README.md
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The repo includes sample data so it's ready to try end to end. In this sample ap
52
52
***Azure subscription with access enabled for the Azure OpenAI service**. You can request access with [this form](https://aka.ms/oaiapply).
53
53
***Azure account permissions**: Your Azure account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [Role Based Access Control Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#role-based-access-control-administrator-preview), [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).
54
54
55
-
## Azure deployment
55
+
## Azure deployment
56
56
57
57
### Cost estimation
58
58
@@ -73,7 +73,7 @@ either by deleting the resource group in the Portal or running `azd down`.
73
73
74
74
### Project setup
75
75
76
-
You have a few options for setting up this project.
76
+
You have a few options for setting up this project.
77
77
The easiest way to get started is GitHub Codespaces, since it will setup all the tools for you,
78
78
but you can also [set it up locally](#local-environment) if desired.
79
79
@@ -299,6 +299,37 @@ The ask tab uses the approach programmed in [retrievethenread.py](https://github
299
299
There are also two other /ask approaches with a slightly different approach, but they aren't currently working due to [langchain compatibility issues](https://github.com/Azure-Samples/azure-search-openai-demo/issues/541).
300
300
</details>
301
301
302
+
<details>
303
+
<summary>How can we view logs from the App Service app?</summary>
304
+
305
+
You can view production logs in the Portal using either the Log stream or by downloading the default_docker.log file from Advanced tools.
306
+
307
+
The following line of code in `app/backend/app.py` configures the logging level:
If you're having troubles finding the logs in App Service, see this blog post on [tips for debugging App Service app deployments](http://blog.pamelafox.org/2023/06/tips-for-debugging-flask-deployments-to.html) or watch [this video about viewing App Service logs](https://www.youtube.com/watch?v=f0-aYuvws54).
331
+
332
+
</details>
302
333
303
334
### Troubleshooting
304
335
@@ -314,5 +345,4 @@ Here are the most common failure scenarios and solutions:
314
345
315
346
1. You see `CERTIFICATE_VERIFY_FAILED` when the `prepdocs.py` script runs. That's typically due to incorrect SSL certificates setup on your machine. Try the suggestions in this [StackOverflow answer](https://stackoverflow.com/questions/35569042/ssl-certificate-verify-failed-with-python3/43855394#43855394).
316
347
317
-
1. After running `azd up` and visiting the website, you see a '404 Not Found' in the browser. Wait 10 minutes and try again, as it might be still starting up. Then try running `azd deploy` and wait again. If you still encounter errors with the deployed app, consult these [tips for debugging App Service app deployments](http://blog.pamelafox.org/2023/06/tips-for-debugging-flask-deployments-to.html)
318
-
and file an issue if the error logs don't help you resolve the issue.
348
+
1. After running `azd up` and visiting the website, you see a '404 Not Found' in the browser. Wait 10 minutes and try again, as it might be still starting up. Then try running `azd deploy` and wait again. If you still encounter errors with the deployed app, consult these [tips for debugging App Service app deployments](http://blog.pamelafox.org/2023/06/tips-for-debugging-flask-deployments-to.html) or watch [this video about downloading App Service logs](https://www.youtube.com/watch?v=f0-aYuvws54). Please file an issue if the logs don't help you resolve the error.
0 commit comments