LiteRTWebEmbeddings class
Type-safe Dart wrapper for LiteRT embeddings
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
-
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
-
dispose(
) → Future< void> - Cleanup LiteRT embeddings and release resources.
-
generateEmbedding(
String text) → Future< List< double> > - Generate embedding for a single text.
-
generateEmbeddings(
List< String> texts) → Future<List< List< >double> > - Generate embeddings for multiple texts (batch processing).
-
getDimension(
) → int - Get the dimension of embeddings generated by this model.
-
initialize(
String modelPath, String tokenizerPath, {String? wasmPath}) → Future< void> - Initialize LiteRT embeddings with model and tokenizer paths.
-
isInitialized(
) → bool - Check if LiteRT embeddings are initialized.