TextEmbedder class
TextEmbedder implementation able to use FFI and dart:io
.
- Inheritance
-
- Object
- BaseTextEmbedder
- TextEmbedder
Constructors
- TextEmbedder.new(TextEmbedderOptions _options)
- Generative constructor.
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
-
cosineSimilarity(
Embedding a, Embedding b) → Future< double> -
Compares the similarity between two
Embedding
values. Identical embeddings will yield a similarity value of 1.0.override -
dispose(
) → void -
Closes down the background isolate, releasing all resources.
override
-
embed(
String text) → Future< TextEmbedderResult> -
Sends a String value to MediaPipe for conversion into an
Embedding
.override -
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