Constructor for the VoyageEmbeddings class.
Optional
fields: Partial<VoyageEmbeddingsParams> & { 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 Voyage AI API to a maximum of 8.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Optional
encodingThe format of the output embeddings. Can be "float", "base64", or "ubinary".
Optional
headersOptional
inputInput type for the embeddings request.
Optional
outputThe desired dimension of the output embeddings.
Optional
outputThe data type of the output embeddings. Can be "float" or "int8".
Optional
truncationWhether to truncate the input texts to the maximum length allowed by the model.
A class for generating embeddings using the Voyage AI API.