Optional
fields: Partial<HuggingFaceTransformersEmbeddingsParams>The maximum number of documents to embed in a single request.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Model name to use
Whether to strip new lines from the input text. This is recommended by OpenAI, but may not be suitable for all use cases.
Optional
timeoutTimeout to use when making requests to OpenAI.
An abstract method that takes an array of documents as input and returns a promise that resolves to an array of vectors for each document.
An array of documents to be embedded.
A promise that resolves to an array of vectors for each document.
An abstract method that takes a single document as input and returns a promise that resolves to a vector for the query document.
A single document to be embedded.
A promise that resolves to a vector for the query document.
Generated using TypeDoc
The parameters required to initialize an instance of the Embeddings class.