- 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
ContentFormat
toDocumentContentFormat
. - Renamed model
AnalyzeBatchResultOperation
toAnalyzeBatchOperation
. - Renamed model
CopyAuthorization
toModelCopyAuthorization
. - Renamed model
Document
toAnalyzedDocument
. - Renamed model
Error
toDocumentIntelligenceError
. - Renamed model
ErrorResponse
toDocumentIntelligenceErrorResponse
. - Renamed model
InnerError
toDocumentIntelligenceInnerError
. - Renamed model
OperationDetails
toDocumentIntelligenceOperationDetails
. - Renamed model
OperationStatus
toDocumentIntelligenceOperationStatus
. - Renamed model
ResourceDetails
toDocumentIntelligenceResourceDetails
. - Renamed model
Warning
toDocumentIntelligenceWarning
. - Renamed property
items_property
in modelDocumentFieldSchema
toitems_schema
. - Renamed enum
FontStyle
toDocumentFontStyle
. - Renamed enum
FontWeight
toDocumentFontWeight
. - Removed model
AnalyzeResultOperation
. - Removed
GENERATIVE
in enumDocumentBuildMode
.
- Changed the default service API version to
2024-11-30
. - No need to pass
content-type
when 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
,AnalyzeBatchResult
andAnalyzeBatchOperationDetail
.
- 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
output
to LRO operationbegin_analyze_document()
overloads inDocumentIntelligenceClient
. - Added enum
AnalyzeOutputOption
to specify output kind, eitherpdf
orfigures
. - Added property
id
to modelDocumentFigure
.
- Added operations
- Added support for the Copy Classifier API:
- Added operations
authorize_classifier_copy()
andbegin_copy_classifier_to()
toDocumentIntelligenceAdministrationClient
. - Added models
AuthorizeClassifierCopyRequest
andClassifierCopyAuthorization
.
- Added operations
- Added optional kwarg
pages
to LRO operationbegin_classify_document()
overloads inDocumentIntelligenceClient
. - Added new kind
GENERATIVE
to enumDocumentBuildMode
. - Added property
warnings
to modelAnalyzeResult
. - Added properties
classifier_id
,split
, andtraining_hours
to modelDocumentModelDetails
. - Added properties
model_id
,confidence_threshold
,features
,query_fields
andmax_documents_to_analyze
to modelDocumentTypeDetails
. - Added property
allow_overwrite
to modelBuildDocumentClassifierRequest
. - Added properties
allow_overwrite
andmax_training_hours
to modelBuildDocumentModelRequest
. - Added properties
classifier_id
,split
anddoc_types
to modelComposeDocumentModelRequest
. - Added support for getting
operation_id
viadetails
property in the new return typesAnalyzeDocumentLROPoller
andAsyncAnalyzeDocumentLROPoller
in operationbegin_analyze_document()
.
- Removed support for extracting lists from analyzed documents:
- Removed models
DocumentList
andDocumentListItem
. - Removed property
lists
from modelAnalyzeResult
.
- Removed models
- Changes to the Compose Document API:
- Removed model
ComponentDocumentModelDetails
. - Removed property
component_models
from modelComposeDocumentModelRequest
. ComposeDocumentModelRequest
now requires a dictionary ofDocumentTypeDetails
instances and a classifier ID to be constructed.
- Removed model
- Removed model
QuotaDetails
. - Removed property
custom_neural_document_model_builds
from modelResourceDetails
. - Changed the required property
field_schema
fromDocumentTypeDetails
to be optional.
- Changed the default service API version to
2024-07-31-preview
. - Improved performance by about
1.5X
faster when deserializingJSON
to anAnalyzeResult
object compared to last version1.0.0b3
.
- Changed the default polling interval from 5s to 1s.
- Added models
AnalyzeResultOperation
andWarning
. - Added property
base_classifier_id
to modelBuildDocumentClassifierRequest
. - Added properties
base_classifier_id
andwarnings
to modelDocumentClassifierDetails
. - Added property
warnings
to modelDocumentModelDetails
. - Added property
value_selection_group
to modelDocumentField
. - Added value
selectionGroup
to enumDocumentFieldType
. - Added value
completed
to enumOperationStatus
.
- Changed property name from
items
toitems_property
in modelDocumentFieldSchema
andDocumentList
. - Changed property name from
base64_source
tobytes_source
in modelAnalyzeDocumentRequest
andClassifyDocumentRequest
.
- 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-core
to>=1.30.0
. - Bumped minimum dependency on
typing-extensions
to>=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-formrecognizer
to DocumentIntelligenceClient and DocumentIntelligenceAdministrationClient in API version 2023-10-31-preview inazure-ai-documentintelligence
. - Changed all REST API operation paths from
{endpoint}/formrecognizer
to{endpoint}/documentintelligence
. - Changed some currency-related fields in
prebuilt-receipt
model. - Retired model
prebuilt-businessCard
andprebuilt-document
.prebuilt-document
model is essentiallyprebuilt-layout
withfeatures="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.