Skip to content

Commit

Permalink
feat(documentai): update the api
Browse files Browse the repository at this point in the history
#### documentai:v1

The following keys were added:
- schemas.GoogleCloudDocumentaiV1TrainProcessorVersionRequest.properties.foundationModelTuningOptions.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions (Total Keys: 6)
  • Loading branch information
yoshi-automation committed Mar 19, 2024
1 parent 33b0b8d commit 6f19aee
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
Expand Up @@ -2424,6 +2424,10 @@ <h3>Method Details</h3>
&quot;skipNamingValidation&quot;: 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.
},
},
&quot;foundationModelTuningOptions&quot;: { # Options to control foundation model tuning of the processor. # Options to control foundation model tuning of a processor.
&quot;learningRateMultiplier&quot;: 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.
&quot;trainSteps&quot;: 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.
},
&quot;inputData&quot;: { # The input data used to train a new ProcessorVersion. # Optional. The input data used to train the ProcessorVersion.
&quot;testDocuments&quot;: { # The common config to specify a set of documents used as input. # The documents used for testing the trained version.
&quot;gcsDocuments&quot;: { # Specifies a set of documents on Cloud Storage. # The set of documents individually specified on Cloud Storage.
Expand Down
Expand Up @@ -519,7 +519,7 @@ <h3>Method Details</h3>
&quot;processorVersion&quot;: &quot;A String&quot;, # Required. The processor version name. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
&quot;serviceEndpoint&quot;: &quot;A String&quot;, # Optional. The Document AI service endpoint. For example, &#x27;https://us-documentai.googleapis.com&#x27;
},
&quot;processorVersionSource&quot;: &quot;A String&quot;, # The source processor version to import from. The source processor version and destination processor need to be in the same environment and region.
&quot;processorVersionSource&quot;: &quot;A String&quot;, # 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.
Expand Down
23 changes: 22 additions & 1 deletion googleapiclient/discovery_cache/documents/documentai.v1.json
Expand Up @@ -1042,7 +1042,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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",
Expand Down
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down
Expand Up @@ -1284,7 +1284,7 @@
}
}
},
"revision": "20240304",
"revision": "20240314",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down Expand Up @@ -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"
}
},
Expand Down

0 comments on commit 6f19aee

Please sign in to comment.