class JinaEmbeddingsPrompt processing batch size.
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. Available options are: qwen-turbo, qwen-plus, qwen-max, or Other compatible models.
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.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the AlibabaTongyi API to generate embeddings.
Method to generate an embedding for a single document. Calls the embeddingWithRetry method with the document as the input.