Skip to content

Commit 50c3386

Browse files
authored
revert to older model because gemini-embedding-001 doesn't support batch_predict at the moment. (#13396)
1 parent 01dafe7 commit 50c3386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generative_ai/embeddings/batch_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def embed_text_batch() -> BatchPredictionJob:
3939
output_uri = OUTPUT_URI
4040

4141
textembedding_model = language_models.TextEmbeddingModel.from_pretrained(
42-
"gemini-embedding-001"
42+
"textembedding-gecko@003"
4343
)
4444

4545
batch_prediction_job = textembedding_model.batch_predict(

0 commit comments

Comments
 (0)