Optional
apiThe Prem API key to use for requests.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Optional
encoding_The model to generate the embeddings.
The ID of the project to use.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the Prem API to generate embeddings.
Array of documents to generate embeddings for.
Promise that resolves to a 2D array of embeddings for each document.
Class for generating embeddings using the Prem AI's API. Extends the Embeddings class and implements PremEmbeddingsParams and