bigframes.bigquery.ai#

This module integrates BigQuery built-in AI functions for use with Series/DataFrame objects, such as AI.GENERATE_BOOL: https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-ai-generate-bool

Functions

classify(input, categories, *[, connection_id])

Classifies a given input into one of the specified categories.

forecast(df, *, data_col, timestamp_col[, ...])

Forecast time series at future horizon.

generate(prompt, *[, connection_id, ...])

Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

generate_bool(prompt, *[, connection_id, ...])

Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

generate_double(prompt, *[, connection_id, ...])

Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

generate_int(prompt, *[, connection_id, ...])

Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

if_(prompt, *[, connection_id])

Evaluates the prompt to True or False.

score(prompt, *[, connection_id])

Computes a score based on rubrics described in natural language.