Content-Length: 260011 | pFad | https://github.com/googleapis/python-aiplatform/commit/9ec459014612116e202c2dddda5f30716ff1a7f8

24 feat: Add support for task types (TASK_QUESTION_ANSWERING, TASK_FACT_… · googleapis/python-aiplatform@9ec4590 · GitHub
Skip to content

Commit 9ec4590

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Add support for task types (TASK_QUESTION_ANSWERING, TASK_FACT_VERIFICATION) through get_embeddings.
PiperOrigin-RevId: 617262924
1 parent b1cab3f commit 9ec4590

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vertexai/language_models/_language_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,10 @@ class TextEmbeddingInput:
19691969
Specifies that the given text will be classified.
19701970
CLUSTERING
19711971
Specifies that the embeddings will be used for clustering.
1972+
QUESTION_ANSWERING
1973+
Specifies that the embeddings will be used for question answering.
1974+
FACT_VERIFICATION
1975+
Specifies that the embeddings will be used for fact verification.
19721976
title: Optional identifier of the text content.
19731977
"""
19741978

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-aiplatform/commit/9ec459014612116e202c2dddda5f30716ff1a7f8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy