Package com.google.genai.types
Class TuningDataset
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TuningDataset
Supervised fine-tuning training dataset.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TuningDataset.Builderbuilder()Instantiates a builder for TuningDataset.abstract Optional<List<TuningExample>>examples()Inline examples with simple input/output text.static TuningDatasetDeserializes a JSON string to a TuningDataset object.gcsUri()GCS URI of the file containing training dataset in JSONL format.abstract TuningDataset.BuilderCreates a builder with the same values as this instance.The resource name of the Vertex Multimodal Dataset that is used as training dataset.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
TuningDataset
public TuningDataset()
-
-
Method Details
-
gcsUri
GCS URI of the file containing training dataset in JSONL format. -
vertexDatasetResource
The resource name of the Vertex Multimodal Dataset that is used as training dataset. Example: 'projects/my-project-id-or-number/locations/my-location/datasets/my-dataset-id'. -
examples
Inline examples with simple input/output text. -
builder
Instantiates a builder for TuningDataset. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a TuningDataset object.
-