Embedder class abstract interface

Turns texts into fixed-size vectors.

Implementers
Available extensions

Properties

dimensions → int
Length of every vector this embedder returns.
no setter
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() → void
Releases network resources.
embed(List<String> texts, {EmbedPurpose purpose = EmbedPurpose.document}) → Future<List<Float32List>>
Embeds texts, returning one vector per text, in order.
embedOne(String text, {EmbedPurpose purpose = EmbedPurpose.document}) → Future<Float32List>

Available on Embedder, provided by the EmbedOne extension

Embeds a single text.
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