Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions bigframes/ml/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from bigframes.ml import base, core, globals, utils
import bigframes.pandas as bpd

_REMOTE_TEXT_GENERATOR_MODEL_CODE = "CLOUD_AI_LARGE_LANGUAGE_MODEL_V1"
_REMOTE_TEXT_GENERATOR_MODEL_CODE = "text-bison"
Comment thread
ashleyxuu marked this conversation as resolved.
Outdated
_REMOTE_TEXT_GENERATOR_32K_MODEL_CODE = "text-bison-32k"
_TEXT_GENERATE_RESULT_COLUMN = "ml_generate_text_llm_result"

_REMOTE_EMBEDDING_GENERATOR_MODEL_CODE = "CLOUD_AI_TEXT_EMBEDDING_MODEL_V1"
_REMOTE_EMBEDDING_GENERATOR_MODEL_CODE = "textembedding-gecko"
_REMOTE_EMBEDDING_GENERATOR_MUlTILINGUAL_MODEL_CODE = "textembedding-gecko-multilingual"
_EMBED_TEXT_RESULT_COLUMN = "text_embedding"

Expand Down Expand Up @@ -90,7 +90,7 @@ def _create_bqml_model(self):
)
if self.model_name == "text-bison":
options = {
"remote_service_type": _REMOTE_TEXT_GENERATOR_MODEL_CODE,
"endpoint": _REMOTE_TEXT_GENERATOR_MODEL_CODE,
}
else:
Comment thread
ashleyxuu marked this conversation as resolved.
Outdated
options = {
Expand Down Expand Up @@ -240,7 +240,7 @@ def _create_bqml_model(self):
)
if self.model_name == "textembedding-gecko":
options = {
"remote_service_type": _REMOTE_EMBEDDING_GENERATOR_MODEL_CODE,
"endpoint": _REMOTE_EMBEDDING_GENERATOR_MODEL_CODE,
}
else:
options = {
Expand Down