Constructor for the CohereEmbeddings class.
Optional
fields: Partial<CohereEmbeddingsParams> & { An optional object with properties to configure the instance.
The maximum number of documents to embed in a single request. This is limited by the Cohere API to a maximum of 96.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Specifies the type of embeddings you want to generate.
A class for generating embeddings using the Cohere API.