Creates a new ExecuTorch embeddings instance.
Parameters for the instance.
Source of the embedding model.
Source of the tokenizer.
Download progress callback (0-1).
Generates an embedding vector for the given text.
Input string to embed.
Promise that resolves to the embedding vector.
Loads model and tokenizer via react-native-executorch
.
Promise that resolves to the same instance.
Unloads the underlying module. Note: current ExecuTorch unload is synchronous. Awaiting this method will not guarantee completion.
ExecuTorch-based implementation of Embeddings for React Native.