Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50c3386

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎generative_ai/embeddings/batch_example.py

Copy file name to clipboardExpand all lines: generative_ai/embeddings/batch_example.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.