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
Describe the bug
In the apssettings, you refer to AzureFormRecognizer but in the code, precisely in the following method:
private void ConfigureImageOCR(IKernelMemoryBuilder builder)
{
// Image OCR
switch (this._memoryConfiguration.DataIngestion.ImageOcrType)
{
case string y when string.IsNullOrWhiteSpace(y):
case string x when x.Equals("None", StringComparison.OrdinalIgnoreCase):
break;
case string x when x.Equals("AzureAIDocIntel", StringComparison.OrdinalIgnoreCase):
builder.Services.AddAzureAIDocIntel(this.GetServiceConfig<AzureAIDocIntelConfig>("AzureAIDocIntel"));
break;
default:
// NOOP - allow custom implementations, via WithCustomImageOCR()
break;
}
}
You refer to AzureAIDocIntel, so configuring ImageOcrType to AzureFormRecognizer leads to an exception (non-configured ocr extraction). Appsettings should suggest:
to specify AzureAIDocIntel instead of AzureFormRecognizer for the ImageOcrType setting
to substitute AzureFormRecognizer section by AzureAIDocIntel
To Reproduce
Steps to reproduce the behavior:
Configure ImageOcrType to AzureFormRecognizer
Define APIKey and Endpoint in AzureFormRecognizer section
Run it, upload a PNG in the chat and boom.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the apssettings, you refer to AzureFormRecognizer but in the code, precisely in the following method:
You refer to AzureAIDocIntel, so configuring ImageOcrType to AzureFormRecognizer leads to an exception (non-configured ocr extraction). Appsettings should suggest:
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: