Skip to content

Commit

Permalink
feat: Add support for task types (TASK_QUESTION_ANSWERING, TASK_FACT_…
Browse files Browse the repository at this point in the history
…VERIFICATION) through get_embeddings.

PiperOrigin-RevId: 617262924
  • Loading branch information
vertex-sdk-bot authored and Copybara-Service committed Mar 19, 2024
1 parent b1cab3f commit 9ec4590
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vertexai/language_models/_language_models.py
Expand Up @@ -1969,6 +1969,10 @@ class TextEmbeddingInput:
Specifies that the given text will be classified.
CLUSTERING
Specifies that the embeddings will be used for clustering.
QUESTION_ANSWERING
Specifies that the embeddings will be used for question answering.
FACT_VERIFICATION
Specifies that the embeddings will be used for fact verification.
title: Optional identifier of the text content.
"""

Expand Down

0 comments on commit 9ec4590

Please sign in to comment.