Skip to content

Commit 078bd32

Browse files
authored
docs: fix generate_text and generate_table input docs (#2455)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery-dataframes/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent fbaba0b commit 078bd32

File tree

1 file changed

+8
-8
lines changed
  • bigframes/bigquery/_operations

1 file changed

+8
-8
lines changed

bigframes/bigquery/_operations/ai.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ def generate_text(
522522
model (bigframes.ml.base.BaseEstimator or str):
523523
The model to use for text generation.
524524
data (bigframes.pandas.DataFrame or bigframes.pandas.Series):
525-
The data to generate embeddings for. If a Series is provided, it is
526-
treated as the 'content' column. If a DataFrame is provided, it
527-
must contain a 'content' column, or you must rename the column you
528-
wish to embed to 'content'.
525+
The data to generate text for. If a Series is provided, it is
526+
treated as the 'prompt' column. If a DataFrame is provided, it
527+
must contain a 'prompt' column, or you must rename the column you
528+
wish to generate text to 'prompt'.
529529
temperature (float, optional):
530530
A FLOAT64 value that is used for sampling promiscuity. The value
531531
must be in the range ``[0.0, 1.0]``. A lower temperature works well
@@ -638,10 +638,10 @@ def generate_table(
638638
model (bigframes.ml.base.BaseEstimator or str):
639639
The model to use for table generation.
640640
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'.
641+
The data to generate table for. If a Series is provided, it is
642+
treated as the 'prompt' column. If a DataFrame is provided, it
643+
must contain a 'prompt' column, or you must rename the column you
644+
wish to generate table to 'prompt'.
645645
output_schema (str):
646646
A string defining the output schema (e.g., "col1 STRING, col2 INT64").
647647
temperature (float, optional):

0 commit comments

Comments
 (0)