Optional
fields: Partial<ByteDanceDoubaoEmbeddingsParams> & { 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 ByteDanceDoubao API to generate embeddings.
Array of documents to generate embeddings for.
Promise that resolves to a 2D array of embeddings for each document.
The maximum number of documents to embed in a single request. This is limited by the ByteDanceDoubao API to a maximum of 2048.