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