Optional
fields: ZhipuAIEmbeddingsParamsOptional
apiZhipuAI API key to use
Model Name to use
Whether to strip new lines from the input text.
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.
Interface that extends EmbeddingsParams and defines additional parameters specific to the ZhipuAIEmbeddingsParams class.