TaskType enum

Type of task for which the embedding will be used.

Inheritance

Constructors

TaskType(String _jsonString)
const

Values

unspecified → const TaskType

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

const TaskType('TASK_TYPE_UNSPECIFIED')
retrievalQuery → const TaskType

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

const TaskType('RETRIEVAL_QUERY')
retrievalDocument → const TaskType

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

const TaskType('RETRIEVAL_DOCUMENT')
semanticSimilarity → const TaskType

Specifies the given text will be used for STS.

const TaskType('SEMANTIC_SIMILARITY')
classification → const TaskType

Specifies that the given text will be classified.

const TaskType('CLASSIFICATION')
clustering → const TaskType

Specifies that the embeddings will be used for clustering.

const TaskType('CLUSTERING')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Convert to json format
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TaskType>
A constant List of the values in this enum, in order of their declaration.