Optional
fields: Partial<JinaEmbeddingsParams> & { The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
The dimensions of the embedding.
Model name to use
Scales the embedding so its Euclidean (L2) norm becomes 1, preserving direction. Useful when downstream involves dot-product, classification, visualization..
Whether to strip new lines from the input text.
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.
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 promise that resolves to a vector for the query document.
The maximum number of documents to embed in a single request.