Description
Library name and version
Azure.AI.FormRecognizer 4.1.0
Query/Question
Hi,
I am using Azure.AI.FormRecognizer SDK 4.1.0 to call up AnalyzeDocumentAsync
and receive an Operation
object. Once I receive the object, I loop through it and pull out contents, tables etc. I am using prebuilt-read
model.
I do attempt to send a file worth 10 MB or more across and waiting for it to be completed via WaitUntil.Completed
and once the response is given, I do get up to 1.2 GB memory usage. This actually causes a out-of-memory exception in a container which has limited memory. I do deploy in Azure Container Apps as a job/console app.
I also tried to use the API, however, I cannot even receive the response result object via postman tool.
I would like to know what is the best approach using the SDK as well as handling the response object size so that it doesn't cause any memory usage issue.
Thanks
Environment
.NET SDK:
Version: 7.0.203
Commit: 5b005c19f5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.203\
Host:
Version: 7.0.5
Architecture: x64
Commit: 8042d61b17
.NET SDKs installed:
7.0.203 [C:\Program Files\dotnet\sdk]