Skip to content

Commit

Permalink
Replace AzureFormRecognizer with AzureAIDocIntel in settings (#1007)
Browse files Browse the repository at this point in the history
### Motivation and Context
After an upgrade in libraries, the settings no longer match the code for
OCR.

### Description
Replace AzureFormRecognizer with AzureAIDocIntel in settings
  • Loading branch information
glahaye committed Jun 13, 2024
1 parent a33b729 commit fc4b460
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions memorypipeline/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Kernel Memory configuration - https://github.com/microsoft/kernel-memory
// - DocumentStorageType is the storage configuration for memory transfer: "AzureBlobs" or "SimpleFileStorage"
// - TextGeneratorType is the AI completion service configuration: "AzureOpenAIText" or "OpenAI"
// - ImageOcrType is the image OCR configuration: "None" or "AzureFormRecognizer" or "Tesseract"
// - ImageOcrType is the image OCR configuration: "None" or "AzureAIDocIntel" or "Tesseract"
// - DataIngestion is the configuration section for data ingestion pipelines.
// - Retrieval is the configuration section for memory retrieval.
// - Services is the configuration sections for various memory settings.
Expand Down Expand Up @@ -187,9 +187,9 @@
// - APIKey is the key generated to access the service.
// - Endpoint is the service endpoint url.
//
"AzureFormRecognizer": {
"AzureAIDocIntel": {
"Auth": "APIKey",
//"APIKey": "", // dotnet user-secrets set "SemanticMemory:Services:AzureFormRecognizer:APIKey" "MY_AZUREFORMRECOGNIZER_KEY"
//"APIKey": "", // dotnet user-secrets set "SemanticMemory:Services:AzureAIDocIntel:APIKey" "MY_AZURE_AI_DOC_INTEL_KEY"
"Endpoint": ""
},
//
Expand Down
4 changes: 2 additions & 2 deletions webapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ The following material is under development and may not be complete or accurate.
- **Tesseract** we have included the [Tesseract](https://www.nuget.org/packages/Tesseract) nuget package.
- You will need to obtain one or more [tessdata language data files](https://github.com/tesseract-ocr/tessdata) such as `eng.traineddata` and add them to your `./data` directory or the location specified in the `SemanticMemory:Services:Tesseract:FilePath` location in `./appsettings.json`.
- Set the `Copy to Output Directory` value to `Copy if newer`.
- **Azure Form Recognizer** we have included the [Azure.AI.FormRecognizer](https://www.nuget.org/packages/Azure.AI.FormRecognizer) nuget package.
- You will need to obtain an [Azure Form Recognizer](https://azure.microsoft.com/en-us/services/form-recognizer/) resource and add the `SemanticMemory:Services:AzureFormRecognizer:Endpoint` and `SemanticMemory:Services:AzureFormRecognizer:Key` values to the `./appsettings.json` file.
- **Azure AI Doc Intel** we have included the [Azure.AI.FormRecognizer](https://www.nuget.org/packages/Azure.AI.FormRecognizer) nuget package.
- You will need to obtain an [Azure AI Doc Intel](https://azure.microsoft.com/en-us/products/ai-services/ai-document-intelligence) resource and add the `SemanticMemory:Services:AzureAIDocIntel:Endpoint` and `SemanticMemory:Services:AzureAIDocIntel:Key` values to the `./appsettings.json` file.

## Running [Memory Service](https://github.com/microsoft/kernel-memory)

Expand Down
6 changes: 3 additions & 3 deletions webapi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"MemoryDbTypes": [
"SimpleVectorDb"
],
// ImageOcrType is the image OCR configuration: "None", "AzureFormRecognizer" or "Tesseract"
// ImageOcrType is the image OCR configuration: "None", "AzureAIDocIntel" or "Tesseract"
"ImageOcrType": "None"
},
//
Expand Down Expand Up @@ -338,9 +338,9 @@
// - APIKey is the key generated to access the service.
// - Endpoint is the service endpoint url.
//
"AzureFormRecognizer": {
"AzureAIDocIntel": {
"Auth": "APIKey",
//"APIKey": "", // dotnet user-secrets set "KernelMemory:Services:AzureFormRecognizer:APIKey" "MY_AZUREFORMRECOGNIZER_KEY"
//"APIKey": "", // dotnet user-secrets set "KernelMemory:Services:AzureAIDocIntel:APIKey" "MY_AZURE_AI_DOC_INTEL_KEY"
"Endpoint": ""
},
//
Expand Down

0 comments on commit fc4b460

Please sign in to comment.