Class MultimodalDataset (2.4.0)

MultimodalDataset(**data: typing.Any)

Represents a multimodal dataset.

Properties

bigquery_uri

Gets the bigquery uri from the dataset metadata. Returns None if it's not set.

read_config

Gets the read config from the dataset metadata. Returns None if it's not set.

Methods

MultimodalDataset

MultimodalDataset(**data: typing.Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

set_bigquery_uri

set_bigquery_uri(bigquery_uri: str) -> None

Sets the bigquery uri in the dataset metadata. Prepends 'bq://' if it's not already present.

set_read_config

set_read_config(
    *,
    read_config: typing.Union[
        vertexai._genai.types.common.GeminiRequestReadConfig,
        vertexai._genai.types.common.GeminiRequestReadConfigDict,
    ]
) -> None

Sets the read config in the dataset metadata.

to_bigframes

to_bigframes() -> bigframes.pandas.DataFrame

Converts the multimodal dataset to a BigFrames dataframe.

This is the preferred method to inspect the multimodal dataset in a notebook.