Class for generating embeddings using the Tencent Hunyuan API.
class TencentHunyuanEmbeddingsThe 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.
SecretID 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.
Secret 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.
Method to generate an embedding for a single document. Calls the embeddingWithRetry method with the document as the input.
The async caller should be used by subclasses to make any async calls,
Tencent Cloud API Host.
SecretID to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi.
Secret key to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi.