Skip to content

Commit fc4b460

Browse files
authored
Replace AzureFormRecognizer with AzureAIDocIntel in settings (#1007)
### Motivation and Context After an upgrade in libraries, the settings no longer match the code for OCR. ### Description Replace AzureFormRecognizer with AzureAIDocIntel in settings
1 parent a33b729 commit fc4b460

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

memorypipeline/appsettings.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Kernel Memory configuration - https://github.com/microsoft/kernel-memory
44
// - DocumentStorageType is the storage configuration for memory transfer: "AzureBlobs" or "SimpleFileStorage"
55
// - TextGeneratorType is the AI completion service configuration: "AzureOpenAIText" or "OpenAI"
6-
// - ImageOcrType is the image OCR configuration: "None" or "AzureFormRecognizer" or "Tesseract"
6+
// - ImageOcrType is the image OCR configuration: "None" or "AzureAIDocIntel" or "Tesseract"
77
// - DataIngestion is the configuration section for data ingestion pipelines.
88
// - Retrieval is the configuration section for memory retrieval.
99
// - Services is the configuration sections for various memory settings.
@@ -187,9 +187,9 @@
187187
// - APIKey is the key generated to access the service.
188188
// - Endpoint is the service endpoint url.
189189
//
190-
"AzureFormRecognizer": {
190+
"AzureAIDocIntel": {
191191
"Auth": "APIKey",
192-
//"APIKey": "", // dotnet user-secrets set "SemanticMemory:Services:AzureFormRecognizer:APIKey" "MY_AZUREFORMRECOGNIZER_KEY"
192+
//"APIKey": "", // dotnet user-secrets set "SemanticMemory:Services:AzureAIDocIntel:APIKey" "MY_AZURE_AI_DOC_INTEL_KEY"
193193
"Endpoint": ""
194194
},
195195
//

webapi/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ The following material is under development and may not be complete or accurate.
2626
- **Tesseract** we have included the [Tesseract](https://www.nuget.org/packages/Tesseract) nuget package.
2727
- 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`.
2828
- Set the `Copy to Output Directory` value to `Copy if newer`.
29-
- **Azure Form Recognizer** we have included the [Azure.AI.FormRecognizer](https://www.nuget.org/packages/Azure.AI.FormRecognizer) nuget package.
30-
- 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.
29+
- **Azure AI Doc Intel** we have included the [Azure.AI.FormRecognizer](https://www.nuget.org/packages/Azure.AI.FormRecognizer) nuget package.
30+
- 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.
3131

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

webapi/appsettings.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"MemoryDbTypes": [
186186
"SimpleVectorDb"
187187
],
188-
// ImageOcrType is the image OCR configuration: "None", "AzureFormRecognizer" or "Tesseract"
188+
// ImageOcrType is the image OCR configuration: "None", "AzureAIDocIntel" or "Tesseract"
189189
"ImageOcrType": "None"
190190
},
191191
//
@@ -338,9 +338,9 @@
338338
// - APIKey is the key generated to access the service.
339339
// - Endpoint is the service endpoint url.
340340
//
341-
"AzureFormRecognizer": {
341+
"AzureAIDocIntel": {
342342
"Auth": "APIKey",
343-
//"APIKey": "", // dotnet user-secrets set "KernelMemory:Services:AzureFormRecognizer:APIKey" "MY_AZUREFORMRECOGNIZER_KEY"
343+
//"APIKey": "", // dotnet user-secrets set "KernelMemory:Services:AzureAIDocIntel:APIKey" "MY_AZURE_AI_DOC_INTEL_KEY"
344344
"Endpoint": ""
345345
},
346346
//

0 commit comments

Comments
 (0)