TextEmbedder class

Utility to convert text into an embedding suitable for other MediaPipe tasks.

Inheritance

Constructors

TextEmbedder(TextEmbedderOptions options)
Utility to convert text into an embedding suitable for other MediaPipe tasks.

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
Cleans up 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