Skip to content

Commit f2ce1e4

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Add support for task type (CODE_RETRIEVAL_QUERY) through get_embeddings.
PiperOrigin-RevId: 659711828
1 parent b73ef3e commit f2ce1e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vertexai/language_models/_language_models.py

+2
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,8 @@ class TextEmbeddingInput:
20922092
Specifies that the embeddings will be used for question answering.
20932093
FACT_VERIFICATION
20942094
Specifies that the embeddings will be used for fact verification.
2095+
CODE_RETRIEVAL_QUERY
2096+
Specifies that the embeddings will be used for code retrieval.
20952097
title: Optional identifier of the text content.
20962098
"""
20972099

0 commit comments

Comments
 (0)