EmbeddingModel class abstract
Represents an embedding model instance.
- Implementers
Constructors
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
-
close(
) → Future< void> - Close the embedding model and release resources.
-
generateEmbedding(
String text) → Future< List< double> > - Generate embedding vector for given text.
-
generateEmbeddings(
List< String> texts) → 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