Constructor for the FireworksEmbeddings class.
Optional
fields: Partial<FireworksEmbeddingsParams> & { apiKey?: string; verbose?: boolean }An optional object with properties to configure the instance.
Optional
baseThe maximum number of documents to embed in a single request. This is limited by the Fireworks AI API to a maximum of 8.
Optional
headersModel name to use.
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.
A class for generating embeddings using the Fireworks AI API.