class BaiduQianfanEmbeddingsThe maximum number of characters allowed for embedding in a single request varies by model:
Note: These limits are model-specific and should be adhered to for optimal performance.
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.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the BaiduQianFan API to generate embeddings.
Method to generate an embedding for a single document. Calls the embeddingWithRetry method with the document as the input.