- Fix polling for
begin_copy_classifier_to()to stop on success response from the "Operation-Location" endpoint and correctly parse the result.
- Fix polling for
begin_copy_model_to()to stop on success response from the "Operation-Location" endpoint and correctly parse the result.
- Added support for the Analyze Batch Documents API:
- Added operations
delete_analyze_batch_result(),get_analyze_batch_result()andlist_analyze_batch_results()toDocumentIntelligenceClient.
- Added operations
- Added support for the Analyze Documents API:
- Added operations
delete_analyze_result()toDocumentIntelligenceClient.
- Added operations
- Renamed request body parameters on all methods to
body. - Renamed operation
get_resource_info()toget_resource_details(). - Renamed model
ContentFormattoDocumentContentFormat. - Renamed model
AnalyzeBatchResultOperationtoAnalyzeBatchOperation. - Renamed model
CopyAuthorizationtoModelCopyAuthorization. - Renamed model
DocumenttoAnalyzedDocument. - Renamed model
ErrortoDocumentIntelligenceError. - Renamed model
ErrorResponsetoDocumentIntelligenceErrorResponse. - Renamed model
InnerErrortoDocumentIntelligenceInnerError. - Renamed model
OperationDetailstoDocumentIntelligenceOperationDetails. - Renamed model
OperationStatustoDocumentIntelligenceOperationStatus. - Renamed model
ResourceDetailstoDocumentIntelligenceResourceDetails. - Renamed model
WarningtoDocumentIntelligenceWarning. - Renamed property
items_propertyin modelDocumentFieldSchematoitems_schema. - Renamed enum
FontStyletoDocumentFontStyle. - Renamed enum
FontWeighttoDocumentFontWeight. - Removed model
AnalyzeResultOperation. - Removed
GENERATIVEin enumDocumentBuildMode.
- Changed the default service API version to
2024-11-30. - No need to pass
content-typewhen analyze_request is a stream inbegin_analyze_document()andbegin_classify_document().
- Added support for the Analyze Batch Documents API:
- Added LRO operation
begin_analyze_batch_documents()toDocumentIntelligenceClient. - Added models
AnalyzeBatchDocumentsRequest,AnalyzeBatchResultandAnalyzeBatchOperationDetail.
- Added LRO operation
- Added support for different kinds of output in the Analyze Document API:
- Added operations
get_analyze_result_figure()andget_analyze_result_pdf()toDocumentIntelligenceClient. - Added optional kwarg
outputto LRO operationbegin_analyze_document()overloads inDocumentIntelligenceClient. - Added enum
AnalyzeOutputOptionto specify output kind, eitherpdforfigures. - Added property
idto modelDocumentFigure.
- Added operations
- Added support for the Copy Classifier API:
- Added operations
authorize_classifier_copy()andbegin_copy_classifier_to()toDocumentIntelligenceAdministrationClient. - Added models
AuthorizeClassifierCopyRequestandClassifierCopyAuthorization.
- Added operations
- Added optional kwarg
pagesto LRO operationbegin_classify_document()overloads inDocumentIntelligenceClient. - Added new kind
GENERATIVEto enumDocumentBuildMode. - Added property
warningsto modelAnalyzeResult. - Added properties
classifier_id,split, andtraining_hoursto modelDocumentModelDetails. - Added properties
model_id,confidence_threshold,features,query_fieldsandmax_documents_to_analyzeto modelDocumentTypeDetails. - Added property
allow_overwriteto modelBuildDocumentClassifierRequest. - Added properties
allow_overwriteandmax_training_hoursto modelBuildDocumentModelRequest. - Added properties
classifier_id,splitanddoc_typesto modelComposeDocumentModelRequest. - Added support for getting
operation_idviadetailsproperty in the new return typesAnalyzeDocumentLROPollerandAsyncAnalyzeDocumentLROPollerin operationbegin_analyze_document().
- Removed support for extracting lists from analyzed documents:
- Removed models
DocumentListandDocumentListItem. - Removed property
listsfrom modelAnalyzeResult.
- Removed models
- Changes to the Compose Document API:
- Removed model
ComponentDocumentModelDetails. - Removed property
component_modelsfrom modelComposeDocumentModelRequest. ComposeDocumentModelRequestnow requires a dictionary ofDocumentTypeDetailsinstances and a classifier ID to be constructed.
- Removed model
- Removed model
QuotaDetails. - Removed property
custom_neural_document_model_buildsfrom modelResourceDetails. - Changed the required property
field_schemafromDocumentTypeDetailsto be optional.
- Changed the default service API version to
2024-07-31-preview. - Improved performance by about
1.5Xfaster when deserializingJSONto anAnalyzeResultobject compared to last version1.0.0b3.
- Changed the default polling interval from 5s to 1s.
- Added models
AnalyzeResultOperationandWarning. - Added property
base_classifier_idto modelBuildDocumentClassifierRequest. - Added properties
base_classifier_idandwarningsto modelDocumentClassifierDetails. - Added property
warningsto modelDocumentModelDetails. - Added property
value_selection_groupto modelDocumentField. - Added value
selectionGroupto enumDocumentFieldType. - Added value
completedto enumOperationStatus.
- Changed property name from
itemstoitems_propertyin modelDocumentFieldSchemaandDocumentList. - Changed property name from
base64_sourcetobytes_sourcein modelAnalyzeDocumentRequestandClassifyDocumentRequest.
- Changed the default polling interval from 30s to 5s.
- Changed the default service API version to
2024-02-29-preview. - Bumped minimum dependency on
azure-coreto>=1.30.0. - Bumped minimum dependency on
typing-extensionsto>=4.6.0. - Python 3.7 is no longer supported. Please use Python version 3.8 or later.
This is the first preview of the azure-ai-documentintelligence package, targeting API version 2023-10-31-preview of the Document Intelligence service(formerly known as Form Recognizer).
Note: Form Recognizer has been rebranded to Document Intelligence.
- Changed clients names from DocumentAnalysisClient and DocumentModelAdministrationClient in API version 2023-07-31 in
azure-ai-formrecognizerto DocumentIntelligenceClient and DocumentIntelligenceAdministrationClient in API version 2023-10-31-preview inazure-ai-documentintelligence. - Changed all REST API operation paths from
{endpoint}/formrecognizerto{endpoint}/documentintelligence. - Changed some currency-related fields in
prebuilt-receiptmodel. - Retired model
prebuilt-businessCardandprebuilt-document.prebuilt-documentmodel is essentiallyprebuilt-layoutwithfeatures="keyValuePairs"specified. (This is only supported as an optional feature for "prebuilt-layout" and "prebuilt-invoice".)
If you were using the old azure-ai-formrecognizer package, please refer MIGRATION_GUIDE.MD for more details.