Skip to content

Commit

Permalink
feat: Add support for task type (CODE_RETRIEVAL_QUERY) through get_em…
Browse files Browse the repository at this point in the history
…beddings.

PiperOrigin-RevId: 659711828
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Aug 5, 2024
1 parent b73ef3e commit f2ce1e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vertexai/language_models/_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2092,6 +2092,8 @@ class TextEmbeddingInput:
Specifies that the embeddings will be used for question answering.
FACT_VERIFICATION
Specifies that the embeddings will be used for fact verification.
CODE_RETRIEVAL_QUERY
Specifies that the embeddings will be used for code retrieval.
title: Optional identifier of the text content.
"""

Expand Down

0 comments on commit f2ce1e4

Please sign in to comment.