The input text to generate embeddings from.
Float32Array containing the embedding vector.
Loads the model and tokenizer with the specified options.
The name of the model to load.
The path to the ONNX model.
Optional
options: Partial<TextEmbeddingOptions>Optional initialization options.
Releases the resources used by the model.
Generates text based on the given prompt.
The input prompt for text generation.
Optional callback function to handle intermediate text.
The generated text.
Loads the model and tokenizer with the specified options.
The name of the model to load.
The path to the ONNX model.
Optional
options: Partial<InitOptions>Optional initialization options.
Releases the resources used by the model.
Generates embeddings from the input text.