Skip to content

Commit

Permalink
docs: Correct text embedding model ID docstring
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 531030958
  • Loading branch information
sasha-gitg authored and copybara-github committed May 10, 2023
1 parent ec15092 commit 8824629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertexai/language_models/_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8824629

Please sign in to comment.