1.0.0b4 (2024-09-05)
Features Added
- 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()
.
Breaking Changes
- 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.
Other Changes
- 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
.