Vertex AI V1 API - Module Google::Cloud::AIPlatform::V1::EmbedContentRequest::EmbeddingTaskType (v1.43.0)
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-08 UTC."],[],[]]