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.
A class for generating embeddings using the Cohere API.
Example
Deprecated
Use
CohereEmbeddings
from@langchain/cohere
instead.