A class for generating embeddings using the Fireworks 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 Fireworks 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 = "nomic-ai/nomic-embed-text-v1.5"
basePath?: string = "https://api.fireworks.ai/inference/v1"
headers?: Record<string, string>

Methods

Generated using TypeDoc