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
docs: deprecate default model in TextEmbedddingGenerator, GeminiTextGenerator, and other bigframes.ml.llm classes (#1570)
* docs: add remove default model warning
* remove unnecessary warnings
* add a new warning
* update warning methods
* change the default model to None, when None is provide, change default model and raise warning
* add a testcase to test warning message
Copy file name to clipboardExpand all lines: bigframes/ml/llm.py
+55-24Lines changed: 55 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@
103
103
"You should use this model name only if you are sure that it is supported in BigQuery."
104
104
)
105
105
106
+
_REMOVE_DEFAULT_MODEL_WARNING="Since upgrading the default model can cause unintended breakages, the default model will be removed in BigFrames 3.0. Please supply an explicit model to avoid this message."
@@ -256,7 +265,8 @@ class MultimodalEmbeddingGenerator(base.RetriableRemotePredictor):
256
265
Args:
257
266
model_name (str, Default to "multimodalembedding@001"):
258
267
The model for multimodal embedding. Can set to "multimodalembedding@001". Multimodal-embedding models returns model embeddings for text, image and video inputs.
259
-
Default to "multimodalembedding@001".
268
+
If no setting is provided, "multimodalembedding@001" will be used by
269
+
default and a warning will be issued.
260
270
session (bigframes.Session or None):
261
271
BQ session to create the model. If None, use the global default session.
262
272
connection_name (str or None):
@@ -267,12 +277,16 @@ class MultimodalEmbeddingGenerator(base.RetriableRemotePredictor):
"gemini-2.0-flash-lite-001", and "gemini-2.0-flash-001".
411
-
Default to "gemini-2.0-flash-001".
425
+
If no setting is provided, "gemini-2.0-flash-001" will be used by
426
+
default and a warning will be issued.
412
427
413
428
.. note::
414
429
"gemini-2.0-flash-exp", "gemini-1.5-pro-preview-0514" and "gemini-1.5-flash-preview-0514" is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
@@ -429,17 +444,19 @@ class GeminiTextGenerator(base.RetriableRemotePredictor):
message="Since upgrading the default model can cause unintended breakages, the\ndefault model will be removed in BigFrames 3.0. Please supply an\nexplicit model to avoid this message."
0 commit comments