Optional
fields: TencentHunyuanEmbeddingsParamsThe async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Tencent Cloud API Host.
Optional
tencentSecretID to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi.
Defaults to the value of TENCENT_SECRET_ID
environment variable.
Optional
tencentSecret key to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi.
Defaults to the value of TENCENT_SECRET_KEY
environment variable.
Method that takes an array of documents as input and returns a promise that resolves to a 2D array of embeddings for each document. It calls the embedQuery method for each document in the array.
Array of documents for which to generate embeddings.
Promise that resolves to a 2D array of embeddings for each input document.
Class for generating embeddings using the Tencent Hunyuan API.