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.
Tencent Cloud API v3 sign method.
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 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.
The async caller should be used by subclasses to make any async calls,
Tencent Cloud API Host.
Tencent Cloud API v3 sign method.
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.