Create a LocalEmbeddings instance.
The runtime configuration for the embedding pipeline.
Optional hooks for pipeline events.
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). This can be transferred or used to create typed-array views without additional allocations.
Array of strings to embed.
Object with buffer, rows, and dims.
Embed a single query/document.
String to embed.
Embedding (number[] or Float32Array).
LocalEmbeddings provides local embedding generation using a runtime pipeline. Implements EmbeddingsInterface for compatibility with LangChain.