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
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,10 @@ It demonstrates best practices for creating ChatGPT-like experiences over your o
31
31
32
32
This repository includes sample data so it's ready to try end to end. In this sample application we use a fictitious company called Contoso Electronics, and the experience allows its employees to ask questions about the benefits, internal policies, as well as job descriptions and roles.
33
33
34
+
> [!NOTE]
35
+
> This sample supports different architectural styles. It can be deployed as standalone app on top of Azure App Service or as a microservice event driven architecture hosted by Azure Container Apps. This page refers to the Azure App Service deployment. For Azure Container Apps deployment, see [here](docs/aca/README-ACA.md).
36
+
37
+
34
38
## TL;DR
35
39
36
40
Open the project:
@@ -41,6 +45,7 @@ Open the project:
41
45
Open the terminal and run:
42
46
43
47
```shell
48
+
cd deploy/app-service
44
49
azd auth login
45
50
azd up
46
51
```
@@ -115,9 +120,6 @@ All prerequisites are already installed in the container. You can skip to the [
***Important**: Python and the pip package manager must be in the path in Windows for the setup scripts to work.
120
-
***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`.
121
123
*[Node.js](https://nodejs.org/en/download/)
122
124
*[Git](https://git-scm.com/downloads)
123
125
*[Powershell 7+ (pwsh)](https://github.com/powershell/powershell) - For Windows users only.
@@ -132,6 +134,9 @@ You can clone this repo and change directory to the root of the repo. Or you can
132
134
133
135
Once you have the project available locally, run the following commands if you don't have any pre-existing Azure services and want to start from a fresh deployment.
134
136
137
+
> [!IMPORTANT]
138
+
> All the commands below assume be run from the `deploy/app-service` folder
139
+
135
140
1. Run
136
141
137
142
```shell
@@ -360,7 +365,7 @@ The repository includes sample pdf documents in the data folder. They are ingest
360
365
361
366
If you want to chat with your custom documents you can:
362
367
1. Add your pdf documents in the [data folder](./data).
363
-
2. Open a terminal and cd to repo root folder. Example `cd path/to/your/custom/dir/azure-search-openai-demo-java`
368
+
2. Open a terminal and cd to repo root folder for app service deployment. Example `cd path/to/your/custom/dir/azure-search-openai-demo-java/deploy/app-service`
364
369
3. Run `./scripts/prepdocs.ps1` if you are on windows or `./scripts/prepdocs.sh` on linux
365
370
4. Wait the script to complete. This is not a 'delta' process, it's not updating **only** the new files you've added. Instead, on each run, all documents in data folder will be ingested. Feel free to add new files you want to ingest and delete/move the old documents from the data folder. Once you've run the script and it completes successfully, Azure AI Search index has been updated and stored (until you want to manually delete it from your azure Azure AI Search instance)
366
371
5. if ingestion and indexing is completed successfully you should see a message like this
@@ -414,7 +419,7 @@ However, you can try the [Azure pricing calculator](https://azure.com/e/8ffbe5b1
414
419
- Azure Blob Storage: Standard tier with ZRS (Zone-redundant storage). Pricing per storage and read operations. [Pricing](https://azure.microsoft.com/pricing/details/storage/blobs/)
415
420
- Azure Monitor: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)
416
421
417
-
To reduce costs, you can switch to free SKUs forAzure App Service and Form Recognizer by changing the parameters file under the `infra` folder. There are some limits to consider; for example, the free Form Recognizer resource only analyzes the first 2 pages of each document. You can also reduce costs associated with the Form Recognizer by reducing the number of documentsin the `data` folder, or by removing the postprovision hook in`azure.yaml` that runs the `prepdocs.py` script.
422
+
To reduce costs, you can switch to free SKUs forAzure App Service and Form Recognizer by changing the parameters file under the `infra` folder. There are some limits to consider; for example, the free Form Recognizer resource only analyzes the first 2 pages of each document. You can also reduce costs associated with the Form Recognizer by reducing the number of documentsin the `data` folder, or by removing the postprovision hook in`azure.yaml` that runs the `indexer java cli`.
418
423
419
424
⚠️ To avoid unnecessary costs, remember to take down your app if it's no longer in use,
420
425
either by deleting the resource group in the Portal or running `azd down`.
@description('Name of the Log Analytics workspace')
13
13
paramlogAnalyticsWorkspaceNamestring
14
14
15
+
@description('Optional, default value is false. Sets if the environment will use availability zones. Your Container App Environment and the apps in it will be zone redundant. This requieres vNet integration.')
16
+
paramzoneRedundantbool = false
17
+
18
+
@description('Optional, the workload profiles required by the end user. The default is "Consumption", and is automatically added whether workload profiles are specified or not.')
19
+
paramworkloadProfilesarray = []
20
+
// Example of a workload profile below:
21
+
// [ {
22
+
// workloadProfileType: 'D4' // available types can be found here: https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-overview#profile-types
0 commit comments