Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions bigframes/bigquery/_operations/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ def generate(
"""
Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down Expand Up @@ -144,6 +151,13 @@ def generate_bool(
"""
Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down Expand Up @@ -222,6 +236,13 @@ def generate_int(
"""
Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down Expand Up @@ -297,6 +318,13 @@ def generate_double(
"""
Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down Expand Up @@ -370,6 +398,13 @@ def if_(
Evaluates the prompt to True or False. Compared to `ai.generate_bool()`, this function
provides optimization such that not all rows are evaluated with the LLM.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**
>>> import bigframes.pandas as bpd
>>> import bigframes.bigquery as bbq
Expand Down Expand Up @@ -419,6 +454,13 @@ def classify(
"""
Classifies a given input into one of the specified categories. It will always return one of the provided categories best fit the prompt input.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down Expand Up @@ -470,6 +512,13 @@ def score(
There is no fixed range for the score returned. To get high quality results, provide a scoring
rubric with examples in the prompt.

.. note::

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is"
and might have limited support. For more information, see the launch stage descriptions
(https://cloud.google.com/products#product-launch-stages).

**Examples:**

>>> import bigframes.pandas as bpd
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
- name: BigQuery built-in functions
uid: bigframes.bigquery
- name: BigQuery AI Functions
uid: bigframes.bigquery.ai
uid: bigframes.bigquery._operations.ai
name: bigframes.bigquery
- items:
- name: GeoSeries
Expand Down