Data Source: oci_ai_document_models
This data source provides the list of Models in Oracle Cloud Infrastructure Ai Document service.
Returns a list of models in a compartment.
Example Usage
data "oci_ai_document_models" "test_models" {
#Optional
compartment_id = var.compartment_id
display_name = var.model_display_name
id = var.model_id
project_id = oci_ai_document_project.test_project.id
state = var.model_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Optional) The ID of the compartment in which to list resources.display_name- (Optional) A filter to return only resources that match the entire display name given.id- (Optional) The filter to find the model with the given identifier.project_id- (Optional) The ID of the project for which to list the objects.state- (Optional) The filter to match models with the given lifecycleState.
Attributes Reference
The following attributes are exported:
model_collection- The list of model_collection.
Model Reference
The following attributes are exported:
alias_name- the alias name of the model.compartment_id- The compartment identifier.component_models- The OCID collection of active custom Key Value models that need to be composed.model_id- The OCID of active custom Key Value model that need to be composed.
defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:{"foo-namespace": {"bar-key": "value"}}description- An optional description of the model.display_name- A human-friendly name for the model, which can be changed.freeform_tags- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:{"bar-key": "value"}id- A unique identifier that is immutable after creation.inference_units- Number of replicas required for this model.is_composed_model- Set to true when the model is created by using multiple key value extraction models.is_quick_mode- Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data.labels- The collection of labels used to train the custom model.language- The document language for model training, abbreviated according to the BCP 47 syntax.lifecycle_details- A message describing the current state in more detail, that can provide actionable information if training failed.locks- Locks associated with this resource.compartment_id- The lock compartment ID.message- A message added by the lock creator. The message typically gives an indication of why the resource is locked.related_resource_id- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.time_created- Indicates when the lock was created, in the format defined by RFC 3339.type- Lock type.
max_training_time_in_hours- The maximum model training time in hours, expressed as a decimal fraction.metrics- Trained Model Metrics.dataset_summary- Summary of count of samples used during model training.test_sample_count- Number of samples used for testing the model.training_sample_count- Number of samples used for training the model.validation_sample_count- Number of samples used for validating the model.
label_metrics_report- List of metrics entries per label.confidence_entries- List of document classification confidence report.accuracy- accuracy under the thresholdf1score- f1Score under the thresholdprecision- Precision under the thresholdrecall- Recall under the thresholdthreshold- Threshold used to calculate precision and recall.
document_count- Total test documents in the label.label- Label namemean_average_precision- Mean average precision under different thresholds
model_type- The type of custom model trained.overall_metrics_report- Overall Metrics report for Document Classification Model.confidence_entries- List of document classification confidence report.accuracy- accuracy under the thresholdf1score- f1Score under the thresholdprecision- Precision under the thresholdrecall- Recall under the thresholdthreshold- Threshold used to calculate precision and recall.
document_count- Total test documents in the label.mean_average_precision- Mean average precision under different thresholds
model_sub_type- Applicable to only PRE_TRAINED_KEY_VALUE_EXTRACTION, PRE_TRAINED_DOCUMENT_ELEMENTS_EXTRACTION.model_sub_type- The model sub type for PRE_TRAINED_KEY_VALUE_EXTRACTION The allowed values are:RECEIPTINVOICEPASSPORTDRIVER_LICENSEHEALTH_INSURANCE_ID
model_type- Sub type model based on the model type. The allowed values are:PRE_TRAINED_KEY_VALUE_EXTRACTIONPRE_TRAINED_DOCUMENT_ELEMENTS_EXTRACTION
model_type- The type of the Document model.model_version- The version of the model.project_id- The OCID of the project that contains the model.state- The current state of the model.system_tags- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:{"orcl-cloud": {"free-tier-retained": "true"}}tenancy_id- The tenancy id of the model.testing_dataset- The base entity which is the input for creating and training a model.bucket- The name of the Object Storage bucket that contains the input data file.dataset_id- OCID of the Data Labeling dataset.dataset_type- The dataset type, based on where it is stored.namespace- The namespace name of the Object Storage bucket that contains the input data file.object- The object name of the input data file.
time_created- When the model was created, as an RFC3339 datetime string.time_updated- When the model was updated, as an RFC3339 datetime string.trained_time_in_hours- The total hours actually used for model training.training_dataset- The base entity which is the input for creating and training a model.bucket- The name of the Object Storage bucket that contains the input data file.dataset_id- OCID of the Data Labeling dataset.dataset_type- The dataset type, based on where it is stored.namespace- The namespace name of the Object Storage bucket that contains the input data file.object- The object name of the input data file.
validation_dataset- The base entity which is the input for creating and training a model.bucket- The name of the Object Storage bucket that contains the input data file.dataset_id- OCID of the Data Labeling dataset.dataset_type- The dataset type, based on where it is stored.namespace- The namespace name of the Object Storage bucket that contains the input data file.object- The object name of the input data file.