Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ba0291

Browse files
committedDec 7, 2023
feat(documentai): update the api
#### documentai:v1beta3 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest.properties.foundationModelTuningOptions.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions (Total Keys: 6)
1 parent 79488e8 commit 0ba0291

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed
 

‎docs/dyn/documentai_v1beta3.projects.locations.processors.processorVersions.html

+4
Original file line numberDiff line numberDiff line change
@@ -3376,6 +3376,10 @@ <h3>Method Details</h3>
33763376
&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.
33773377
},
33783378
},
3379+
&quot;foundationModelTuningOptions&quot;: { # Options to control foundation model tuning of the processor. # Options to control foundation model tuning of a processor.
3380+
&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.
3381+
&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.
3382+
},
33793383
&quot;inputData&quot;: { # The input data used to train a new ProcessorVersion. # Optional. The input data used to train the ProcessorVersion.
33803384
&quot;testDocuments&quot;: { # The common config to specify a set of documents used as input. # The documents used for testing the trained version.
33813385
&quot;gcsDocuments&quot;: { # Specifies a set of documents on Cloud Storage. # The set of documents individually specified on Cloud Storage.

‎googleapiclient/discovery_cache/documents/documentai.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@
10421042
}
10431043
}
10441044
},
1045-
"revision": "20231116",
1045+
"revision": "20231206",
10461046
"rootUrl": "https://documentai.googleapis.com/",
10471047
"schemas": {
10481048
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {

‎googleapiclient/discovery_cache/documents/documentai.v1beta2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
}
293293
}
294294
},
295-
"revision": "20231116",
295+
"revision": "20231206",
296296
"rootUrl": "https://documentai.googleapis.com/",
297297
"schemas": {
298298
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {

‎googleapiclient/discovery_cache/documents/documentai.v1beta3.json

+22-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@
12841284
}
12851285
}
12861286
},
1287-
"revision": "20231116",
1287+
"revision": "20231206",
12881288
"rootUrl": "https://documentai.googleapis.com/",
12891289
"schemas": {
12901290
"GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": {
@@ -8755,6 +8755,10 @@
87558755
"$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema",
87568756
"description": "Optional. The schema the processor version will be trained with."
87578757
},
8758+
"foundationModelTuningOptions": {
8759+
"$ref": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions",
8760+
"description": "Options to control foundation model tuning of a processor."
8761+
},
87588762
"inputData": {
87598763
"$ref": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData",
87608764
"description": "Optional. The input data used to train the ProcessorVersion."
@@ -8787,6 +8791,23 @@
87878791
},
87888792
"type": "object"
87898793
},
8794+
"GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions": {
8795+
"description": "Options to control foundation model tuning of the processor.",
8796+
"id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions",
8797+
"properties": {
8798+
"learningRateMultiplier": {
8799+
"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.",
8800+
"format": "float",
8801+
"type": "number"
8802+
},
8803+
"trainSteps": {
8804+
"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.",
8805+
"format": "int32",
8806+
"type": "integer"
8807+
}
8808+
},
8809+
"type": "object"
8810+
},
87908811
"GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData": {
87918812
"description": "The input data used to train a new ProcessorVersion.",
87928813
"id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData",

0 commit comments

Comments
 (0)
Please sign in to comment.