Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 3525487

Browse files
committed
docs
1 parent 1bbbd3d commit 3525487

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • bigframes/bigquery/_operations

bigframes/bigquery/_operations/ai.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def generate_text(
604604
@log_adapter.method_logger(custom_base_name="bigquery_ai")
605605
def generate_table(
606606
model: Union[bigframes.ml.base.BaseEstimator, str, pd.Series],
607-
data: Union[dataframe.DataFrame, pd.DataFrame],
607+
data: Union[dataframe.DataFrame, series.Series, pd.DataFrame, pd.Series],
608608
*,
609609
output_schema: str,
610610
temperature: Optional[float] = None,
@@ -637,9 +637,11 @@ def generate_table(
637637
Args:
638638
model (bigframes.ml.base.BaseEstimator or str):
639639
The model to use for table generation.
640-
data (bigframes.pandas.DataFrame or pandas.DataFrame):
641-
The data to use as input for table generation. It must contain the
642-
columns that the model expects for constructing the prompt.
640+
data (bigframes.pandas.DataFrame or bigframes.pandas.Series):
641+
The data to generate embeddings for. If a Series is provided, it is
642+
treated as the 'content' column. If a DataFrame is provided, it
643+
must contain a 'content' column, or you must rename the column you
644+
wish to embed to 'content'.
643645
output_schema (str):
644646
A string defining the output schema (e.g., "col1 STRING, col2 INT64").
645647
temperature (float, optional):
@@ -650,7 +652,7 @@ def generate_table(
650652
output.
651653
max_output_tokens (int, optional):
652654
An INT64 value that sets the maximum number of tokens in the
653-
generated text.
655+
generated table.
654656
stop_sequences (List[str], optional):
655657
An ARRAY<STRING> value that contains the stop sequences for the model.
656658
request_type (str, optional):

0 commit comments

Comments
 (0)