Skip to content

Commit 1773abd

Browse files
committed
revert to older model because gemini-embedding-001 doesn't support batch_predict at the moment.
1 parent 01dafe7 commit 1773abd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)