From e63fee5c198c6d1769f838497e29c4677f1b5eb9 Mon Sep 17 00:00:00 2001 From: Bruno Capuano Date: Fri, 30 Aug 2024 10:59:50 -0400 Subject: [PATCH] Update references to Azure Form Recognizer to Azure AI Document Intelligence --- README.md | 2 +- app/prepdocs/PrepareDocs/Program.Options.cs | 2 +- app/shared/Shared/Services/AzureSearchEmbedService.cs | 2 +- docs/deploy_lowcost.md | 2 +- infra/app/web.bicep | 2 +- infra/main.bicep | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4f270e01..5827edde 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ In order to deploy and run this example, you'll need - **Azure account permissions** - 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). > [!WARNING]
-> By default this sample will create an Azure Container App, and Azure AI Search resource that have a monthly cost, as well as Form Recognizer resource that has cost per document page. You can switch them to free versions of each of them if you want to avoid this cost by changing the parameters file under the infra folder (though there are some limits to consider; for example, you can have up to 1 free Azure AI Search resource per subscription, and the free Form Recognizer resource only analyzes the first 2 pages of each document.) +> By default this sample will create an Azure Container App, and Azure AI Search resource that have a monthly cost, as well as Azure AI Document Intelligence resource that has cost per document page. You can switch them to free versions of each of them if you want to avoid this cost by changing the parameters file under the infra folder (though there are some limits to consider; for example, you can have up to 1 free Azure AI Search resource per subscription, and the free Azure AI Document Intelligence resource only analyzes the first 2 pages of each document.) ### Project setup diff --git a/app/prepdocs/PrepareDocs/Program.Options.cs b/app/prepdocs/PrepareDocs/Program.Options.cs index 71f775ed..b7f0eaba 100644 --- a/app/prepdocs/PrepareDocs/Program.Options.cs +++ b/app/prepdocs/PrepareDocs/Program.Options.cs @@ -39,7 +39,7 @@ internal static partial class Program new(name: "--removeall", description: "Remove all blobs from blob storage and documents from the search index"); private static readonly Option s_formRecognizerServiceEndpoint = - new(name: "--formrecognizerendpoint", description: "Optional. The Azure Form Recognizer service endpoint which will be used to extract text, tables and layout from the documents (must exist already)"); + new(name: "--formrecognizerendpoint", description: "Optional. The Azure AI Document Intelligence service endpoint which will be used to extract text, tables and layout from the documents (must exist already)"); private static readonly Option s_computerVisionServiceEndpoint = new(name: "--computervisionendpoint", description: "Optional. The Azure Computer Vision service endpoint which will be used to vectorize image and query"); diff --git a/app/shared/Shared/Services/AzureSearchEmbedService.cs b/app/shared/Shared/Services/AzureSearchEmbedService.cs index ab31d2b8..880d9e04 100644 --- a/app/shared/Shared/Services/AzureSearchEmbedService.cs +++ b/app/shared/Shared/Services/AzureSearchEmbedService.cs @@ -194,7 +194,7 @@ public async Task EnsureSearchIndexAsync(string searchIndexName, CancellationTok public async Task> GetDocumentTextAsync(Stream blobStream, string blobName) { logger?.LogInformation( - "Extracting text from '{Blob}' using Azure Form Recognizer", blobName); + "Extracting text from '{Blob}' using Azure AI Document Intelligence", blobName); using var ms = new MemoryStream(); blobStream.CopyTo(ms); diff --git a/docs/deploy_lowcost.md b/docs/deploy_lowcost.md index 87b1001d..55c1f79f 100644 --- a/docs/deploy_lowcost.md +++ b/docs/deploy_lowcost.md @@ -21,7 +21,7 @@ However, if your goal is to minimize costs while prototyping your application, f Enter a name that will be used for the resource group. This will create a new folder in the `.azure` folder, and set it as the active environment for any calls to `azd` going forward. -1. Use the free tier of **Azure AI Document Intelligence** (aka [Form Recognizer](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/overview?view=doc-intel-4.0.0)): +1. Use the free tier of **Azure AI Document Intelligence** (previously known as [Form Recognizer](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/overview?view=doc-intel-4.0.0)): ```shell azd env set AZURE_FORMRECOGNIZER_SERVICE_SKU F0 diff --git a/infra/app/web.bicep b/infra/app/web.bicep index bd9cdf61..af0bd22c 100644 --- a/infra/app/web.bicep +++ b/infra/app/web.bicep @@ -41,7 +41,7 @@ param searchServiceEndpoint string @description('The search index name') param searchIndexName string -@description('The Form Recognizer endpoint') +@description('The Azure AI Document Intelligence endpoint') param formRecognizerEndpoint string @description('The Computer Vision endpoint') diff --git a/infra/main.bicep b/infra/main.bicep index 3cee9677..79010b0d 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -75,16 +75,16 @@ param containerRegistryName string = '' @description('Name of the resource group for the Azure container registry') param containerRegistryResourceGroupName string = '' -@description('Location of the resource group for the Form Recognizer service') +@description('Location of the resource group for the Azure AI Document Intelligence service') param formRecognizerResourceGroupLocation string = location -@description('Name of the resource group for the Form Recognizer service') +@description('Name of the resource group for the Azure AI Document Intelligence service') param formRecognizerResourceGroupName string = '' -@description('Name of the Form Recognizer service') +@description('Name of the Azure AI Document Intelligence service') param formRecognizerServiceName string = '' -@description('SKU name for the Form Recognizer service. Default: S0') +@description('SKU name for the Azure AI Document Intelligence service. Default: S0') @allowed([ 'S0', 'F0' ]) param formRecognizerSkuName string = 'S0'