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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy