From 6f19aee29da15de9ade5e00294d74968841b87a9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 19 Mar 2024 07:08:21 +0000 Subject: [PATCH] feat(documentai): update the api #### documentai:v1 The following keys were added: - schemas.GoogleCloudDocumentaiV1TrainProcessorVersionRequest.properties.foundationModelTuningOptions.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions (Total Keys: 6) --- ...ocations.processors.processorVersions.html | 4 ++++ ...ocations.processors.processorVersions.html | 2 +- .../documents/documentai.v1.json | 23 ++++++++++++++++++- .../documents/documentai.v1beta2.json | 2 +- .../documents/documentai.v1beta3.json | 4 ++-- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html b/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html index 46787244bb..ec696f1a2d 100644 --- a/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html +++ b/docs/dyn/documentai_v1.projects.locations.processors.processorVersions.html @@ -2424,6 +2424,10 @@

Method Details

"skipNamingValidation": True or False, # If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. }, }, + "foundationModelTuningOptions": { # Options to control foundation model tuning of the processor. # Options to control foundation model tuning of a processor. + "learningRateMultiplier": 3.14, # Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used. + "trainSteps": 42, # Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used. + }, "inputData": { # The input data used to train a new ProcessorVersion. # Optional. The input data used to train the ProcessorVersion. "testDocuments": { # The common config to specify a set of documents used as input. # The documents used for testing the trained version. "gcsDocuments": { # Specifies a set of documents on Cloud Storage. # The set of documents individually specified on Cloud Storage. diff --git a/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html b/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html index 660fd8927a..2d6bdfe4ef 100644 --- a/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html +++ b/docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html @@ -519,7 +519,7 @@

Method Details

"processorVersion": "A String", # Required. The processor version name. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` "serviceEndpoint": "A String", # Optional. The Document AI service endpoint. For example, 'https://us-documentai.googleapis.com' }, - "processorVersionSource": "A String", # The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. + "processorVersionSource": "A String", # The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not supported. } x__xgafv: string, V1 error format. diff --git a/googleapiclient/discovery_cache/documents/documentai.v1.json b/googleapiclient/discovery_cache/documents/documentai.v1.json index f6cadae02c..3b3e1444bd 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1.json @@ -1042,7 +1042,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -4646,6 +4646,10 @@ true "$ref": "GoogleCloudDocumentaiV1DocumentSchema", "description": "Optional. The schema the processor version will be trained with." }, +"foundationModelTuningOptions": { +"$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", +"description": "Options to control foundation model tuning of a processor." +}, "inputData": { "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", "description": "Optional. The input data used to train the ProcessorVersion." @@ -4678,6 +4682,23 @@ true }, "type": "object" }, +"GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions": { +"description": "Options to control foundation model tuning of the processor.", +"id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", +"properties": { +"learningRateMultiplier": { +"description": "Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.", +"format": "float", +"type": "number" +}, +"trainSteps": { +"description": "Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.", +"format": "int32", +"type": "integer" +} +}, +"type": "object" +}, "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData": { "description": "The input data used to train a new ProcessorVersion.", "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json index 4fca809513..d7cf8a19b1 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta2.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta2.json @@ -292,7 +292,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { diff --git a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json index 43d42db792..5010db3126 100644 --- a/googleapiclient/discovery_cache/documents/documentai.v1beta3.json +++ b/googleapiclient/discovery_cache/documents/documentai.v1beta3.json @@ -1284,7 +1284,7 @@ } } }, -"revision": "20240304", +"revision": "20240314", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -7862,7 +7862,7 @@ true "description": "The source processor version to import from. It can be from a different environment and region than the destination processor." }, "processorVersionSource": { -"description": "The source processor version to import from. The source processor version and destination processor need to be in the same environment and region.", +"description": "The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not supported.", "type": "string" } },