instanceType property
The format of the instance that the Model accepts.
Vertex AI will convert compatible batch prediction input instance formats
to the specified format. Supported values are: * object
: Each input is
converted to JSON object format. * For bigquery
, each row is converted
to an object. * For jsonl
, each line of the JSONL input must be an
object. * Does not apply to csv
, file-list
, tf-record
, or
tf-record-gzip
. * array
: Each input is converted to JSON array format.
- For
bigquery
, each row is converted to an array. The order of columns is determined by the BigQuery column order, unless included_fields is populated. included_fields must be populated for specifying field orders. - For
jsonl
, if each line of the JSONL input is an object, included_fields must be populated for specifying field orders. * Does not apply tocsv
,file-list
,tf-record
, ortf-record-gzip
. If not specified, Vertex AI converts the batch prediction input as follows: * Forbigquery
andcsv
, the behavior is the same asarray
. The order of columns is the same as defined in the file or table, unless included_fields is populated. * Forjsonl
, the prediction instance format is determined by each line of the input. * Fortf-record
/tf-record-gzip
, each record will be converted to an object in the format of{"b64": }
, whereis the Base64-encoded string of the content of the record. * For `file-list`, each file in the list will be converted to an object in the format of `{"b64": }`, where
is the Base64-encoded string of the content of the file.
Implementation
core.String? instanceType;