Skip to content

Commit

Permalink
Update references to Azure Form Recognizer to Azure AI Document Intel…
Browse files Browse the repository at this point in the history
…ligence
  • Loading branch information
elbruno committed Aug 30, 2024
1 parent bf6de87 commit e63fee5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]<br>
> 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

Expand Down
2 changes: 1 addition & 1 deletion app/prepdocs/PrepareDocs/Program.Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> 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<string> s_computerVisionServiceEndpoint =
new(name: "--computervisionendpoint", description: "Optional. The Azure Computer Vision service endpoint which will be used to vectorize image and query");
Expand Down
2 changes: 1 addition & 1 deletion app/shared/Shared/Services/AzureSearchEmbedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public async Task EnsureSearchIndexAsync(string searchIndexName, CancellationTok
public async Task<IReadOnlyList<PageDetail>> 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);
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy_lowcost.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion infra/app/web.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit e63fee5

Please sign in to comment.