From 88246293a8a4ba94a13106bc99044129674fd15e Mon Sep 17 00:00:00 2001 From: Sasha Sobran Date: Wed, 10 May 2023 16:08:05 -0700 Subject: [PATCH] docs: Correct text embedding model ID docstring PiperOrigin-RevId: 531030958 --- vertexai/language_models/_language_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertexai/language_models/_language_models.py b/vertexai/language_models/_language_models.py index 0f1c3569ab..de825061d0 100644 --- a/vertexai/language_models/_language_models.py +++ b/vertexai/language_models/_language_models.py @@ -485,7 +485,7 @@ class TextEmbeddingModel(_LanguageModel): Examples: # Getting embedding: - model = TextEmbeddingModel.from_pretrained("embedding-gecko@001") + model = TextEmbeddingModel.from_pretrained("textembedding-gecko@001") embeddings = model.get_embeddings(["What is life?"]) for embedding in embeddings: vector = embedding.values