TaskType Enumeration

Specifies the type of task for which the embedding will be used.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public enum TaskType

Members

TASK_TYPE_UNSPECIFIED0 Unset value, which will default to one of the other enum values.
RETRIEVAL_QUERY1 Specifies the given text is a query in a search/retrieval setting.
RETRIEVAL_DOCUMENT2 Specifies the given text is a document from the corpus being searched.
SEMANTIC_SIMILARITY3 Specifies the given text will be used for STS (Semantic Text Similarity).
CLASSIFICATION4 Specifies that the given text will be classified.
CLUSTERING5 Specifies that the embeddings will be used for clustering.
QUESTION_ANSWERING6 Specifies that the given text will be used for question answering.
FACT_VERIFICATION7 Specifies that the given text will be used for fact verification.

See Also