Skip to content

Commit

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

The following keys were added:
- schemas.GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest.properties.foundationModelTuningOptions.$ref (Total Keys: 1)
- schemas.GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions (Total Keys: 6)
  • Loading branch information
yoshi-automation committed Dec 7, 2023
1 parent 79488e8 commit 0ba0291
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
Expand Up @@ -3376,6 +3376,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, 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, 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 @@ -1042,7 +1042,7 @@
}
}
},
"revision": "20231116",
"revision": "20231206",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down
Expand Up @@ -292,7 +292,7 @@
}
}
},
"revision": "20231116",
"revision": "20231206",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down
Expand Up @@ -1284,7 +1284,7 @@
}
}
},
"revision": "20231116",
"revision": "20231206",
"rootUrl": "https://documentai.googleapis.com/",
"schemas": {
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
Expand Down Expand Up @@ -8755,6 +8755,10 @@
"$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema",
"description": "Optional. The schema the processor version will be trained with."
},
"foundationModelTuningOptions": {
"$ref": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions",
"description": "Options to control foundation model tuning of a processor."
},
"inputData": {
"$ref": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData",
"description": "Optional. The input data used to train the ProcessorVersion."
Expand Down Expand Up @@ -8787,6 +8791,23 @@
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions": {
"description": "Options to control foundation model tuning of the processor.",
"id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions",
"properties": {
"learningRateMultiplier": {
"description": "Optional. The multiplier to apply to the recommended learning rate. Valid values are between [0.1, 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, 400]. If not provided, recommended steps will be used.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData": {
"description": "The input data used to train a new ProcessorVersion.",
"id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData",
Expand Down

0 comments on commit 0ba0291

Please sign in to comment.