Optionalfields: TencentHunyuanEmbeddingsParamsTencent Cloud API Host.
OptionaltencentSecretID 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.
OptionaltencentSecret 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.
Method to generate an embedding for a single document. Calls the embeddingWithRetry method with the document as the input.
Document to generate an embedding for.
Promise that resolves to an embedding for the document.
Class for generating embeddings using the Tencent Hunyuan API.