A class for generating embeddings using the Voyage AI API.

Hierarchy

Implements

Constructors

Properties

apiUrl: string
batchSize: number = 8

The maximum number of documents to embed in a single request. This is limited by the Voyage AI API to a maximum of 8.

caller: AsyncCaller

The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.

modelName: string = "voyage-01"
basePath?: string = "https://api.voyageai.com/v1"
headers?: Record<string, string>

Methods

Generated using TypeDoc