EmbedderWrapper class

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

destroy() Future<void>
Destroy the model and free resources
embed(List<String> texts, EmbeddingConfig config) Future<List<double>>
Generate embeddings for multiple texts Returns a flat list of embedding values The dimension is embeddings.length / texts.length
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

Static Methods

create(EmbedderCreateInput input) Future<EmbedderWrapper>
Create and load an Embedder model