EmbeddingModel class abstract

Represents an embedding model instance.

Implementers

Constructors

EmbeddingModel()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCloseListener(void listener()) → void
See InferenceModel.addCloseListener.
close() → Future<void>
Close the embedding model and release resources.
generateEmbedding(String text, {TaskType taskType = TaskType.retrievalQuery}) → Future<List<double>>
Generate embedding vector for given text.
generateEmbeddings(List<String> texts, {TaskType taskType = TaskType.retrievalQuery}) → Future<List<List<double>>>
Generate embedding vectors for multiple texts.
getDimension() → Future<int>
Get the dimension of embedding vectors generated by this model.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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