Vertex AI V1 API - Module Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType (v1.34.0)

Reference documentation and code samples for the Vertex AI V1 API module Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType.

Represents a downstream task the embeddings will be used for.

Constants

UNSPECIFIED

value: 0
Unset value, which will default to one of the other enum values.

RETRIEVAL_QUERY

value: 2
Specifies the given text is a query in a search/retrieval setting.

RETRIEVAL_DOCUMENT

value: 3
Specifies the given text is a document from the corpus being searched.

SEMANTIC_SIMILARITY

value: 4
Specifies the given text will be used for STS.

CLASSIFICATION

value: 5
Specifies that the given text will be classified.

CLUSTERING

value: 6
Specifies that the embeddings will be used for clustering.

QUESTION_ANSWERING

value: 7
Specifies that the embeddings will be used for question answering.

FACT_VERIFICATION

value: 8
Specifies that the embeddings will be used for fact verification.

CODE_RETRIEVAL_QUERY

value: 9
Specifies that the embeddings will be used for code retrieval.