You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series):
933
-
Input DataFrame or Series, can contain one or more columns. If multiple columns are in the DataFrame, it must contain a "prompt" column for prediction.
943
+
Input DataFrame or Series, can contain one or more columns. If multiple columns are in the DataFrame, the "prompt" column, or created by "prompt" parameter, is used for prediction.
934
944
Prompts can include preamble, questions, suggestions, instructions, or examples.
935
945
936
946
temperature (float, default 0.9):
@@ -966,6 +976,14 @@ def predict(
966
976
max_retries (int, default 0):
967
977
Max number of retries if the prediction for any rows failed. Each try needs to make progress (i.e. has successfully predicted rows) to continue the retry.
968
978
Each retry will append newly succeeded rows. When the max retries are reached, the remaining rows (the ones without successful predictions) will be appended to the end of the result.
979
+
980
+
prompt (Iterable of str or bigframes.series.Series, or None, default None):
981
+
.. note::
982
+
BigFrames Blob is still under experiments. It may not work and subject to change in the future.
983
+
984
+
Construct a prompt struct column for prediction based on the input. The input must be an Iterable that can take string literals,
985
+
such as "summarize", string column(s) of X, such as X["str_col"], or blob column(s) of X, such as X["blob_col"].
986
+
It creates a struct column of the items of the iterable, and use the concatenated result as the input prompt. No-op if set to None.
0 commit comments