TaskType enum

Type of task for which the embedding will be used.

Inheritance

Constructors

TaskType()
const

Values

unspecified → const TaskType

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

retrievalQuery → const TaskType

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

retrievalDocument → const TaskType

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

semanticSimilarity → const TaskType

Specifies the given text will be used for STS.

classification → const TaskType

Specifies that the given text will be classified.

clustering → const TaskType

Specifies that the embeddings will be used for 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() String
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.