Skip to main content

models

Creates, updates, deletes, gets or lists a models resource.

Overview

Namemodels
TypeResource
Idazure.ai_document_intelligence.models

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiVersionstringAPI version used to create this document model.
azureBlobFileListSourceobjectAzure Blob Storage file list specifying the training data. Either azureBlobSource or azureBlobFileListSource must be specified.
azureBlobSourceobjectAzure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.
buildModestringCustom document model build mode. Known values are: "template" and "neural". (template, neural)
classifierIdstringFor composed models, the custom classifier to split and classify the input file.
createdDateTimestring (date-time)Date and time (UTC) when the document model was created. Required.
descriptionstringDocument model description.
docTypesobjectSupported document types.
expirationDateTimestring (date-time)Date and time (UTC) when the document model will expire.
modelIdstringUnique document model name. Required.
modifiedDateTimestring (date-time)Date and time (UTC) when the document model was last modified.
splitstringFor composed models, the file splitting behavior. Known values are: "auto", "none", and "perPage". (auto, none, perPage)
tagsobjectList of key-value tag attributes associated with the document model.
trainingHoursnumberNumber of V100-equivalent GPU hours consumed for model training.
warningsarrayList of warnings encountered while building the model.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_modelselectmodel_id, endpointGets detailed document model information.
list_modelsselectendpointList all document models.
delete_modeldeletemodel_id, endpointDeletes document model.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
model_idstringUnique document model name. Required.

SELECT examples

Gets detailed document model information.

SELECT
apiVersion,
azureBlobFileListSource,
azureBlobSource,
buildMode,
classifierId,
createdDateTime,
description,
docTypes,
expirationDateTime,
modelId,
modifiedDateTime,
split,
tags,
trainingHours,
warnings
FROM azure.ai_document_intelligence.models
WHERE model_id = '{{ model_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Deletes document model.

DELETE FROM azure.ai_document_intelligence.models
WHERE model_id = '{{ model_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;