Worker and runtime options.
Embed an array of documents.
Array of strings to embed.
Array of embeddings (number[] or Float32Array).
Return a packed ArrayBuffer with embeddings laid out row-major (rows * dims). Uses transferred buffer from worker if available, otherwise packs nested arrays.
Array of strings to embed.
Object with buffer, rows, and dims.
Embed a single query/document.
String to embed.
Embedding (number[] or Float32Array).
Create a WorkerEmbeddings instance.