Synopsis-1
Synopsis-1
Synopsis-1
FETURES:
WORKING:
Azure Account requirements :
Azure account. If you're new to Azure, get an Azure account for free and
you'll get some free Azure credits to get started. See guide to deploying
with the free trial.
Azure subscription with access enabled for the Azure OpenAI service. You
can request access with this form. If your access request to Azure OpenAI
service doesn't match the acceptance criteria, you can use OpenAI public
API instead. Learn how to switch to an OpenAI instance.
Cost Estimation :
Pricing varies per region and usage, so it isn’t possible to predict exact
costs for your usage. However, you can try the Azure pricing calculator for
the resources below.
Azure App Service: Basic Tier with 1 CPU core, 1.75 GB RAM. Pricing per
hour. Pricing
Azure OpenAI: Standard tier, GPT and Ada models. Pricing per 1K tokens
used, and at least 1K tokens are used per question. Pricing Azure AI
Document Intelligence: SO (Standard) tier using pre-built layout. Pricing
per document page, sample documents have 261 pages total. Pricing
Azure AI Search: Basic tier, 1 replica, free level of semantic search.
Pricing per hour. Pricing Azure Blob Storage: Standard tier with ZRS
(Zone-redundant storage). Pricing per storage and read operations.
Pricing
To reduce costs, you can switch to free SKUs for various services, but
those SKUs have limitations. See this guide on deploying with minimal
costs for more details.
⚠️To avoid unnecessary costs, remember to take down your app if it’s no
longer in use, either by deleting the resource group in the Portal or
running azd down.
GitHub Codespace :
You can run this repo virtually by using GitHub Codespaces, which will
open a web-based VS Code in your browser: Once the codespace opens
(this may take several minutes), open a terminal window.
A related option is VS Code Dev Containers, which will open the project in
your local VS Code using the Dev Containers extension:
Open the project: In the VS Code window that opens, once the project
files show up (this may take several minutes), open a terminal window.
Local Environment:
Note that this command will initialize a git repository, so you do not need to
clone this repository.
Deploying:
Follow these steps to provision Azure resources and deploy the application code:
3. (Optional) This is the point where you can customize the deployment by setting
environment variables, in order to use existing resources, enable optional
features (such as auth or vision), or deploy to free tiers.
4. Run azd up - This will provision Azure resources and deploy this sample to those
resources, including building the search index based on the files found in
the ./data folder.
o Important: Beware that the resources created by this command will incur immediate
costs, primarily from the AI Search resource. These resources may accrue costs even if
you interrupt the command before it is fully executed. You can run azd down or delete the
resources manually to avoid unnecessary spending.
o You will be prompted to select two locations, one for the majority of resources and one
for the OpenAI resource, which is currently a short list. That location list is based on
the OpenAI model availability table and may become outdated as availability changes.
5. After the application has been successfully deployed you will see a URL printed
to the console. Click that URL to interact with the application in your browser. It
will look like the following:
NOTE: It may take 5-10 minutes after you see 'SUCCESS' for the application to be fully
deployed. If you see a "Python Developer" welcome screen or an error page, then wait
a bit and refresh the page. See guide on debugging App Service deployments.