Generates embeddings for an array of texts.
An array of strings to generate embeddings for.
A Promise that resolves to an array of embeddings.
Generates an embedding for a single text.
A string to generate an embedding for.
A Promise that resolves to an array of numbers representing the embedding.
Static
initializeInitializes the llama_cpp model for usage in the embeddings wrapper.
the inputs passed onto the model.
A Promise that resolves to the LlamaCppEmbeddings type class.
Example